I have a JSP page with an input text field. I wrote a Selenium test case that verifies that the search input text is present. The verifyTrue test returns true. However, the selenium.type test failed with this error: What should I do to make the test work? Answer The first parameter needs to be a selector. searchText isn’t a valid
Tag: selenium
How to handle an Alert with “UnexpectedAlertBehaviour” capability in Selenium?
In selenium framework 2.25, I see that we have the UnexpectedAlertBehaviour enum type, but I don’t know how to use it. Answer I found this portion of documentation on your issue: This may be useful for other people as well: v2.25.0 ======= WebDriver: Added API for dealing with BASIC and DIGEST authentication dialogs. Currently not implemented in any drivers. Warn
Switch tabs using Selenium WebDriver with Java
Using Selenium WebDriver with Java. I am trying to automate a functionality where I have to open a new tab do some operations there and come back to previous tab (Parent). I used switch handle but it’s not working. And one strange thing the two tabs are having same window handle due to which I am not able to switch