List of commands
Page Navigation Commands
Page Assertion Commands
Command | Description |
---|
I.amAt | Assert that the browser is at a specific URL |
UI.isStatusCode | Asserts that the status code for the current page is a specific status code. |
UI.isNotStatusCode | Asserts that the status code for the current page is NOT a specific status code. |
UI.is200 | Asserts that the status code for the current page is 200 (OK). |
UI.isNot200 | Asserts that the status code for the current page is NOT 200 (OK). |
UI.is404 | Asserts that the status code for the current page is 404 (Not Found). |
UI.isNot404 | Asserts that the status code for the current page is NOT 404 (Not Found). |
UI.is500 | Asserts that the status code for the current page is 500 (Internal Server Error). |
UI.isNot500 | Asserts that the status code for the current page is NOT 500 (Internal Server Error). |
Command | Description |
---|
I.fill | Fill a text field with a value |
I.select | Select a dropdown / checkbox / radio button |
I.deselect | Deselect a checkbox |
I.upload | Upload a file to a file field |
Command | Description |
---|
I.filled | Assert that the form is filled with a specific value |
I.selected | Assert that a dropdown option, checkbox, or radio button is selected |
I.deselected | Assert that a dropdown option, checkbox, or radio button is NOT selected |
Mouse Commands
Command | Description |
---|
I.click | Click on an element |
I.doubleClick | Double click on an element |
I.rightClick | Right click on an element |
I.hoverOn | Hover on an element |
I.dragTo | Drag an element to another target element |
I.dragBy | Drag an element directionally by (x,y) pixel offset |
I.dragUp | Drag an element to the up by a given number of pixel |
I.dragDown | Drag an element to the down by a given number of pixel |
I.dragLeft | Drag an element to the left by a given number of pixel |
I.dragRight | Drag an element to the right by a given number of pixel |
I.scrollBy | Scrolls the page horizontally and vertically by a given number of pixels. |
I.scrollUp | Scrolls the page up by a given number of pixels |
I.scrollDown | Scrolls the page down by a given number of pixels |
I.scrollLeft | Scrolls the page left by a given number of pixels |
I.scrollRight | Scrolls the page right by a given number of pixels |
I.scrollTo | Scrolls to a coordinate on the page |
I.scrollToTop | Scroll to the top of the page |
I.scrollToBottom | Scroll to the bottom of the page |
Keyboard Commands
Validate Page Content
Command | Description |
---|
I.see | Assert that an text or element is visible |
I.dontSee | Assert that an text or element is NOT visible |
I.count | Assert the number of occurances for a text or element |
I.seePageTitle | Assert the title of the current page |
Page Content Extraction Commands
Command | Description |
---|
I.getCount | Get the number of occurances of a text or element |
I.getText | Get text content from an element |
I.getValue | Get value from an input element |
| I.getURL
| I.getPageTitle
| Get the title of the current page |
Read and Validate Page Elements
Element attribute
Element class
Element HTML
Alert Commands
Command | Description |
---|
I.seeAlert | Assert that an alert is displayed, and/or that an expected message is displayed on the alert. |
I.acceptAlert | Press the "Ok" button on the alert |
I.cancelAlert | Press the "Cancel" button on the alert |
I.fillAlert | Fill the text box on the alert |
Utility Commands
Command | Description |
---|
I.wait | Wait for a given amount of time |
Generate Sample Data
Loading Test Data From File
Test Flow Commands
Screenshot Commands
Reporting Commands
Limiting Test Scope
Command | Description |
---|
UI.context | Limit the test to target within specific parts of a page. Can be used to explicitly switch to the context of an iframe. |
Execute Javascript
Command | Description |
---|
UI.execute | Executes Javascript on the browser |
HTTP Requests
Cookie Management
Local Storage Management
Handling downloaded files
Window Resize
Command | Description |
---|
UI.resize | Resize the resolution to a specific width and height. |