P
P
Pavel Chirkov2019-05-01 17:35:08
Python
Pavel Chirkov, 2019-05-01 17:35:08

How to remove browser is a remote control object in Selenium web driver?

I am using Python.
The question arose of how to remove the inscription in the Selenium web driver, the browser is an object of remote control.
As far as I understand, this is sent to yandex, or how can I make an emulator that goes to yandex under the headings imitating a real browser.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeniy _, 2019-05-08
@pawelch

If you open a page with the driver and go to the console and return the navigator.webdriver;. You will see that, firstly, such a variable is present there, and secondly, it is equal true;
. To get rid of it, you can do this (I tried it on Chrome 74)
Add to the options:
With this setting, the webdriver variable will no longer be in the navigator.
PS: to remove the pop-up bar - Some also check for the presence of the $cdc_blahblahblah variable. It can also be renamed. Try! options.add_argument("--disable-infobars")

D
Dimonchik, 2019-05-01
@dimonchik2013

hehe, Yandex defines it wrong. and not only Yandex - on Mamba you can practice
removing it by recompiling only, this is not done with settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question