Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

URL                                             The The URL that should be navigated to when the browser is opened

Save in                                         The path to the folder where files should be saved when downloaded

...

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Browser

Browser selection

Default is Chrome


Dropdown list:

  • Chrome
  • Yandex
  • Firefox
  • Internet Explorer
  • Edge (chromium)
Robin.StringChromeNo
PropertiesList of browser properties and their values ​​that will be set when the browser starts

In JSON format, describing a list of browser properties and their values to be set at launch

If the parameter is populated, its values take precedence over the values of the other fields

You can connect extensions and set the profile through this parameter

Robin.StringJSON по шаблонуNo
Explicitly waitTime to wait for changes in the properties of individual elements

Specifies a waiting time limit value to be used by default in group actions, determining the time to access items

Measured in milliseconds

Robin.Numeric10000No
Background modeBackground mode
Internet Explorer does not support this setting (вопрос)
Robin.BooleantrueNo
URLURL to be navigated after opening the browserRobin.Stringhttps://google.com/No
Save inPath to folder to save filesRobin.FolderPathC:\doc\imgNo
Results
ContextThe browser instance that Selenium will work withBrowser instance with which Selenium will workRobin.SeleniumBrowser context

...

When performing the “Open Browser” action, if you use an encoding other than UTF-8 in the env.cfg file - for example, with Cyrillic characters - you may get a situation where if the driver is present, a message about its absence appears:

Result

The actionfailsbecause the driver is notfound.

The reason is a problem in the encoding of the env.cfg file. In our example, on a virtual host, the file was encoded in Windows-1251:

In order for the "Open Browser"actiontowork, you need to convertandresave the fileinUTF-8 encoding:

The actionwill be started, and the robot will completewithout an error. The browser will open.

Информация

Thissituationcan be replicatedwithanyfolderthathasCyrillic letters in the path.At the same time, it is notnecessarythattheuser himself bewritten in Cyrillic.


Example of use

Task

Open the selected browser on the given page, get the action context for working with actions of the "Browsers" group.

...