Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Debug Selenium WebDriver Actions?

I am using Selenium WebDriver and run into an issue.

In the UI, elements are seen by the WebDriver but couldn't perform any actions such as click, type, select etc. Elements are found by the selenium and returned as instance of webelement. I can get, getText(),isEnabled() etc, but wont perform any actions. There is no exceptions. It just hangs.

I don't understand this behavior. If it is seen by the WebDriver, it should click. I have tried using actions. That too shows the same behavior.

How to debug this issue? Any ideas?

like image 392
Rajasankar Avatar asked Nov 23 '11 16:11

Rajasankar


1 Answers

Little reminder: WebDriver can find for elements on page which are "hidden" by CSS.

These items are found, but are not click-able (or any other action).

Try to call method isDisplayed();

like image 185
Pavel Janicek Avatar answered Sep 30 '22 15:09

Pavel Janicek