Skip to main content

Posts

Showing posts from January, 2014

Questions on Selenium Grid

What is Selenium Grid? Selenium Grid is a part of the Selenium Suite that specializes on running multiple tests across different browsers, operating systems, and machines in parallel . Selenium Grid has 2 versions – the older Grid 1 and the newer Grid 2. We will only focus on Grid 2 because Grid 1 is gradually being deprecated by the Selenium Team. Selenium Grid uses a hub-node concept where you only run the test on a single machine called a   hub , but the execution will be done by different machines called   nodes .  When to Use Selenium Grid? You should use Selenium Grid when you want to do either one or both of following : ·          Run your tests against different browsers, operating systems, and machines all at the same time. This will ensure that the application you are testing is fully compatible with a wide range of browser-OS combinations. ·          Save time in execution of your t

Accessing form elements in Selenium

Accessing Form Elements Input Box Input boxes refer to either of these two types: Text Fields – text boxes that accept typed values and show them as they are. Password Fields – text boxes that accept typed values but mask them as a series of special characters (commonly dots and asterisks) to avoid sensitive values to be displayed. Entering Values in Input Boxes The sendKeys() method is used to enter values into input boxes. Deleting Values in Input Boxes The clear() method is used to delete the text in an input box. This method does not need any parameter . The code snippet below will clear out the text “tutorial” in the User Name text box. Radio Button Toggling a radio button on is done using the click() method. Check Box Toggling a check box on/off is also done using the click() method. The code below will c

What are difference between Selenium IDE, RC and WebDriver

Selenium IDE Selenium RC Selenium WebDriver It only works in Mozilla browser. It supports with all browsers like Firefox, IE, Chrome, Safari, Opera etc. It supports with all browsers like Firefox, IE, Chrome, Safari, Opera etc. It supports Record and playback It doesn’t supports Record and playback It doesn’t supports Record and playback Doesn’t required to start server before executing the test script. Required to start server before executing the test script. Doesn’t required to start server before executing the test script. It is a GUI Plug-in It is standalone java program which allow you to run Html test suites. It actual core API which has binding in a range of languages. Core engine is Javascript based Core engine is Javascript based Interacts natively with browser application Very simple to use as