Selenium is a tools suite to automate web browsers, and web application testing

learn more… | top users | synonyms

4
votes
4answers
1k views

Using if else statements correctly

I have the following code, but I'm looking for a way to make the code read easier. ...
4
votes
2answers
76 views

Improving performance in a Webdriver method

I'm testing an application which is not exactly an e-commerce application but which behaves enough like one that you can think of it as an e-commerce application for the purposes of understanding this ...
3
votes
1answer
103 views

Selenium Java: errorRecovery

I have the following code to select an image using Selenium, only now I have added an errorRecovery. Is there is a better way to right the code in the ...
3
votes
1answer
93 views

Ruby selenium script waiting for an element to disappear

I'm a Java developer, I'm new to Ruby and I'm worried that I'm forcing or not-so-well using the goodness of the Ruby syntax. What do you think about the Exception catching and how to print it in ...
2
votes
2answers
156 views

List of search results using Selenium

I have written the following code for looping through WebElements in Selenium. Can someone please provide me with feedback on how to improve my code? ...
1
vote
1answer
195 views

Trying to catch and throw exceptions if error message window is found

I'm writing a test to validate that while clicking through a series of menu items, an error message pops up, and if it does, then I should throw an exception. Now I wonder: Is it appropriate to use ...