I'm using selenium with firefox 82.0.3 (64)
The code is working properly but the issue is that it is saying browser is under remote control.
Is there any way to solve it or other ways to bypass it.
What I actually want to do with selenium is to open a new firefox instance with a new proxy defined by me each time I execute my code..
Thanks in Advance
Here's is my code snipet.
import webbrowserimport timefrom selenium import webdriverfrom webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.firefox import GeckoDriverManagerfrom selenium.webdriver.common.desired_capabilities import DesiredCapabilitiesfbgroups = open("all.txt").readlines()whitelist = open("ntp.txt").readlines()llf = open('last.txt',"r")print("Total groups: " + str(len(fbgroups)))print("Whitelisted: " + str(len(whitelist)))print("Last: " + str(llf.read()))# var = int(input('\nStart from: '), 10)var = 1myProxy = "us.smartproxy.com:18000"PROXY_HOST, PROXY_PORT = myProxy.split(":")while True: for a in range (len(fbgroups)-var,0, -1): print("Line No: " + str(a+1)) matched = False for b in range (len(whitelist)): if whitelist[b].replace('\n', '') in fbgroups[a].replace('\n', ''): print("URL"+str(a) +": Match: " + fbgroups[a]) matched = True break if (matched == False): lastLink = open('last.txt',"w+") lastLink.write(str(len(fbgroups)-a)) lastLink.close() print("URL"+ str(a)+": " + fbgroups[a]) myprofile = webdriver.FirefoxProfile() myprofile.set_preference("network.proxy.type", 1) myprofile.set_preference("network.proxy.http",PROXY_HOST) myprofile.set_preference("network.proxy.http_port",int(PROXY_PORT)) myprofile.set_preference("network.proxy.ssl",PROXY_HOST) myprofile.set_preference("network.proxy.ssl_port",int(PROXY_PORT)) myprofile.set_preference("network.proxy.ftp",PROXY_HOST) myprofile.set_preference("network.proxy.ftp_port",int(PROXY_PORT)) user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36' myprofile.set_preference("general.useragent.override", user_agent) myprofile.update_preferences() driver = webdriver.Firefox(firefox_profile=myprofile, executable_path=r'C:\Users\Administrator\Downloads\geckodriver.exe') driver.get(fbgroups[a]) print("Page Title is : %s" %driver.title) input() print("ALL DONE :)")