Command Name | Description | Syntax |
Url Command | This command is used to open a specified URL in the browser. | |
Title Command | This command is used to retrieve the page title of the web page that is currently open | |
PageSource Command | This command is used to retrieve the source code of web page that is currently open. | |
Close Command | This command is used to close the recently opened browser instance. | |
Quit Command | This command is used to close all open browser instances | |
Back Command | This command is used to navigate to the previous page of browser history. | |
Forward Command | This command is used to navigate to the next page of browser history. | |
Refresh Command | This command is used to perform browser refresh. |
Command Name | Description | Syntax |
Click command | This command is used to click on a Webelement. For the element to be clickable, the element must be visible on the webpage. This command is used for checkbox and radio button operations as well. | |
Clear command | This command is specifically used for clearing the existing contents of textboxes. | |
SendKeys command | This command is used to input a value onto text boxes. The value to be entered must be passed as a parameter to | |
Displayed command | This command is used to identify if a specific element is displayed on the webpage. This command returns a Boolean value; true or false depending on the visibility of web element. | |
Enabled command | This command is used to identify if a particular web element is enabled on the web page. This command returns a Boolean value; true or false as a result. | |
Selected command | This command is used to identify if a particular web element is selected. This command is used for checkboxes,radio buttons, and select operations. | |
Submit command: | This command is similar to click command, The difference lies in whether the HTML form has a button with the type Submit. While the click command clicks on any button, submit command clicks on the only the buttons with type submit. | |
Text command | This command returns the innertext of a Webelement. This command returns a string value as a result. | |
TagName command | This command returns the HTML tag of a web element. It returns a string value as the result. | |
GetCSSValue Command: | This method is used to return the color of a web element on the form of a rgba string (Red,Green,Blue, and Alpha). | Output- If the color of element is red, output would be rgba(255,0,0,1) |
Command Name | Description | Syntax |
SelectByText Command | This command selects an option of a dropdown based on the text of the option. | |
SelectByIndex Command | This command is used to select an option based on its index. Index of dropdown starts at 0. | |
SelectByValue Command | This command is used to select an option based on its option value. | |
Options Command | This command is used to retrieve the list of options displayed in a dropdown. | The above code prints all the options onto console within a dropdown. |
IsMultiple command | This command is used to identify if a dropdown is a multi select dropdown; A multi select dropdown enables user to select more than one option in a dropdown at a time. This command returns a Boolean value. | |
DeSelectAll command | This command is used in multi select dropdowns. It clears the options that have already been selected. | |
DeSelectByIndex command | This command deselects an already selected value using its index. | |
DeSelectByValue command | This command deselects an already selected value using its value. | |
DeSelectByText command | This command deselects an already selected value using its text. |