Answer the question
In order to leave comments, you need to log in
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
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")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question