Tag Info

Hot answers tagged

4

You can use the findElements method to find all TD tags that match your criteria, and then getText method to retrieve each element's value. The latter will be returned as a String, so you may need to convert it to a number before comparing it. Since the sorted elements have a special class, you may want to use a CSS selector with findElements.


3

The actual slider is a link-element you should be able to define a css selector based on its classes. <a class="ui-slider-handle ui-state-default ui-corner-all" href="#"></a> The first you find is the left slider, the second the right slider. I have successfully used use the Action Builder and the MoveToOffsetAction to drag a slider X number ...


1

It sounds like the majority of your issue is in creating the connection to your Database. However, you lack to mention the type of database so I will try and cover some of the more popular ones. Oracle Tutorial or SO Question SQL Server JTDS I could list all of the types of databases for years so here is a list of database related tutorials. If you need ...


1

Like Josa Pita says, that is nothing for testing frameworks itself. The developers could write a script to save the current version of the DB. The process should look like that: Save current version of DB/any kind of data storage. Start test run. After test run finished restore the saved version of the DB/any kind of data storage. But I think it is ...


1

It depends on implementation of input field. 1) All major browsers support maxlength attribute. Look at source code of the page and verify if the input field has it. Desciption and example: http://www.w3schools.com/tags/att_input_maxlength.asp 2) Or you can enter very long text in the field and see what happens. To generate very long string you ...


1

I have seen this error in other WebDriver projects, and my experience suggests that the URL you're passing as the first parameter to the RemoteWebDriver constructor is not a valid RemoteWebDriver grid URL. Double-check to ensure that the WebDriver grid server is running, and that the URL is valid for the server. For example, my RemoteWebDriver URLs look ...


1

Approach 1 Create a class, for example Hull. In the cass is a protected variable WebDriver driver. In the class is a method setup() with a @Before annotation. In the method you has a condition: Is WebDriver null, initialize; else do nothing. Classes with test cases extends from Hull. Classes with test cases can use the variable driver. Approach 2 ...


1

Please add your HTML code properly so we can look into this. Please go through the below links. Select option Selenium2Library



Only top voted, non community-wiki answers of a minimum length are eligible