Switch to Tab Version 14 (Java)
Action group: Browsers
Description
The action switches focus to a selected tab among other open tabs.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with the browser. | Robin.Selenium | Browser context | Yes |
Tab index | Tab index | Robin.Numeric | No | |
Tab title | Tab name | Robin.String | No | |
Match type | The type of text to match with the title. Strict - the title is equal to the «Text» parameter. Not strict - the title contains the «Text» parameter. Regular Expression - The title matches the regular expression in the «Text» parameter. | Robin.String | No |
Special conditions of use
The numbering of tabs is done in the order of opening and does not depend on the subsequent movement of tabs in the browser, but always corresponds to their current number. I.e. after removing the 4th tab from 5, the 5th tab will become the 4th.
Text comparison when a tab is selected is case-insensitive.
Example of use
Task
Open two tabs in a browser, switch to the first one and refresh it.
Solution
Use the "Open Browser", "Navigate", "Switch to Tab", "Refresh" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open browser" action parameter.
- Set the "Navigate" action parameters (the first link).
- Set the "Navigate" action parameters (the second link).
- Set the "Switch to Tab" action parameters.
- Set the "Refresh" action parameter.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента