Questions tagged [chrome-web-driver]

WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server which implements WebDriver's wire protocol for Chromium. It is being developed by members of the Chromium and WebDriver teams.

WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server which implements WebDriver's wire protocol for Chromium. It is being developed by members of the Chromium and WebDriver teams.

175 questions
29
votes
15 answers

ChromeDriver error "unknown error: cannot get automation extension"

Since the 7th of February all my tests are failing with the same error; the log entry reads: RESPONSE MaximizeWindow unknown error: cannot get automation extension from unknown error: page could not be found:…
Emanuele Ciriachi
  • 2,108
  • 2
  • 23
  • 34
27
votes
1 answer

Official locator strategies for the webdriver

In the official W3c webdirver documentation, it's clearly stated that the location strategies are: State Keyword CSS selector "css selector" Link text selector "link text" Partial link text selector "partial link text" Tag name "tag…
Merc
  • 13,909
  • 14
  • 64
  • 109
20
votes
9 answers

ChromeWebDriver - unknown error: Chrome failed to start: crashed

I'm trying to test my application on Chrome with ChromeWebDriver but every time I try I get following exception: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed (Driver info:…
Paweł Adamski
  • 2,765
  • 2
  • 21
  • 40
19
votes
1 answer

Protractor/jasmine test throws "UnknownError: unknown error: Maximum call stack size exceeded"

I have a test which each time I run it, throws "UnknownError: unknown error: Maximum call stack size exceeded. " This test is calling a method in one of my services which writes to Google Drive. The test that is failing is calling my doDrive…
13
votes
5 answers

Is there any way to optimize / speed up the sending of data to a UI with Protractor?

I have code similar to this: ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); …
12
votes
3 answers

ChromeDriver showing Lost UI Shared Context

I have a Windows 10 laptop running a Windows 7 Virtual Machine. Inside the Virtual Machine, when i start the WebDriver, it gives the error gpu_process_transport_factory.cc<1009> Lost UI shared context when it is started: IWebDriver driver = new…
12
votes
5 answers

Selenium: Runtime.executionContextCreated has invalid 'context':

I looked the similar question here Protractor / Selenium Webdriver : Runtime.executionContextCreated has invalid 'context' and here BUG-1473, but I cannot get the answer hence I decided to give it here. I installed latest chrome_driver v2.9, but…
Humoyun Ahmad
  • 6,560
  • 4
  • 41
  • 49
10
votes
4 answers

WebDriverException Element must be user-editable in order to clear it

I am trying to run test cases to perform reset password and I am facing this issue. WebDriverException Element must be user-editable in order to clear it. Basically i am accessing the page for entering the new password and doing…
9
votes
3 answers

Download MP4 file instead of playing it using ChromeDriver?

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…
Matija Grcic
  • 11,718
  • 3
  • 59
  • 85
8
votes
1 answer

org.openqa.selenium.TimeoutException when loading angular SPA

I'm using chimp.js which enhances webdriver.io with some fibers magic so that the code can be defined in a synchronous way. This is the code: var c = require('./config'); module.exports = function () { this.When(/^I try to login with wrong…
peter
  • 11,751
  • 6
  • 52
  • 89
8
votes
4 answers

Webdriver exception: "chrome not reachable"

I am running selenium test cases in a ubuntu server which basically runs testcases in both firefox and chrome. Firefox launches and test cases run successfully but chrome throws exception: *****below is the snippet of the stacktrace:***** Starting…
7
votes
1 answer

selenium python element.screenshot() not working

from selenium import webdriver browser = webdriver.Chrome() browser.get("http://www.baidu.com") browser.find_element_by_id('su').screenshot('E:/test.png') browser.quit() when I run above code, I got the errors,my python version is 2.7.13,…
Alex Bruce
  • 495
  • 7
  • 21
7
votes
4 answers

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

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' }]
5
votes
6 answers

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

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) …
5
votes
0 answers

I can't use send_keys for chrome webdriver

I created a Python webdriver program, I used send_keys and I've got this error: Traceback (most recent call last): File "D:/Amazon FBA/amazon-100-botzi/templates/send_keys_v2.py", line 10, in elem.clear() File…
ryy77
  • 746
  • 1
  • 10
  • 25
1
2 3
11 12