Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Webdriver atom isDisplayed returns true for element with opacity:0 #8407

Open
lukeis opened this issue Mar 4, 2016 · 3 comments
Open

Webdriver atom isDisplayed returns true for element with opacity:0 #8407

lukeis opened this issue Mar 4, 2016 · 3 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 8407

What steps will reproduce the problem?
1. Use a simple div with opacity:0 (<div style="opacity:0;width:10px;height:10px"></div>).
2. Use the generated isDisplayed atom from the webdriver folder (https://code.google.com/p/selenium/source/browse/javascript/webdriver/atoms).
3. The atom result is true, meaning the div element should be visible.

What is the expected output? What do you see instead?
The isDisplayed atom should answer false.
Chrome-driver / Firefox-driver or IE-driver are all answering false as expected.

Solution:
The code of the isDisplayed atom is calling isShown with parameter ignoreOpacity as
true (https://code.google.com/p/selenium/source/browse/javascript/webdriver/atoms/inject/dom.js#148).
It should be change to false.

If this is an acceptable solution, I can prepare a simple patch.

Thank you

Reported by Mathieu.Heyd on 2015-01-20 16:09:46

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2015-03-08 21:24:30

  • Labels added: Browser-Atoms

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by jmleyba on 2015-03-09 15:52:09

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 17:47:30

  • Labels added: Restrict-AddIssueComment-Commit

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant