📄️ await browser.get()
The browser.get() function in ShadowdriverJS is used to navigate to a specified URL. This function is similar to the get() function in WebDriverJS.
📄️ await browser.back()
The await browser.back() function in ShadowdriverJS is used to navigate back to the previous page in the browser's history. This function is similar to the back() function in WebDriverJS.
📄️ await browser.forward()
The await browser.forward() function in ShadowdriverJS is used to navigate forward to the next page in the browser's history. This function is similar to the forward() function in WebDriverJS.
📄️ await maximize()
The browser.manage().window().maximize() function in ShadowdriverJS is used to maximize the browser window. This function can be useful for ensuring that your tests have a consistent view of the page, especially when visual checks or layout-based interactions are involved.
📄️ await browser.refresh()
The await browser.refresh() function in ShadowdriverJS is used to refresh the current page. This function is similar to the refresh() function in WebDriverJS.
📄️ await browser.sleep()
The await browser.sleep(ms) function in ShadowdriverJS is used to pause the execution of your test script for a specified number of milliseconds. This function can be useful for waiting until certain elements or conditions are met without blocking the entire test flow.