selenium-chromedriver

Chomedriver “The driver is not executable”

一笑奈何 提交于 2021-02-16 16:16:09
问题 I have my chromedriver and chromedriver.exe right in project folder. I'm creating instance of driver with this code. ChromeOptions options = new ChromeOptions(); DesiredCapabilities capabilities = DesiredCapabilities.firefox(); LoggingPreferences log_prefs = new LoggingPreferences(); log_prefs.enable(LogType.BROWSER, Level.SEVERE); capabilities.setCapability(CapabilityType.LOGGING_PREFS, log_prefs); System.setProperty("webdriver.chrome.driver", "chromedriver"); driver = new ChromeDriver

WebDriverException: disconnected: unable to connect to renderer even on providing correct path of latest chromedriver

我怕爱的太早我们不能终老 提交于 2021-02-16 14:52:37
问题 package Testing_Forum; import java.util.concurrent.TimeUnit; import org.openqa.selenium.PageLoadStrategy; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class XTR { public static void main(String arg[]) { System.getProperty("webdriver.chrome.driver,D:\\Important\\chromedriver_win32_important\\chromedriver.exe"); WebDriver driver=new ChromeDriver(); driver.get("https://www.google.com/"); driver.manage().window().maximize(); driver.manage().timeouts

Selenium not using Default Chrome Profile

北城以北 提交于 2021-02-15 07:03:09
问题 Selenium will not load my default Chrome Profile and I cannot figure out why. I have tried both Profile 1 and a Default profile with the same error (below). I have confirmed with Task Manager that all Chrome windows are shut down before running this code. Any thoughts? from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import numpy as np from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options import os os

Selenium not using Default Chrome Profile

人盡茶涼 提交于 2021-02-15 07:01:10
问题 Selenium will not load my default Chrome Profile and I cannot figure out why. I have tried both Profile 1 and a Default profile with the same error (below). I have confirmed with Task Manager that all Chrome windows are shut down before running this code. Any thoughts? from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import numpy as np from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options import os os

Selenium not using Default Chrome Profile

懵懂的女人 提交于 2021-02-15 07:01:06
问题 Selenium will not load my default Chrome Profile and I cannot figure out why. I have tried both Profile 1 and a Default profile with the same error (below). I have confirmed with Task Manager that all Chrome windows are shut down before running this code. Any thoughts? from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import numpy as np from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options import os os

How to Change a html line code with python

为君一笑 提交于 2021-02-13 17:29:53
问题 I'd like to change this line: <button _ngcontent-c19="" class="blue-button-disabled" disabled="">CONTINUE </button> to this: <button _ngcontent-c19="" class="blue-button">CONTINUE </button> all that I could do is change the class name from blue-button-disabled to blue-button, but I couldn't remove disabled="" I used this code to achieve that result: driver.execute_script("arguments[0].setAttribute('class','blue-button')", element) 回答1: To remove the attribute disabled="" you can use the

selenium.common.exceptions.TimeoutException while invoking .click() on an element through expected_conditions

荒凉一梦 提交于 2021-02-13 05:45:19
问题 Using python, chromedriver and Windows. I've working on a script for some months which uses .click() function regularly, few days ago it stopped working anywhere on the site. I've been trying to locate the element by id, xpath, etc... or even click it by send_keys(Keys.ENTER) with no success. I'm just trying to click the login icon but nothing happens. Seems to find the element and even click it, but nothing happens. This is the site and here the code: browser = webdriver.Chrome(chrome

selenium.common.exceptions.TimeoutException while invoking .click() on an element through expected_conditions

☆樱花仙子☆ 提交于 2021-02-13 05:43:47
问题 Using python, chromedriver and Windows. I've working on a script for some months which uses .click() function regularly, few days ago it stopped working anywhere on the site. I've been trying to locate the element by id, xpath, etc... or even click it by send_keys(Keys.ENTER) with no success. I'm just trying to click the login icon but nothing happens. Seems to find the element and even click it, but nothing happens. This is the site and here the code: browser = webdriver.Chrome(chrome

WebDriverException: unknown error: unable to discover open pages error with ChromeDriver 80.0.3987.106 and Chrome 80.0.3987.122

元气小坏坏 提交于 2021-02-13 05:40:14
问题 My local windows 10 computer update auto chrome version to 80.0.3987.122 (Build officiel) (64 bits) I use https://chromedriver.storage.googleapis.com/80.0.3987.106/chromedriver_win32.zip but now I have this error: Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System

webscraping using python and selenium and tried to use multiprocessing but code not working. without it code works fine

泄露秘密 提交于 2021-02-11 16:56:58
问题 Am doing web scraping with python & selenium. I used to scrape data for one location & year at a time, by creating 1800 .py files (600 places * 3 years = 1800) and batch opening 10 at a time and waiting for it to complete. which is time-consuming so I decided to use multiprocessing. I made my code to read places data from a text file and iterate with it. the text file looks like this Aandimadam Aathur_Dindugal Aathur_Salem East Abiramam Acchirapakkam Adayar Adhiramapattinam Alandur