Skip to main content

BrowserTab

BrowserTab class represents a web page to perform automation actions.

Properties

  • title: str, return title of the browser tab.
  • url: str, return url of the browser tab.
  • is_active: bool, indicating whether the browser tab is active or not.
  • browser: Browser, return the parent browser of the tab.

Methods

Operations related to WebElement of current browser tab

Operations related to the current browser tab

  • activate: activate the browser tab.
  • close: close the browser tab. The browser will be closed too if no opened tab.
  • goto: redirect current tab to the specified url.
  • refresh: refresh current tab page.
  • scroll:scroll the current browser tab with the scroll bar.