Questions tagged [chromedriver]

ChromeDriver is a standalone server which implements WebDriver's wire protocol for Chromium. 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 available for Chrome on Android and Chrome on Desktop (Mac, Linux, Windows and ChromeOS).

Filter by
Sorted by
Tagged with
35
votes
10answers
295k views

How do I close the browser window at the end of a Selenium test?

I have googled for the answer, but the .stop() so frequently mentioned doesn't work for me. The Chrome window the test was running in remains open. def test_getResults(self): sel = selenium('...
23
votes
10answers
64k views

Chrome driver 2.28: “Chrome is being controlled by automated test software” notification. Can it be removed?

I have just updated my project with the latest chrome driver (2.28). When I run the browser through the driver, a yellow notification pops under the URL bar, saying "Chrome is being controlled by ...
19
votes
7answers
20k views

How to disable Chrome save your password? (Selenium Java)

What is the method to disable this pop-up: Do you want Google Chrome to save your password for this site? How to do this with Selenium Webdriver (Java)?
11
votes
7answers
16k views

How to autoupdate Chrome-driver in Selenium?

Every now and then when the Chrome is updated, the existing chrome driver used in the script becomes invalid and the below error message is displayed: selenium.common.exceptions....
6
votes
5answers
31k views

How to set browser locale with chromedriver (Python)

I am trying to set my browser locale by doing the following options = webdriver.ChromeOptions() options.add_argument('--lang=es') driver = webdriver.Chrome(executable_path=driver_location, ...
6
votes
5answers
37k views

How to modify HTTP request header in Selenium WebDriver with Java?

I want to add "iv-user" request header to log into web app. I'm using the newest ChromeDriver. Using extensions like ModHeader or ModifyHeaders is not working in this case. Fiddler is working, but I ...
6
votes
3answers
8k views

Chromedriver not deleting scoped* dir in temp folder after test is complete

With latest chromedriver.exe running into out of disk space issues as chromedriver is not deleting the folder named scoped_* at the end of the execution. It occupying almost 40 GB of space for 1000 ...
5
votes
1answer
11k views

Try Assert Exceptions not failing test in python unittest or better way to loop through failures

Okay I am running Chromedriver test that gathers console logs and then tests an assertion against pythons unittest. class ConsoleLogsTest(unittest.TestCase): @classmethod def setUpClass(cls)...
5
votes
2answers
4k views

Chrome argument “--disable-infobars” does not work with Chrome 65

When I start Chrome by Chromedriver with Selenium, Infobar is not hiddened. Because chrome has updated version 65.x.x.x. Here is my code: [VB.NET] Dim driverService = ChromeDriverService....
5
votes
2answers
2k views

Force a browser's visibility setting to true

I'm trying to set up some specs against a real (not headless) browser but some of the javascript on the target page only runs if the browser is visible (it doesn't need to be the active app). I've ...
5
votes
2answers
2k views

Using SuperTest/Protractor on unsecure HTTPS

I am trying to run automated API tests on localhost with an invalid cert. Is there a chromeOption equivalent to "Proceed Anyway" that I can pass to the tests so they can get a response from the url? ...
5
votes
1answer
422 views

How to control CEF3 portions of .NET project using Webdriver2?

We have a very large .NET project. This has been E2E/regression tested using QTP for 3 years. Eventually, our AUT is moving to the WEB. This process is expected to take a couple of years, it will be ...
4
votes
2answers
8k views

Selenium + ChromeDriver + Headless Chrome - failed to wait for extension background page to load

I am using Selenium 3.10.0 + ChromeDriver 2.37.543619 + Google Chrome 65.0.3325.162 I have a browser extension that I need when testing: Browser extension I am running this code: ChromeDriver ...
4
votes
1answer
4k views

Do I need to run selenium server when using chromedriver?

I'm new to Selenium and Nightwatch and installed selenium-webdriver first, then chromedriver and finally I installed Nightwatch (because the syntax looks nice to me). Now when I want to run a single ...
4
votes
1answer
506 views

Selenium downloads tmp file instead of CSV file

When I download a CSV file from a blob URL, the downloaded file always has a ".tmp" extension and wrong file name. When downloading the same file manually, the file extension and file name both are ...
3
votes
3answers
5k views

How does chromedriver.exe work on a core and fundamental level

I know that Selenium Webdriver is evolved from Selenium RC. Server in the Selenium RC was used to overcome the "same origin policy" using the proxy injection. Is it that the chromedriver.exe performs ...
3
votes
2answers
3k views

