Below mentioned are the action keywords with their usage :
Browser keywords help us to perform certain actions on the browser.
Suppose you wish to maximize the browser, click on an element, verify an element and navigate to the browsers previous page.
Structure :
launchApp <parameter>
browserMaximize
click <parameter>
verifyElementVisible <parameter>
navigateBack
Action | Parameters | Example Usage |
---|---|---|
browserMaximize
To maximize the Browser. | Example:
Maximizes the browser for full page view. | |
clearBrowserCookies
To clear browser cookies if any. | Example:
Clears all the cookies on the opened browser. | |
launchBrowserOnDevice
To launch the web url (mentioned in Parameter 1) on device. navigateForward
| Param 1 : Enter the url to launch | Example:
Launches the web url www.bqurious.com on device. |
navigateBackTo click on the Forward back button of the browser, to navigate to the next previous page. If the forward backward button is disabled, no action will be performed & the step will pass. | Example:
Clicks on the forward backward button on the web page | |
navigateForwardnavigateBack
To click on the back Forward button of the browser, to navigate to the previous next page. If the backward forward button is disabled, no action will be performed & the step will pass. | Example:
Clicks on the backward forward button on the web page launchBrowserOnDevice | |
useBrowser
To launch the web url switch to browser (mentioned in Parameter parameter 1) on device.to integrate with different web application. | Param 1 : Enter Name of the url browser to launch use | Example:
Switches the browser to Mozilla. |