Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20



Selenium IDE Print Command

Echo is a simple command that allows you to print text to your test's output.

This is useful for proving informational progress notes in your test which display on the console as your test is running.

For example:


Selenium IDE JavaScript and Command Parameters

In Selenium, JavaScript can be used with two types of Selenium command parameters: script and non-script. In most cases, QA Engineers need to access or manipulate a test case variable inside the JavaScript snippet used as a Selenium parameter.


All variables created in a test case are store in a JavaScript associative array. An associative array has string indexes rather than sequential numeric indexes. The associative array containing test case's variable is named storedVars. When users wish to access or manipulate a variable within a JavaScript snippet, they must refer to it as storeVars['yourVariableName'] .


Selenium IDE Find Button to Highlight Element

The Find button is used to see which UI element on the currently displayed webpage (in the browser) is used in the currently selected Selenium command.


This is useful when building a locator for a command’s first parameter.



Selenium IDE Store Commands and Selenium Variables

QA engineers can use Selenium variables functionality to store constants, values passed to test programs from the command-line, from another program or from a file.


The plain store command is the most basic of the many store commands and can be used to simply store a constant value in a selenium variable. It takes two parameters, the text value to be stored and a selenium variable. Use the standard variable naming conventions of only alphanumeric characters when choosing a name for your variable.



Selenium IDE Locating Elements

In any automated UI tests, identifying and locating web elements is very important.

On Selenium IDE, click on the "Options..." command under Options menu and then in the Selenium IDE Options window click on the "Locator Builders" tab to find out how Selenium can identify web elements.


Selenium IDE Test Suites

A test suite is a collection of tests. When running a test suite, all the tests in a test suite will run as one continuous batch - job.

User can define a test suite by using Selenium IDE Test Case Pane or using a simple HTML file.


Selenium Commands in Selenium IDE

Selenium commands are also called selense, which are the set of commands that run your tests. In a test script, these commands are executed in a sequence.

Selenium provides a rich set of commands for fully testing your web application according to your test cases.


By using Selenium commands (selense), QA engineers can test the existence of UI elements based on their HTML tags, test for specific content, test for broken links, input fields, selection list options, submitting forms, table data among other elements, windows size, mouse positions, alerts, Ajax functionality, pop up windows, event handling, and many other mouse-application features.

In general, Selenium commands come in three types: Actions, Accessors, and Assertions.


Using Base URL to Run Test Cases in Different Domain in Selenium IDE

The Base URL field at the top of the Selenium IDE window is very useful for allowing test cases to be run across different domains. Suppose that a site named had a dev site named Any test cases for these sites that begin with an open statement should specify a relative URL as the argument to open rather than an absolute URL (one starting with a protocol such as http: or https:).


Selenium IDE will then create an absolute URL by appending the open command’s argument onto the end of the value of Base URL. For example, the test case below would be run against