chrome-web-driver

selenium.common.exceptions.WebDriverException: Message: 'library' executable may have wrong permissions for ChromeDriver

一个人想着一个人 提交于 2021-02-04 05:55:33
问题 I want to use the chrome webdriver to connect to "https://www.google.com". below is the code. from selenium import webdriver import time driver = webdriver.Chrome("C:\\Users\\faisal\\library") driver.set_page_load_timeout(10) driver.get("https://www.google.com") driver.find_element_by_name("q").send_keys(" automation by name ") driver.find_element_by_name("blink").click() time.sleep(5) driver.close() When I run the test, the following error message is displayed.Its a permission problem C:

Cant find root elements with RemoteWebDriver.FindElementsByXPath(“/”);

梦想的初衷 提交于 2020-08-08 03:58:32
问题 When I try to use var element = webdriver.FindElementByXPath("/"); or var elements = webdriver.FindElementsByXPath("/"); I expect to get the root element(s) of my document. What I get instead is an InvalidSelectorException with this message. "invalid selector: The result of the xpath expression "/" is: [object HTMLDocument]. It should be an element. (Session info: chrome=50.0.2661.102) (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 10.0

gulp-protractor error with chrome v54 / web driver v2.25

◇◆丶佛笑我妖孽 提交于 2020-01-17 05:22:20
问题 Due to the latest update of chrome (v54) we've noticed our protractor tests failing. We attempted to update to the latest version of gulp-protractor (v3.0.0) which in turn downloads the latest web driver (v2.25) to resolve the issue but unfortunately a new error occurs we've been unable to resolve. Everything worked fine before chrome's update. Our protractor configuration is as follows: exports.config = { // Capabilities to be passed to the webdriver instance. capabilities: { 'browserName':

gulp-protractor error with chrome v54 / web driver v2.25

落爺英雄遲暮 提交于 2020-01-17 05:22:04
问题 Due to the latest update of chrome (v54) we've noticed our protractor tests failing. We attempted to update to the latest version of gulp-protractor (v3.0.0) which in turn downloads the latest web driver (v2.25) to resolve the issue but unfortunately a new error occurs we've been unable to resolve. Everything worked fine before chrome's update. Our protractor configuration is as follows: exports.config = { // Capabilities to be passed to the webdriver instance. capabilities: { 'browserName':

How to fix [1573451709.039][WARNING]: Timed out connecting to Chrome, retrying… while using chrome version 78 and chrome driver version 78.0.3904.70

你。 提交于 2020-01-10 06:11:19
问题 My Chrome browser is updated to version 78 and when I tried to execute any code of automation, it shows the error Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1573451703.668][WARNING]: Timed out connecting to Chrome, retrying... Nov 11, 2019 11:25:05 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [1573451709.039][WARNING]: Timed out connecting to Chrome, retrying... How can I fix it? 回答1:

How to fix [1573451709.039][WARNING]: Timed out connecting to Chrome, retrying… while using chrome version 78 and chrome driver version 78.0.3904.70

不想你离开。 提交于 2020-01-10 06:09:07
问题 My Chrome browser is updated to version 78 and when I tried to execute any code of automation, it shows the error Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1573451703.668][WARNING]: Timed out connecting to Chrome, retrying... Nov 11, 2019 11:25:05 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [1573451709.039][WARNING]: Timed out connecting to Chrome, retrying... How can I fix it? 回答1:

Protractor - Error: Failed: WebDriverError

点点圈 提交于 2020-01-07 05:12:08
问题 I have a protractor project that It starts and runs specs as I expect but after almost 2 minutes it starts getting this error on rest of test cases. I don't know why. It had run perfectly one week ago but now I faced that error and it doesn't give (or I can't see) any detail about error. "Error: Failed: WebDriverError at stack (Z:\\dev\\lmw\node_modules\\protractor\node_modules\\jasmine-core\\lib\\jasmine-core\\jasmine.js:2200:17) at buildExpectationResult (Z:\\dev\\lmw\node_modules\

WebDriverIO Selenium pass command line arguments into Chrome from config.js file

喜夏-厌秋 提交于 2020-01-01 05:18:16
问题 I need chrome to run with disable-web-security flag for my UI tests. How can I inject any commands using wdio.config file (http://webdriver.io/). capabilities: [{ browserName: 'chrome' }] 回答1: You can set any chrome flags within the desired capabilities using chromeOptions capabilities: [{ browserName: 'chrome', chromeOptions: { args: ['disable-web-security'] } }] Check out the chromedriver docs for more information on the chromeOptions object. 回答2: This ended up being the correct syntax,

Download MP4 file instead of playing it using ChromeDriver?

不问归期 提交于 2019-12-29 05:24:09
问题 I'm using Chrome Web Driver 2.10 chromedriver_win32.zip with Selenium WebDriver 2.31.2. With verbose logging enabled it seems the DesiredCapabilities (https://sites.google.com/a/chromium.org/chromedriver/capabilities) are passed just fine, [1.174][FINE]: Initializing session with capabilities { "browserName": "chrome", "chrome.switches": [ ], "chromeOptions": { "args": [ ], "binary": "", "extensions": [ ], "prefs": { "download.default_directory": "C:\\Downloads", "download.directory_upgrade":