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

Ключ

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

...

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 withЭкземпляр браузера, с которым будет работать Seleniumwith
Browser instance with which Selenium will work
Robin.SeleniumBrowser context

...

Блок кода
languageerl
themeEclipse
{"goog:chromeOptions":{
     "args":[
      "-disable-blink-features=AutomationControlled",
      "disable-popup-blocking",
      "disable-notifications",
      "disable-infobars",
      "disable-gpu",
      "no-sandbox",
      "disable-extensions",
      "start maximized",
      "user-data-dir=C^//Users//robin_user//APPData//Local//Yandex//YandexBrowser//User Data",
      "profile-directory=Profile 1"
  ],
  "excludeSwitches":["enable-automation"],
  "extensions":[]
 }
}


Подсказка

PLEASE NOTE!

The string "excludeSwitches":["enable-automation"] allows you to disable checking for automated software control, and the"disable-extensions" argument blocks plugins from loading. 

The plugin loading process checks to see if the browser is running automated software.

In order to load a plugin, you must disable the check for automated software management and remove the "disable-extensions" argument.

Возможны ситуации, когда при загрузке страницы, страница пользователю видна и с ней можно взаимодействовать, при этом страница продолжает загрузку. Робот же останавливается и ожидает окончания загрузки страницы. Чтобы робот продолжил свою работу, нужно принудительно отменить загрузку.

...

It is possible that when a page is loaded, the page is visible to the user and can be interacted with, and the page continues to load. The robot stops and waits for the page to finish loading. In order for the robot to continue its work, it is necessary to forcibly cancel the loading.

To do this, you need to specify in the properties Для этого нужно указать в свойствах "pageLoadStrategy":

Блок кода
languageerl
themeEclipse
{"acceptInsecureCerts":true,"browserName":"chrome","goog: loggingPrefs":{"browser":"ALL"},"pageLoadStrategy": "eager",
"timeouts":{"implicit":0,"pageLoad":300003,"script":30003},
"unhandledPromptBehavior":"dismiss",
"goog:chromeOptions":{"args":["disable-popup-blocking","disable-notifications","no-sandbox"],"extensions":[]}}

Кроме того, вместо значения "eager" можно указать значение "none", но тогда есть риск что страница не загрузится. Значение "eager" ждет только загрузки DOM страницы, не ожидая загрузки скриптов, изображений и других ресурсов, значение "none" вообще не ждетAlternatively, you can specify "none" instead of "eager", but then there is a risk that the page will not load. The "eager" value only waits for the page DOM to load, without waiting for scripts, images and other resources to load, the "none" value does not wait at all.

Example of use

Task

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

...