Action group: Browsers
Description
The action returns the number of tabs in the browser.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for browser operations | Robin.Selenium | Browser context | Yes |
Results | ||||
Result | The number of tabs in the browser | Robin.Numeric |
The action will not fail if there are no open tabs in the browser other than the browser home page.
Tab groups will be counted by the number of tabs inside. A group does not count as one tab.
If you put tabs in a group and ask the group to open in a new window, the tabs in the new window will still be counted because the context remains shared. And if you try to close the context (browser), all windows generated from it will be closed.
Open two tabs in a browser, switch to the first one and refresh it.
Use the "Open Browser", "Navigate", "Get the number of tabs" actions.
The program robot completed successfully.