google-chrome

Is there a way to screenshot instagram without making it logging in more than once in selenium?

Is there a way to screenshot instagram without making it logging in more than once in selenium? Question: Is there a way where every time selenium tries to screenshot an instagram account, it only needs to login once? import requests from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By import time from …

Total answers: 1

Selenium Python: How can I disable JavaScript while using headless Chrome?

Selenium Python: How can I disable JavaScript while using headless Chrome? Question: Using these options together doesn’t work as expected: options.add_argument(‘–disable-javascript’) options.add_argument(‘–headless’) When I disable JavaScript without using headless mode, it looks like this. But when I try to disable JavaScript with headless mode, it looks like this. Asked By: 王北屿 || Source Answers: It’s …

Total answers: 1

Selenium: Chrome failed to start: exited abnormally

Selenium: Chrome failed to start: exited abnormally Question: I’m trying to make an application with python and selenium but I run into an error. I already searched for a solution and found out that you should add those arguments: –no-sandbox, –headless, –disable-dev-shm-usage which I did but it still didn’t work. The error (full traceback below): …

Total answers: 1

RequestsDependencyWarning: urllib3 (1.26.11) or chardet (3.0.4) doesn't match a supported version error using Selenium and ChromeDriverManager

RequestsDependencyWarning: urllib3 (1.26.11) or chardet (3.0.4) doesn't match a supported version error using Selenium and ChromeDriverManager Question: I have this script to acess my internet modem and reboot the device, but stop to work some weeks ago. Here my code: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import …

Total answers: 2

python selenium checking for element in chrome doesn't work as expected

python selenium checking for element in chrome doesn't work as expected Question: This works just fine in Firefox. When I use Chrome, once the page fully loads it doesn’t print "element loaded", and it doesn’t go to timeout either. It just waits forever. I’ve tried using visibility_of_element_located instead of presence_of_element_located but it makes no difference. …

Total answers: 1

Selenium – Python – AttributeError: 'WebDriver' object has no attribute 'find_element_by_name'

Selenium – Python – AttributeError: 'WebDriver' object has no attribute 'find_element_by_name' Question: I am trying to get Selenium working with Chrome, but I keep running into this error message (and others like it): AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_name’ The same problem occurs with find_element_by_id(), find_element_by_class(), etc. I also could not call send_keys(). I …

Total answers: 4

Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token

Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token Question: options = webdriver.ChromeOptions() options.add_argument("user-data-dir=C:\Users\jack_l\AppData\Local\Google\Chrome\User Data") options.add_argument(r’–profile-directory=Profile 8′) driver = webdriver.Chrome(ChromeDriverManager().install(), options=options) I’m getting the Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token. error at the driver = webdriver.Chrome(ChromeDriverManager().install(), options=options) line. I found another post …

Total answers: 2