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

WebDriver confuses opacity: 0 with hidden #1610

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 1610

What steps will reproduce the problem?
1. Create an input and set opacity to 0
2. Using selenium, try to click the input
3. Selenium gives an error that the input is hidden. It is not -- it is simply invisible,
but the user can still interact with it in the browser.

What is the expected output? What do you see instead?
Expected output is to click the input. Instead, Selenium generates an error:
Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

What version of the product are you using? On what operating system?
Selenium 2 on OS X using Firefox.

Please provide any additional information below.
The reason opacity is set to zero is to cover up a file input with a different image.
The user clicks through the image to the invisible input. This is a very common practice
for styling file inputs, which are notoriously difficult to otherwise  customize.

Reported by neil.rotstan on 2011-04-29 21:31:54

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions