Browser
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. | Param 1 : Enter the url to launch | Example:
Launches the web url www.bqurious.com on device. |
navigateBackTo click on the back button of the browser, to navigate to the previous page. If the backward button is disabled, no action will be performed & the step will pass. | Â | Example:
Clicks on the backward button on the web page |
navigateForward
To click on the Forward button of the browser, to navigate to the next page. If the forward button is disabled, no action will be performed & the step will pass. | Â | Example:
Clicks on the forward button on the web page |
useBrowser
To switch to browser (mentioned in parameter 1) to integrate with different web application. | Param 1 : Name of the browser to use | Example:
Switches the browser to Mozilla. |