Selenium commands, also known as “Selenese” are the set of commands used in Selenium that run your tests. For example, command – open (URL); launches the desired URL in the specified browser and it accept both relative and absolute URLs.
A sequence of Selenium commands (Selenese) together is known as a test script.
Selenese refers to the set of commands or instructions that can be used with Selenium, a popular open-source automation testing tool for web applications. These commands are written in HTML or other programming languages and are used to interact with web elements on a web page. Selenese commands are employed to create test scripts for automating the testing of web applications.
In Selenium, test scripts are written using a variety of programming languages such as Java, Python, C#, etc. These scripts contain Selenese commands that instruct the Selenium WebDriver on how to interact with the elements of a web page, perform actions, and make assertions.
Examples of Selenese commands include:
open
– Opens a URL in the browser.click
– Clicks on a web element.type
– Types text into an input field.assert
– Verifies that a condition is true.waitForElementPresent
– Waits for a specific element to be present before proceeding.
In summary, Selenese is the language or set of commands that Selenium uses to perform actions on web elements and verify the behavior of web applications during automated testing.