Error trying to add chrome extension in nightwatchjs

I am trying to add an extension to my chromedriver for use in my test. According to the nightwatchjs website here, extensions | array of strings | A list of Chrome extensions to install on ...
3
votes
3answers
77 views

In Page Object Model does all classes need to share a single driver instance?

I can create a BaseTest.java file and declare Public static WebDriver driver; in it. Then all classes can extend and use the same driver reference. Then all my test classes can use same instance. Can ...
3
votes
3answers
428 views

Google Chrome browser and driver versioning

I have a CI pipeline that runs my E2E tests, which the agent is prepared by: Install Google Chrome by brew (latest) Chromedriver is installed by chromedriver_binary python package (fixed version) ...
3
votes
1answer
239 views

Getting different results using selenium and iFrames on Firefox 63, Chrome 69 and Chrome 70

I wrote a test using Katalon Studio 5.8.0. My application under test contains a iFrame. Fortunately, both the iFrame and its children are identified using unique attributes. So, the following code ...
3
votes
1answer
5k views

Can't drag and drop from source to target using selenium and python

I am trying to drag and drop using Python and Selenium. I have two containers with rows which indicate file names and by drag and drop, I want to transfer one file from the first container to the ...
3
votes
1answer
428 views

How to log *everything* in Selenium/WebDriver/ChromeDriver

I am struggling with this stale-element-exception. Now I had the idea that I could perhaps maximize the logging in order to get a closer look on what's actually happening. I am instantiating the ...
3
votes
2answers
5k views

ChromeDriver : driver failed to parse value of getElementRegion - understanding the error

The chrome on my office Mac machine recently updated to 76+. Since then one of the tests, written in Protractor and CucumberJS, started failing to cite this error - WebDriverError: unknown error: ...
3
votes
2answers
543 views

How do I configure my env.rb file to be able to switch browsers?

