Browser Actions
This page contains all the Tesbo Supported Keywords
Click :
Action | Keyword | Description |
---|---|---|
click | Step: click on @forgotpassword | Perform click action on the given Element. e.g @forgotpassword |
double click | Step: double click on @clickHereLink | Perform double click action on the given Element. e.g @clickHereLink |
right click | Step: right click on @ForgotPasswordk | Perform right click action on the given Element. e.g @ForgotPasswordk. it will open the context menu |
pause and click | Step: pause and click on @BackButton | Tesbo will wait until element became clickable and then click on the given element |
click and hold | Step: click and hold on @textLink element | Tesbo will click on the given element and continue to press on that element |
scroll and click | Step: scroll and click on @FindingBugsLink | Tesbo will scroll to the given element and then click on the given element |
Click on first element from List | Click on first element from List @NumberList | Tesbo will find all the elements and click on the first element from list |
Click From List:
Action | Keyword | Description |
---|---|---|
Click on first element from List | Click on first element from List @NumberList | Tesbo will find all the elements and click on the first element from list |
Click on a Last element from the list | Step: Click on last element from List @NumberList | Tesbo will find all the elements and click on the last element from list |
Click on an element whose text matches with the given string | Step: click on "Red" from List @ColorList | Tesbo will find all the elements and get text of element and if element text is match with the given text, it will click on that element |
Click on element by index from list | Step: click on from List @NumberList | Tesbo will create a element list array with given locators and then click on the given index. As this is array first element start from 0 index |
Enter & Clear
Action | Keyword | Description |
---|---|---|
Enter text | Step: Enter 'admin@phptravels.com' in @Email_Box | Tesbo will find the element Email_Box and then enter the text 'admin@phptravels.com' |
Clear text | Step: Clear @Email_Box textbox | Tesbo will find the element Email_Box and then clear the text of textbox if available |
Clear and enter | Step: Clear and enter 'Hello@test.com' in @Email_Box | Tesbo will clear the text first from Email_Box and then enter 'Hello@test.com' |
Navigation
Action | Keyword | Description |
---|---|---|
Navigate to back | Step: Navigate to back | Tesbo will redirect to the previous page |
Navigate to Forward | Step: Navigate to forward | Tesbo will redirected on the Next Page |
Refresh Page | Step: refresh page | Tesbo will refresh page |
Browser Window Action
Action | Keyword | Description |
---|---|---|
Close Current Browser Window | Step: Close window | Close the current window |
Minimize Browser Window | Step: Window minimize | Tesbo will minimize the browser window |
Maximize Browser Window | Step: Window Maximize | Tesbo will maximise the browser window |
Resize the Browser Window | Step: Window Resize (width,height) | Tesbo will resize te browser Window |
Wait
Action | Keyword | Description |
---|---|---|
Wait Until Element is clickable | Step: pause until @element is clickable | Tesbo Will wait untile element became clickable |
Wait Until Element is disapper | Step: Pause until @element is disappear | Tesbo will wait until given element is going to disappear |
Wait Until Element is display | Step: pause until @element is display | Tesbo will wait until given element is going to display |
Wait for given second | Step: Pause for 1 sec | Tesbo will wait for the given second |
Scroll
Action | Keyword | Description |
---|---|---|
bottom | Step: Scroll to bottom | Scroll to bottom of the page |
top | Step: Scroll to Top | Scroll to top of the page |
coordinate | Step: Scroll to coordinate (X,Y) | Scroll to coordinate of the page e.g coordinate (50,500) |
element | Step: Scroll to @element | Scroll to given element e.g @AutomationTools |
horizontal | Step: Scroll to Horizontal | Scroll to horizontal on the page |
Alert
Action | Keyword | Description |
---|---|---|
accept | Step: Switch to alert then accept | First, it will switch to Alert and Accept the condition |
close | Step: Switch to alert then close | First, it will switch to Alert and Close the Alert. |
enter | Step: Switch to alert then enter 'Testing Demo' | First, it will switch to Alert and then enter text in the textbox in the alert |
verify text | Step: Switch to alert then verify text with 'I am an alert box!' | First, it will switch to alert and then verify text on alert |
iFrames
Action | Keyword | Description |
---|---|---|
element | Step: Switch to frame @SingleIframe | Switch to iFrame using element |
id | Step: Switch to frame using id 'singleframe' | Switch to iFrame using ID |
name | Step: Switch to frame using name 'singleframe' | Switch to iFrame using name |
main | Step: Switch to main frame | Switch to Main Frame |
parent | Step: Switch to parent frame | Switch to Parent Frame |
Window
Action | Keyword | Description |
---|---|---|
main | Step: Switch to main window | Switch to main window |
new | Step: Switch to new window | Switch to new window |
parent | Step: Switch to parent window | Switch to parent window |
Select From Dropdown
Action | Keyword | Description |
---|---|---|
using text | Step: Select using text 'Enter text you want to select' from @dropdownElement | Select given text from dropdown |
using index | Step: Select using index 1 from @dropdownElement | Select text from dropdown using index |
using value | Step: Select using value 'enter attribute value of element' from @dropdownElement | Select text using given attribute value of element |
Deselect From Dropdown
Action | Keyword | Description |
---|---|---|
all | Step: Deselect all from @MultiSelectDropdownElement | Deselect all value from dropdown |
using text | Step: Deselect using text 'Enter text you want to deselect' from @multiSelectDropdownElement | Deselect given text from multi select dropdown |
using value | Step: Deselect using value 'enter attribute value of element' from @multiSelectDropdownElement | Deselect text using given attribute value from multi select dropdown |
using index | Step: Deselect using index 1 from @multiSelectDropdownElement | Deselect text from multi select dropdown using index |
Cookies and Cache
Action | Keyword | Description |
---|---|---|
clear cache | Step: Clear Cache | To clear browser cache data |
clear cookies | Step: clear cookies | To clear browser cookies from System |
Action | Keyword | Description |
---|---|---|
print element text | Step: Print @element | To Print element text |
print text | Step: Print "enter text you want to print" | Print or comment text |
print text | reporter.printStep("Any String"); | Print Steps in report from custom step |
Screenshot
Action | Keyword | Description |
---|---|---|
screenshot | Step: Capture screenshot | To Capture page screenshot |
element screenshot | Step: capture screenshot of @element | Capture screenshot of particular element |
Assert Attribute
Action | Keyword | Description |
---|---|---|
attribute value equal to | Verify: Get attribute 'attribute name' of @element is equal to 'attribute value' | Assert element attribute value is not equal to given text |
attribute value not equal to | Verify: Get attribute 'attribute name' of @element is not equal to 'attribute value' | Assert element attribute value is not equal to given text |
attribute value equal to ignore case | Verify: Get attribute 'attribute name' of @element is equal to ignore case 'attribute value' | Assert element attribute value is equal to ignore case of given text |
attribute value same as given text | Verify: Get attribute 'attribute name' of @element contains is 'attribute value' | Assert element attribute text contains is same as given text |
Assert CSS Value
Action | Keyword | Description |
---|---|---|
CSS value equal to | Verify: Get css value 'css name' of @element is equal to 'css value' | Assert element CSS value is equal to given text |
CSS value not equal to | Verify: Get css value 'css name' of @element is not equal to 'css value' | Assert element CSS value is not equal to given text |
CSS value not equal to ignore case | Verify: Get css value 'css name' of @element is equal to ignore case 'css value' | Assert element CSS value is equal to ignore case of given text |
CSS value contains | Verify: Get css value 'css name' of @element contains is 'css value' | Assert element CSS text contains is same as given text |
Assert multiple element
Action | Keyword | Description |
---|---|---|
multiple element with AND condition | Verify: @element text is not equal to 'verify text' And @element text is equal to 'verify text' | Assert multiple element with AND condition |
multiple element with OR condition | Verify: @element text is not equal to 'verify text' OR @element text is equal to 'verify text' | Assert multiple element with OR condition |
multiple element is displayed | Verify: @element @element @element is displayed | Assert that multiple element is displayed or not |
Assert
Action | Keyword | Description |
---|---|---|
current url contains | Verify: current url is contains 'url contain' | Current URL contains is available in given text |
Current url equal to | Verify: Current url is equal to 'URL' | Current URL is equal to same as given URL |
number of elements | Verify: @element has size of 'number of element' | Element has given number of elements |
element displayed | Verify: @element is displayed | Element is displayed or not |
element present | Verify: @element is present | Element is present or not |
element visible | Verify: @element is visible | Element is visible or not |
element contains is ignore case | Verify: @element text contains is ignore case of 'verify text' | Element text contains is ignore case of given text |
element contains | Verify: @element text contains is 'verify text' | Element text contains is same as given text |
element text end with | Verify: @element text is end with 'verify text' | Element text is end with same as given text |
element text equal | Verify: @element text is equal to 'verify text' | Element text is equal to given text |
equal to ignore case | Verify: @element text is equal to ignore case 'verify text' | Element text is equal to ignore case of given text |
not equal | Verify: @element text is not equal to 'verify text' | Element text is not equal to given text |
element text start with | Verify: @element text is start with 'verify text' | Element text is start with same as given text |
element text is alphanumeric | Verify: @element text should be alphanumeric | Element text should be alphanumeric |
element text is number | Verify: @element text should be number | Element text should be number |
get cookies and check | Verify: Get cookies and check 'cookie name' is available | Get cookies and check particular cookie is available or not |
page title with ignore case | Verify: Page Title is equal to ignore case 'verify text' | Page title is equal to ignore case of given text |
page title with same case | Verify: Page Title is equal to 'verify text' | Page Title is equal to same as given text |
Keyboard & Mouse Action
Action | Keyword | Description |
---|---|---|
mouse hover on element | Step: Mouse hover @element | Mouse hover on given element |
press key from keyboard | Step: Press 'CTRL' Plus 'key' in @Email_Box | Press CTRL + A, CTRL + C and CTRL + V from keyboard |
press enter key | Step: Press enter key | Press enter key from keyboard |
press enter key on element | Step: Press enter key on @element | Press enter key from keyboard on given element |
press tab key | Step: Press tab key | Press tab key from keyboard |