Get active URL Version 10 (Java)

Action group: Browsers


Description

This action is intended to navigate within the current tab to the specified URL

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browserRobin.SeleniumBrowser contextYes
Results
ResultThe resulting variable to which the current URL will be writtenRobin.String

Special conditions of use

It is possible to write without “www”, for example "ya.ru".

Example of use

Task

Open browser and follow the link https://old.bankrot.fedresurs.ru/DebtorsSearch.aspx?Name=, save this link to a string type variable for further use, open the link in a new tab, next - close browser.

Solution

Use the "Open Browser", "Navigate", "Get active URL", "Navigate", "Close browser" actions. 

Implementation

  1. Assemble a robot scheme with the actions.
  2. Set the "Open Browser" action parameter.
  3. Set the "Navigate" action parameters.

  4. Set the "Get active URL" action parameters. As the action result specify a URL string type variable created earlier.  
  5. Set the "Navigate" action parameters.
  6. Set the "Close browser" action parameters.
  7. Click "Start" in the top panel.

Result

The program robot completed successfully.

 

  • Нет меток