Currently, here is part of my configuration with testing using Chrome: prefs = { 'download' => { 'default_directory' => "#{$myRoot}/PDF", 'prompt_for_download' => ...
3
votes
2answers
3k views

Selenium GeckoDriver vs ChromeDriver

I will try to be as clear as possible. Lets take an identical test case in both browsers. Open a page and find an element by the following method: wait.until(ExpectedConditions.elementToBeClickable(...
3
votes
2answers
2k views

Selenium FindElements() hangs sometimes

I have a problem when trying to find many elements in a page. Basically i have 20 identical pages, with slightly different data. Think 20 excel sheets. Page 1 50rows, page 2 100 rows, etc.. each row ...
3
votes
2answers
927 views

Drag and Drop does not work with headless chromedriver

I am automating drag and drop using Selenium and Java. Following is the code used for performing drag and drop using chrome driver in headless mode. Point classname = targetElement.getLocation(); int ...
3
votes
0answers
2k views

Headless Chrome with Docker Compose

I'm currently trying to setup headless chrome testing with Capybara in my docker-compose file. However, I keep getting that chromedriver has failed to start because it had crashed. Selenium::...
2
votes
3answers
11k views

How to handle a ReCAPTCHA picture?

How To Write Code in Selenium To Click This Picture , Down I Have Attached My Selenium Code. package Login; import java.io.File; import java.io.IOException; import org.apache.poi....
2
votes
2answers
793 views

Multithreading: chromedriver does not open url in second window

Java code in thread function, System.setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver"); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--no-sandbox"); ...
2
votes
3answers
5k views

Chromedriver quit() method doesn't close all chrome.exe processes

When I am trying to close the chrome browser using driver.quit() and driver.close(), browser is getting closed but chromedriver.exe process is not getting closed. How can we remove these processes ...
2
votes
1answer
2k views

Selenium webdriver is getting log entries for the server event “500 internal server error” when using GetLog(LogType.Browser)

After I have been doing any automated task with selenium webdriver, I check the javascript log to see if anything unexpected has happened. To do that, I am using browser.Manage().Logs.GetLog(LogType....
2
votes
2answers
2k views

Selenium send_keys on chromium confused by forward slashes

I am using selenium webdriver under python on a Debian jessie machine. The browser I am currently testing is Chrome (version 55) with chromedriver (version 2.27). If I send the string 1/2/3 to a ...
2
votes
3answers
283 views

Selenium forgets the authentication

I'm using Selenium and Java to automate tests. When opening the page under test, Chrome performs basic authentication (prompts for username/password). However, authentication should be solved on the ...
2
votes
2answers
2k views

Why chromedriver is not recognized when an environment variable is created in windows 10?

I created a testing project and set an environment variable. Then run the project and it could not find the chromedriver. Then I set a path inside the project to the chromedriver. It worked. ...
2
votes
1answer
35 views

How to start Chrome in automation mode from command line?

I am trying to find how to start Chrome as if it was started by webdriver, but manually from command line. I was looking at this list of options, but couldn't find what I need. https://peter.sh/...
2
votes
1answer
318 views

How to do right mouse click in protractor chrome?

After referring to: PROTRACTOR: Right click on link and open in NEW TAB I tried below code : describe('Right click', function () { it('test {Regression} {Sanity} {Sanity}', async ...
2
votes
1answer
1k views

How can run selenium script in chrome browser using intelliJ IDEA 2017.2.4

I have created simple TestNG file with simple code to open chrome browser in IntelliJ IDEA but its throwing below error, please help me. My code: public class Sample{ @Test (priority = 0) ...
2
votes
1answer
55 views

Browser is closed only if test passed on VM

I use driver.Dispose(); and using ChromeDriver. But the browser is closed only if the test passed. On the VM if a test failed, the browser is still open. If I run tests from Visual Studio on local ...
2
votes
1answer
403 views

How to load multiple chrome extensions in Chrome browser using Selenium java?

I got the below code to open Chrome browser using Selenium with extension enabled. To enable multiple chrome extensions, do I need to repeat the steps or is there any simpler way? String ...
2
votes
1answer
37 views

ChromeDriver FlashPolicyHelper does not work remotely

We're using the new FlashPolicyHelper(driver).addSite("https://your.site") In order to bypass the getFlash prompt when trying to navigate to our websites that use Flash. However this does not ...
2
votes
1answer
2k views

Error running selenium test on ubuntu

I'm having trouble running a selenium test on ubuntu, but everything works fine on my windows system. I'm using a mocha test suite, and am using selenium-webdriver to run the selenium test written in ...
2
votes
2answers
347 views

Coded UI automation not working in Chrome

I have installed the following: Visual Studio 2017 Chrome Browser - Version 67.0.3396.99 (Official Build) (64-bit) Chrome Driver- 2.40 While running a coded UI automation in Visual ...
2
votes
1answer
896 views

Selenium randomly hangs on getPageSource()

I have this part of code: try { Document doc=Jsoup.parse(broswer.getPageSource(),broswer.getCurrentUrl()); return doc; } catch (Exception ex) { event.log("Error while creating ...
2
votes
1answer
8k views

How to set socks5 proxy for Selenium ChromeDriver C# or Java? [closed]

I am trying to setup a socks5 proxy in ChromeDriver. I have used the below code for setting that up in C#: var options = new ChromeOptions(); var proxy = new Proxy() { Kind=ProxyKind.Manual,...
2
votes
1answer
1k views

How to Get Rid of Save Password Popup in Chrome (Ruby)

How would you disable the pop-up: "Do you want Google Chrome to save your password for this site?" I know it is due to upgrading my ChromeDriver to version 2.28. I have seen solutions recently but ...
2
votes
1answer
16k views

How to handle a window which automatically closes and back to parent window

ChromeDriver Version 2.27 The case, my aplication have duble authentication (depending where the user want to access). First I execute the login and do some clicks, after that I click on the BTN that ...
2
votes
1answer
1k views

Obtaining a Dropdown list items and their dynamic ID using Python 3.x and Selenium

i have a simple problem i am trying to automate the testing of a website that has a lot of dropdown lists that are populated dynamically. I wish to be able to obtain all of the ID's (They populate ...
2
votes
2answers
750 views

Chromedriver 2.21 clicks on a button but the application is not responding as it should? Could it be application compatibility problem?

I am running the application under test on Chrome-Version 49.0.2623.112 m (64-bit) manually. When I click on a particular button "Ophalen", a web service request is made and the responses are parsed ...
2
votes
2answers
2k views

Encountered Error Could not load type 'OpenQA.Selenium.Internal.IWrapsElement' from assembly 'WebDriver

I'm working in multiple browser testing. It was working code with chrome browser. Recently I have installed "Install-Package Selenium.WebDriver -Version 4.0.0-alpha04". MSedge Chromium and ...