Python Forum
How do I get rid of "Chrome is being controlled by automated test software"?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I get rid of "Chrome is being controlled by automated test software"?
#1
Hello! I'm a new member here.

I've made a code here with a tool that most of you are probably familiar with; Selenium.
The code itself is working fine, but my issue is that I cannot get past the
"Chrome is being controlled by automated test software"-lock in Chrome.

I cannot be logged in to Google and/or Youtube due to "security reasons", because of the Selenium tool.
I have looked up other forums and saw some codes were given to get around this issue,
but they were not helpful and didn't do the job for me at all.
All I want is to remain logged in to Google and Youtube as I'm executing the code.

Any help? Thank you in advance.

Also, I'm new to programming, so please make it easy for me.

from selenium import webdriver
import time

chrome_driver = webdriver.Chrome('D:\PycharmProjects\Refresher\chromedriver.exe')
no_of_driver = int(input("Enter number of drivers: "))
url = input("Enter URL: ")
time_to_refresh = int(input("Enter refresh rate in seconds: "))
drivers = []

for i in range(no_of_driver):
    drivers.append(webdriver.Chrome(executable_path="D:\PycharmProjects\Refresher\chromedriver.exe"))
    drivers[i].get(url)
while True:
    time.sleep(time_to_refresh)
    for i in range (no_of_driver):
        drivers[i].refresh()
Reply


Messages In This Thread
How do I get rid of "Chrome is being controlled by automated test software"? - by jetBlack - Feb-22-2022, 08:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I want to create an automated website in python mkdhrub1 2 2,473 Dec-27-2021, 11:27 PM
Last Post: Larz60+
  Expose chrome extension buttons to Python robertjaxe 2 2,391 May-12-2020, 07:52 PM
Last Post: robertjaxe
  Selenium/chrome console WiPi 4 5,935 Apr-12-2020, 11:45 AM
Last Post: WiPi
  Chrome instead of IE Friend 1 2,186 Feb-09-2020, 07:31 AM
Last Post: Larz60+
  Headless Chrome: How to login into a webpage? amandacstr 1 4,344 Feb-06-2020, 02:19 AM
Last Post: metulburr
  Automated Git add/commit/push rxndy 0 2,063 May-13-2019, 11:51 AM
Last Post: rxndy
  Interfacing Google Chrome & Python akornrumpf 5 4,151 Mar-16-2019, 10:20 PM
Last Post: Larz60+
  Cannot open Chrome gahhon 3 3,669 Jan-26-2019, 04:56 AM
Last Post: snippsat
  selenium - chrome crashes when chrome is running. RvBVakama 4 15,372 Dec-16-2018, 06:32 PM
Last Post: metulburr
  Automated Emailer (Using Selenium) StoopidChicken 0 2,996 Jul-17-2018, 07:20 AM
Last Post: StoopidChicken

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020