Testing with Bqurious > Actions
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 Web --- To maximize the Browser. | Example: browserMaximize Maximizes the browser for full page view. | |
clearBrowserCookies Web --- To clear browser cookies if any. | Example: clearBrowserCookies Clears all the cookies on the opened browser. | |
launchBrowserOnDevice Mobile --- To launch the web url (mentioned in Parameter 1) on device. | Param 1 : Enter the url to launch | Example: launchBrowserOnDevice : <URL : www.bqurious.com> Launches the web url www.bqurious.com on device. |
| navigateBack --- To click on the back button of the browser, to navigate to the previous page. > [!NOTE] If the backward button is disabled, no action will be performed & the step will pass. | Example: navigateBack Clicks on the backward button on the web page | |
navigateForward Web --- To click on the Forward button of the browser, to navigate to the next page. > [!NOTE] If the forward button is disabled, no action will be performed & the step will pass. | Example: navigateForward Clicks on the forward button on the web page | |
useBrowser Web --- To switch to browser (mentioned in parameter 1) to integrate with different web application. | Param 1 : Name of the browser to use | Example: useBrowser : <Browser Name : Mozilla> Switches the browser to Mozilla. |
