selenium-chromedriver

Is Chrome installation needed or only chromedriver when using Selenium?

本小妞迷上赌 提交于 2020-07-16 06:45:03
问题 I've tried to search, but haven't found a definitive answer. On Windows Server 2016 WITHOUT Chrome Browser actually installed. I downloaded the correct "chromedriver.exe" and placed it in "D:\Apps\chromedriver.exe". I have added to my environment PATH the full path as "D:\Apps\chromedriver.exe". When I attempt to start my Windows Service that utilizes the latest Selenium, I get the following error: Exception occurred: Failed initializing web driver: Message: unknown error: cannot find Chrome

Is Chrome installation needed or only chromedriver when using Selenium?

本小妞迷上赌 提交于 2020-07-16 06:44:25
问题 I've tried to search, but haven't found a definitive answer. On Windows Server 2016 WITHOUT Chrome Browser actually installed. I downloaded the correct "chromedriver.exe" and placed it in "D:\Apps\chromedriver.exe". I have added to my environment PATH the full path as "D:\Apps\chromedriver.exe". When I attempt to start my Windows Service that utilizes the latest Selenium, I get the following error: Exception occurred: Failed initializing web driver: Message: unknown error: cannot find Chrome

Is Chrome installation needed or only chromedriver when using Selenium?

*爱你&永不变心* 提交于 2020-07-16 06:44:08
问题 I've tried to search, but haven't found a definitive answer. On Windows Server 2016 WITHOUT Chrome Browser actually installed. I downloaded the correct "chromedriver.exe" and placed it in "D:\Apps\chromedriver.exe". I have added to my environment PATH the full path as "D:\Apps\chromedriver.exe". When I attempt to start my Windows Service that utilizes the latest Selenium, I get the following error: Exception occurred: Failed initializing web driver: Message: unknown error: cannot find Chrome

How does this website detect remote control with selenium and chromedriver?

左心房为你撑大大i 提交于 2020-07-15 08:02:05
问题 I’m trying to screen scrape my own credit card information from the Discover website using selenium and chromedriver. In response it returns the error: Your account cannot currently be accessed. Outdated browsers can expose your computer to security risks. To get the best experience on Discover.com, you may need to update your browser to the latest version and try again. Interestingly, if I write a script to open a headed browser and type in some random account and password, it works normally

How does this website detect remote control with selenium and chromedriver?

怎甘沉沦 提交于 2020-07-15 07:57:19
问题 I’m trying to screen scrape my own credit card information from the Discover website using selenium and chromedriver. In response it returns the error: Your account cannot currently be accessed. Outdated browsers can expose your computer to security risks. To get the best experience on Discover.com, you may need to update your browser to the latest version and try again. Interestingly, if I write a script to open a headed browser and type in some random account and password, it works normally

SessionNotCreatedException: This version of ChromeDriver only supports Chrome version 84 using ChromeDriver and Chrome through Selenium and Python

拜拜、爱过 提交于 2020-07-12 05:11:08
问题 I am using python 3 on windows 7, selenium, chromedriver version 84 (latest) to automate my chrome browser. I am using this script: from selenium import webdriver #import chromedriver_binary # Adds chromedriver binary to path driver = webdriver.Chrome() driver.get("http://www.python.org") and I always get this error upon running it. Traceback (most recent call last): File "D:\Huzefa\Desktop\zzzzzz.py", line 4, in <module> driver = webdriver.Chrome() File "C:\Users\Huzefa\AppData\Local

Why doesn't ChromeDriver require Chrome or Chromium?

我怕爱的太早我们不能终老 提交于 2020-07-11 10:16:47
问题 ChromeDriver is working on my system even though I don't have Chrome or Chromium installed. Based on the name, I thought it was like a "car driver" where you still need a car to get going. Or maybe like a product's API where you still need the product for your API calls to accomplish something. Edit: Whoops, Chromium is installed after all. 回答1: Of course ChromeDriver requires Chrome or Chromium . As per ChromeDriver - WebDriver for Chrome ChromeDriver is a separate executable that WebDriver

How to set https proxy in selenium

馋奶兔 提交于 2020-07-11 06:25:03
问题 How to set https proxy in selenium and chromedriver? Here is my code to set up http proxy. System.setProperty("webdriver.chrome.driver", "C:\\Users\\lll\\Desktop\\chromedriver.exe"); DesiredCapabilities cap = new DesiredCapabilities(); Proxy proxy=new Proxy(); String proxyIpAndPort= "123.123.123.123:31288"; proxy.setHttpProxy(proxyIpAndPort).setFtpProxy(proxyIpAndPort).setSslProxy(proxyIpAndPort); cap.setCapability(CapabilityType.ForSeleniumServer.AVOIDING_PROXY, true); cap.setCapability

How to set https proxy in selenium

拟墨画扇 提交于 2020-07-11 06:24:34
问题 How to set https proxy in selenium and chromedriver? Here is my code to set up http proxy. System.setProperty("webdriver.chrome.driver", "C:\\Users\\lll\\Desktop\\chromedriver.exe"); DesiredCapabilities cap = new DesiredCapabilities(); Proxy proxy=new Proxy(); String proxyIpAndPort= "123.123.123.123:31288"; proxy.setHttpProxy(proxyIpAndPort).setFtpProxy(proxyIpAndPort).setSslProxy(proxyIpAndPort); cap.setCapability(CapabilityType.ForSeleniumServer.AVOIDING_PROXY, true); cap.setCapability

WebDriverWait is not waiting for the element I specify

蓝咒 提交于 2020-07-10 06:21:29
问题 I am trying to get my code to wait for an element to appear before trying to get the text from the element. If I step through the code allowing the element time to appear it works as expected, but if I run it without breakpoints the wait appears to be ignored and an exception is raised. I don't understand why it is being ignored? WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30)); IWebElement message = wait.Until(driver => driver.FindElement(By.ClassName("block-ui