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
0 votes
2 answers
3k views

how to load chrome profile with Selenium

So I am trying to write a test in which the first step is logging in, but it is denying me access as it detected automation tools because the javascript has not been enabled and there is no profile. ...
0 votes
1 answer
1k views

Selenium with Chrome mobile emulator- can't make interactions

I'm starting to get frustrated with Chrome emulator: Using JAVA + Selenium + TestNG I'm testing many of our web applications which runs on few browsers. On mobile browser we have a special design - ...
0 votes
3 answers
3k views

How to get Embed link from Openload API after Remote upload? Selenium & Python

im trying to use Openloads API in python, i can do a remote upload like this: ol_url = driver.current_url resp = ol.remote_upload(ol_url) file_id = resp.get('id') Now i have a file uploaded in ...
0 votes
1 answer
327 views

Selenium controlled Chrome and Edge can't both access webcams

I am using Selenium 4 in java to control Chrome and Edge and other browsers in order to test a video call app. I have a test where I'm starting up 2 different browsers at once in order to get them to ...
0 votes
2 answers
2k views

data: appearing in the address bar with selenium

I am using seleniumGrid with chromedriver for running a series of automated testcases with TestNG and Selenium The thing is that there are several tests that launch a new chrome window that has a &...
0 votes
1 answer
2k views

Selenium Webdriver fails to load browser through WebDriverManager

We can run our tests in different browsers in selenium Webdriver, previously we need to executable files to run our test in any browser. But now we can achieve without using exe files & with the ...
1 vote
1 answer
4k views

unknown error: cannot create temp dir for unpacking extensions when trying to start Chrome from a LOCAL_SYSTEM service

We are trying to get our automated webtests working independently of what version of Chrome we're using. These automated tests work as follows: We have a Karaf container agent running as a service; ...
0 votes
2 answers
46 views

why do we need to verify test page title in selenium

I am a new to use selenium to do web automation test. Why do we need to verify the page title by assertEquals(actualTitle, expectedTitle) to do the test? The actualTitle value I copied from HTML title ...
2 votes
1 answer
1k views

Selenium Chrome Driver: How to Load all the Frames and get the Complete Page Source?

I'm developing an web application that monitor changes in other websites. I came across some of the websites and that contain load of Frame set and Frames. I'm using the below code: var ...
0 votes
1 answer
853 views

Chrome driver and chrome browser version is matching but selenium tests are failing

I am trying to resolve a compatibility issue between Chromedriver and Chrome browser, but none of the solutions I have tried have worked so far(mentioned below). I have latest chrome driver and chrome ...
0 votes
0 answers
75 views

Modifying Worker.navigator and Other Attributes in Selenium to Simulate Different OS

I am using Selenium with Python and attempting to trick the browser (chrome) into thinking I'm on a Windows machine when I'm actually running Linux. So far, I have managed to modify the User-Agent to ...
4 votes
1 answer
8k views

Selenium: how to prevent a just-started Chrome window from receiving focus

Using Selenium + chromedriver on Linux, like so; chrome_options = Options() driver = webdriver.Chrome('/usr/bin/chromedriver',options=chrome_options) driver.get('https://www.somewebsite.com') Chrome ...
1 vote
1 answer
786 views

How can I enable variations in Chrome from chromedriver options?

