Feb-22-2022, 08:42 PM
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.
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()