Issue Details (XML | Word | Printable)

Key: SRC-815
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Leo Arias
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

isVisible function not working properly

Created: 04/Feb/10 05:18 PM   Updated: 04/Feb/10 05:18 PM
Component/s: Client Driver - Java
Affects Version/s: 1.0.1
Fix Version/s: None

File Attachments: 1. Text File messagebox.txt (5 kB) 04/Feb/10 05:18 PM - Leo Arias

Environment: Ubuntu 9.10, firefox 3.5.7


 Description  « Hide

Selenium isVisible function returns true for an element that is not visible.

Attached is the section of the html that's causing the problem.
The element I'm checking has the id=messageBoxIDTitle. It's ancestor with id=messageBoxID (the root of the attached html section) has the class MessageBoxHIDDEN.

This is the css for the class MessageBoxHIDDEN:

table.MessageBoxHIDDEN, table.MessageBox { display:none; height:0; visibility:collapse; }

According to the API documentation:
"An element can be rendered invisible by setting the CSS "visibility" property to "hidden", or the "display" property to "none", either for the element itself or one if its ancestors."

Thus, as messageBoxIDTitle has an ancestor with display:none, the function isVisible should return false.



Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.