SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
346 stars 194 forks source link

css locator for :visible not working #977

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 977

What steps will reproduce the problem?
1. put css=#some_id:visible as the target to a command
2. click Find

What is the expected output? What do you see instead?
expect it to highlight #some_id if it is visible. Instead I'm seeing this in the Log:
[error] locator not found: css=#some_id:visible  

What version of the product are you using? On what operating system?
http://xserve.openqa.org:8085/browse/IDE-IDE-1/artifact

Reported by sam.hasler on 2010-11-11 12:06:54

lukeis commented 8 years ago
from #selenium

<adamgoucher>   i dont think :visible is a legit selecter
<adamgoucher>   :visible is a jquery specific selector. and while sizzle is the engine
that runs jquery it implements fairly closely the w3c spec

Reported by sam.hasler on 2010-11-11 12:34:09

lukeis commented 8 years ago
Does the use of :enabled or :disabled pseudo-classes work? http://www.w3.org/TR/css3-selectors/#enableddisabled

Reported by e34.adam on 2010-11-15 18:55:25

lukeis commented 8 years ago
:visible isn't part of the CSS specification.

Reported by jari.bakken on 2011-01-27 12:45:09

lukeis commented 8 years ago
sure, :visible is not valid CSS but would be *very* handy in selenium

Reported by piotr.findeisen on 2011-01-27 17:43:37

lukeis commented 8 years ago
i used :not([style*="display: none"]) as a workaround.

Reported by siRrk87 on 2015-08-21 10:22:38

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:11:05