Namespace: closeCurrentWindow

closeCurrentWindow

closeCurrentWindow(driver)

closeCurrentWindow

Parameters:
Name Type Description
driver Object

webdriver object of web browser.

Example

Examples usage of closeCurrentWindow

 closeCurrentWindow(driver).then(() => {
  // It will close the current window in browser.
 }).catch((error) => {
   // handle error
 });