Title contains Version 12 (Java)
Action group: Browsers
Description
The action expects the page title to appear.
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 |
Title Text | The case-sensitive text of the title of a page | Robin.String | No | |
Match type | The type of text match. 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 | |
Timeout | Wait until condition to be done (ms). The value is converted to seconds: it`s divided by 1000 and rounded up. | Robin.Numeric |
Special conditions of use
Text comparison is case-insensitive.
Example of use
Task
Go to page https://dzen.ru/?yredirect=true and wait for the page title to appear, when it appears input the word "Programming" into the search bar.
Solution
Use the "Open Browser", "Navigate", "Title contains", "Send text" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open browser" action parameters.
- Set the "Navigate" action parameters.
- Set the "Title contains" action parameters.
- Set the "Send text" action parameters. Use the WinSpy tool to get the element (the "Element" field)(see section Create Web-elements).
- Click "Start" in the top panel.
Result
The program robot completed successfully. The page title is defined, and the desired text is input into the search bar.
Обзор
Инструменты контента