: Message: Can not connect to the Service C:\chromedriver.exeġ- running everything as both admin and normalģ- using the beta-chroma 80 and webdriver 80Ĥ- using normal chrome 79 and webdriver 79ĥ- Having both the script and the driver in the same directory (while using aĦ- Having an external path and have it setup as neededĨ- Adding "127.0.0.1 localhost" to etc/hosts Which would instead give me this almost identical error message: With webdriver.Chrome("C:\\chromedriver.exe",chrome_options=chrome_options) as driver: In the last question I also tried this modification: chrome_options = Options() With webdriver.Chrome(chrome_options=chrome_options) as driver:ĭt_window_size(800, 460) # takes two arguments, width and height of the browser and it has to be called before using get()ĭriver.execute_script("='150%'")ĭriver.get("file:\\"+url) # takes one argument, which is the url of the website you want to openĭriver.find_element_by_tag_name('body').screenshot(output) # avoids scrollbar I am using chrome version 79 and have installed chromedriver 79, I tested writing chromedriver in command line and that works which means path is configured right, I have made sure 127.0.0.1 localhost is also in etc/hostsīelow is my code which works on my computer (so i doubt its an issue with the code): chrome_options = Options()Ĭhrome_options.add_argument("-headless") However the solutions mentioned didnt work. Selenium and Python3 ChromeDriver raises Message: Can not connect to the Service chromedriver Selenium python: Can not connect to the Service %s" % self.path : Message: Can not connect to the Service chromedriver So I have made a program on one computer using selenium and that worked, Now using it in another computer I get this error:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |