Close browser Version 10 (Java)

Action group: Browsers


Description

This action closes the browser. When the browser is closed, the context is closed.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browserRobin.SeleniumBrowser contextYes

Special conditions of use

None.

Example of use

Task

Go to the bankrupcy information website https://old.bankrot.fedresurs.ru/DebtorsSearch.aspxfill in the "CODE" field with a value less than 8 characters and click on the "OK" button in the window that appears, then close the browser. 


Solution

Use the "Open browser", "Navigate", "Send text", Send click", "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 "Send text" action parameters. Use the WebSpy tool to create an element (see section Create Web-elements) and write the "Code" field.

  5. Set the "Send click" action parameters. Use the WebSpy tool to create the element (see section Create Web-elements) and write the "Search" button.

  6. Set the "Close browser" action parameter.

  7. Click "Start" in the top panel.

Result

The program robot completed successfully.

  • Нет меток