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

Opacity: 0; fields should return true for isDisplayed #1941

Closed
lukeis opened this issue Mar 2, 2016 · 5 comments
Closed

Opacity: 0; fields should return true for isDisplayed #1941

lukeis opened this issue Mar 2, 2016 · 5 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 1941

What steps will reproduce the problem?
1. Create an html page "<select style="opacity: 0;"><option>Test</option></select>"
2. Try selecting 'Test' from select with selenium
3. Try selecting 'Test' as a user viewing the page (in chrome or firefox) (click around
in the top left of the page as the control will be invisible)

What is the expected output? What do you see instead?

I expect to be able to select 'Test' from selenium (as a user can select 'Test' manually).
 Instead I get a "You may not select an element that is not displayed.  This is wrong
- as I clearly can do it manually.


Reported by paul@volpato.net on 2011-06-28 06:29:25

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Can you tell us which version of Selenium, Chrome, and Firefox you are using?  This
should have been fixed a while ago (r11353).  If you have a stack trace, please provide
that.

Basically, opacity: 0 will impact WebElement.isDisplayed() (you cannot "see" an invisible
element) and WebElement.getText() (you cannot "see" the text of an invisible element),
but it should not impact whether you can manipulate that element in the UI.

Reported by jmleyba on 2011-06-28 19:23:12

  • Status changed: NeedsClarification
  • Labels added: Component-WebDriver, Browser-Chrome, Browser-Firefox, Browser-Atoms

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I'm using: 

selenium-webdriver 0.2.2 (ruby gem).
Firefox 5.

My specific issue is with capybara, select(value, :from => field).  Throws an error
saying I cannot interact with invisible elements.


Reported by paul@volpato.net on 2011-06-29 00:33:13

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

jmleyba: r11353 has no changes to the Firefox driver though:

 http://code.google.com/p/selenium/source/browse/trunk/javascript/firefox-driver/extension/components/wrappedElement.js#362


Reported by jari.bakken on 2011-06-30 11:16:54

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This issue was closed by revision r12661.

Reported by jmleyba on 2011-06-30 17:58:50

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

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

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@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.