How can I enable variations in Chrome from chromedriver options? Hello, I'm facing a problem with Chrome where when I run an automated UI test with chromedriver, there's issues showing up (such as ...
1 vote
1 answer
129 views

CPU issues after upgrade to Selenium V4.11.0

After using selenium 4.11.0 version and launch error for 116 browser launch error was resolved. Has anyone observed Maximum CPU utilization issue after changing to selenium 4.11.0? I was using ...
0 votes
1 answer
3k views

Unable to create new service - Selenium + Jenkins

I have an error in my Jenkins + Selenium integration, the Selenium Grid Version is 3.7.1 (Installed by default for the Jenkins Selenium Plugin). I'm using the last chromedriver version. When I run my ...
0 votes
1 answer
353 views

Unable to locate element: {"method":"xpath","selector":"//*[@id="root"]/div[1]/div/main/div/section/div/section/div/div/ul/li[1]/a"}

The chrome browser version is Version 115.0.5790.171 and downloaded chrome driver version is 114 [![enter image description here][1]][1] as driver version 115 is not available. I'm using the x-path ...
1 vote
1 answer
737 views

Unable to run test on gitlab pipeline due to DevToolsActivePort file doesn't exist

I created a sample Selenium Webdriver test using java and maven and pushed it out to my gitlab repository. Then I created a new pipeline to run the automated tests. This is my first time running a ...
3 votes
2 answers
4k views

Headless Chrome browser won't switch to next window (Selenium + Python)

So I have a test case: When clicking a button a new window is opened. To switch to that new window I use: window_after = self.driver.window_handles[1] self.driver.switch_to.window(window_after) When ...
1 vote
1 answer
3k views

Automated tests are failing when ran together but pass when are ran individually

I'm using Python+pytest and Helium to create my tests. Each time I run a test individually, it works 100% of times. However, if I try to run more than 5-6 tests together, some are failing, some are ...
1 vote
1 answer
629 views

Exception generated after exporting code as runnable jar

D:\RhythmFileDownload>java -jar fileDownload.jar Starting ChromeDriver 2.28.455520 (cc17746adff54984afff480136733114c6b port 36946 Only local connections are allowed. Apr 03, 2017 6:14:23 PM ...
0 votes
1 answer
1k views

Problem finding element with text when the text contains &nbsb;

I have the following element in the DOM: <div id="sourceListDiv"> <select id="sourceList" onkeydown="uil.handleKeyDown(this)" size="15" ondblclick=&...
0 votes
1 answer
1k views

New SeleniumManager api in Selenium 4.6.0 - Error: session not created: This version of ChromeDriver only supports Chrome version 102?

I am using new Selenium Manager functionality in the 4.6.0 version. However, it is downloading the Chromedriver.exe in the .cache folder, but its not compatible with the Chrome Browser. Chrome Browser ...
0 votes
5 answers
5k views

After updating Google Chrome and Selenium, tests are not running with ChromeDriver

After updating Google Chrome and Selenium, tests are not running with ChromeDriver. System: OS: Ubuntu 20.04.5 LTS Selenium: selenium-server-4.8.1.jar Chrome: Version 111.0.5563.64 (Official Build) (...
2 votes
4 answers
7k 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 ...
-1 votes
3 answers
870 views

Trying to find span element by class and text with Selenium Java

<span class="icon-holder"> <i class="c-brown-500 ti-package"></i> </span> <span class="title">Vehicle Import</...
-1 votes
3 answers
243 views

java.lang.NullPointerException - at com.qa.factory.factory.DriverFactory.init_driver(DriverFactory.java:26)

public class DriverFactory { public WebDriver driver; public static ThreadLocal<WebDriver> tlDriver = new ThreadLocal<>(); /** * This method is used to initialize the ...
1 vote
1 answer
2k views

File download verification with selenium and java

So I read all the other stackoverflow topics about this, none of the solutions worked for me so lets see if someone can help me. I need to verify a download (csv) from an export button in chrome(...
3 votes
3 answers
4k 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(...
0 votes
2 answers
221 views

Not able to run tests on remote host using Jmeter Distributed Testing

I am trying to configure a distributed load testing setup for a browser based testing. Below are the settings used: Settings Done on Client machine: Made one change in meter-server file in jmeter/bin ...
43 votes
12 answers
359k 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('...
0 votes
1 answer
78 views

how to input data on reCaptcha protected page automatically using intellij framework [duplicate]

I am presently working on a story that requires me to make payment via a credit card and Klarna, but unfortunately, I am not getting the right element when I try to locate it. However, I see the page ...
17 votes
8 answers
54k 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....
1 vote
1 answer
43 views

Why I can not do drag and drop in class Action perform Selenium 4?

I am using chrome driver version 2.35 in 2023, Why old chromedriver version? That's because my project using Chrome Extension Framework (CEF) project. Using maven project IDE --> Intellij 2022.1....
2 votes
3 answers
5k views

Selenium Download Keep and Discard Problem (.cer or xml extensions)

I'm Test Automation Engineer, working with Selenium and Java. I'm developing selenium automation tests, but I have a problem with downloading something from the software I'm working on. Chrome asks me ...
0 votes
0 answers
336 views

Iframe not visible while running tests through Docker (Ubuntu Base Image)

I am having issues with IFrame element not visible on Chrome running on headless mode while running tests through Docker Containers based of the Ubuntu OS. Exact same test code is running fine on the ...
1 vote
1 answer
7k views

Invalid Session id (Connect Failure) randomly when running automated tests

I've been new to automated test creation and have been dipping my hands on it recently. Every test seems to be running successfully individually except whenever I run them all together sequentially, ...
0 votes
1 answer
934 views

macOS Monterey12.0+Python+Selenium+Chrome: WebDriverException: Message: 'chromedriver' executable needs to be in PATH & “chromedriver” can’t be opened

I am facing following multiple issues with Python + Selenium + Chrome : WebDriverException: Message: 'chromedriver' executable needs to be in PATH. “chromedriver” can’t be opened because Apple ...
0 votes
1 answer
398 views

Selenium : webdriver.Chorme() function problems

I have difficulties in finding a solution, can you help me? This is the code text: from selenium import webdriver web = webdriver.Chrome("C:\ Users\giova\Desktop\chromedriver.exe") web.get(&...
4 votes
2 answers
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
1 answer
23k views

How do I enable ChromeDriver to use browser cache or local storage with selenium python

I was trying to automate a website and it's a PWA. I need the caching data for this site as it takes too long to load, once loaded it's pretty fast. But every time I run my scripts chrome starts a new ...
0 votes
3 answers
47k views

UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure

I am trying to launch Chrome browser with cucumber script and getting: I'm Using Cucumber Selenium Script Selenium - 2.53.1 [31mFailure in before hook:[0m[31mLoginWorkFlow_StepDefinition....
1 vote
7 answers
13k views

Get Driver Version using Selenium with C#

I am testing with C# & Selenium & Selenium.Chrome.WebDriver (Nu-GET Package, Version 2.44.0). Now I am searching for a Method which gives me the actual Version of the current runnig driver. ...
0 votes
1 answer
6k views

New pc setup and keep getting WebDriverException: unknown error: Failed to create Chrome process

Any new leads on this issue? I recently switched PC and now facing the same problem so many users faced. It was usually solved with downloading the latest chromedriver.exe or by moving the chrome.exe ...
1 vote
0 answers
675 views

DOCKER org.openqa.selenium.remote.UnreachableBrowserException on Jenkins

I can run every test locally just fine if I run my test on jenkins, on a docker file, I get this error org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible ...
1 vote
0 answers
1k views

Automated testing Chrome with selenium and java returns: Failed to create Chrome process

When trying to run Selenium on Windows 10 Chrome version 90, I am getting the following error: org.openqa.selenium.WebDriverException: unknown error: Failed to create Chrome process. Driver info: ...
2 votes
1 answer
11k views

“org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally” issue on jenkins(openshift) chrome node

I've been trying to run selenium codes over Jenkins (server/openshift). There is chrome node in the jenkins machine for Test Automation - Selenium. I'm getting this error: org.openqa.selenium....
3 votes
0 answers
445 views

Server gets incredibly slow when running Selenium

I'm attempting to run Selenium (Chrome) test on 2 servers, each running Windows Server 2019 Standard (with GUI). The first server (the one with the worst specs) has the following specs: It runs ...
0 votes
1 answer
3k views

How to disable Chrome Automation Extension via Selenium (Java)

I have a requirement to disable the "chrome automation extension" while running my selenium scripts. Can someone suggest me an approach to disable this extension using Selenium. [ Note: I ...
1 vote
0 answers
71 views

Mac running out of space after several UI automation runs

I am running UI automation locally using selenium webdriver, chromedriver, and jest, on MacOS. After several runs I run out of local storage. You can watch storage decrease by about 50 gb every run. ...
0 votes
0 answers
650 views

The ChromeDriver could not be found on the current PATH

I wrote a test suite for a web application by using Selenium IDE and I used ChromeDriver to test the application, the code I used is as followed. C:\>set APPLITOOLS_API_KEY=...