Element Should Be Visible

139 views
Skip to first unread message

François Duroy

unread,
Feb 25, 2022, 10:45:58 AM2/25/22
to robotframework-users
Hello, 

I am using Selenium Library and in a specific case I have a table with an horizontal scroll. 

The last column of that table is not "optically visible" so I was expecting the keyword "Element Should Be Visible" to work as that column is logically visible (does not contain a property like display:none). 

Am I facing a specific case here ? Am I misunderstanding the keyword definition?

Thank you in advance

ps: scrolling the element into view makes the element appear and be optically visible but I was expecting the keyword to return True without having to implement that workaround

Hélio Guilherme

unread,
Feb 25, 2022, 1:21:43 PM2/25/22
to robotframework-users
I this that the behavior is correct. We are really wanting to test if the element is visible to the user.

You should use the other keyword, Page Should Contain Element.

(Selenium/SeleniumLibrary is a tool to "simulate" the real user usage of the browser, not like the new tools, Cypress and Playwright)
Reply all
Reply to author
Forward
0 new messages