Title contains Version 12 (Java)

Action group: Browsers


Description

The action expects the page title to appear. 

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
Title TextThe case-sensitive text of the title of a pageRobin.String
No
Match typeThe 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
TimeoutWait 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

  1. Assemble a robot scheme with the actions.
  2. Set the "Open browser" action parameters.
  3. Set the "Navigate" action parameters.
  4. Set the "Title contains" action parameters. 
  5. Set the "Send text" action parameters. Use the WinSpy tool to get the element (the "Element" field) Элемент (поле "Элемент")(see section Create Web-elements). 
  6. 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.

  • Нет меток