title: Selenium CSS selector :visible is not a valid selector
body: <p>I'm using Page Objects to map elements in a page, something like that:</p>
  
  <pre><code>public class MyPage {
  
      protected WebDriver driver;
  
      @FindBy(css = "a[data-code=panel]:visible")
      private WebElement cpaneladmin;
  
      public MyPage(WebDriver driver) {
          this.driver = driver;
          PageFactory.initElements(this.driver, this);
      }
  }
  </code></pre>
  
  <p>The problem is this <code>:visible</code> CSS selector. Aparently, Selenium does not support it. Is there a way to select only visible elements using xpath or another kind of CSS selector?</p>
  
  <p>Thanks</p>