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).

42 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
Roel Van de Paar's user avatar
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 ...
Hasse Andersen's user avatar
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 ...
rodut's user avatar
  • 197
3 votes
0 answers
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::...
Kai Mou's user avatar
  • 31
2 votes
0 answers
1k views

Selenium: How to switch to tab without focusing?

I'm using the Java Selenium and Chrome webdriver on Windows 10. I like to have a GUI up for debugging purposes, but my code keeps bringing the browser into focus. Specifically, lines like driver....
Cory Smith's user avatar
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 ...
Thiyagarajan's user avatar
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 ...
Heveen Kejiou's user avatar
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 ...
Likitha Hs's user avatar
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 ...
Johnny's user avatar
  • 11
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 ...
thomarkey's user avatar
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 ...
na2193's user avatar
  • 13
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. ...
Scott Brass's user avatar
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: ...
Annie's user avatar
  • 11
1 vote
0 answers
57 views

Could I improve my code by opening multiple tabs?

I'm trying to scrape information from an array of links using selenium. Each of them take ~2 seconds to scrape, and it adds up to quite a while. Is it possible / worth trying to open the links in ...
Spiralio's user avatar
  • 111
1 vote
0 answers
284 views

Issue with switching to the new window in Selenium + Python (chromedriver)

I'm having an issue when I try to switch the new opened window. Every time I execute a test case, my chromedriver opens with a window named "data:,". My code: def test_case(self): reg = Register(...
rodut's user avatar
  • 197
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 ...
thestiggg's user avatar
1 vote
0 answers
487 views

How can i use an existing existing chrome browser instance in selenium C#

How do I use an existing chrome browser in selenium C# ? Currently I have the following but it always creates a new window SessionId sessionId = new SessionId(""); var driver = new phantomJSDriver();...
Pankaj's user avatar
  • 29
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; ...
Nzall's user avatar
  • 475
1 vote
0 answers
648 views

how to interact the video in java selenium

I have a test case with video. Test Case scenario: There I want to check whether the link in the website and when we clicked that link played video link are same. [![Highlighted is linked to video][...
Aravin's user avatar
  • 131
1 vote
0 answers
1k views

Fixing mojom error after Chrome update

I wish there was some way to intercept new Chrome(driver) errors in SeleniumWebdriver before they hit my tests. The latest I have found is this one. Does anyone have a fix? DevTools listening on ws:/...
SlightlyKosumi's user avatar
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 ...
Ramkrishna Bhandare's user avatar
1 vote
0 answers
1k views

How to access an Input file in the shadow DOM using selenium chrome driver?

Has anyone figured out how to access an Input file in the shadow DOM using selenium chrome driver? at a certain point at the angular.js page a button is clicked and in the function triggered by the ...
Amorphis's user avatar
  • 186
1 vote
0 answers
370 views

Appium + Java + Android + Mobile browser [Chrome driver] : How to switch from android app to mobile browser?

I am automating android app. My env is - Mac, Appium, Java + TestNG Scenario: Click on button Its will redirect user on mobile browser Login in browser How to automate above scenario? The core ...
Narendra Chandratre's user avatar
1 vote
0 answers
445 views

File drag and drop works in Firefox but not in Internet Explorer

I am trying drag and drop from outside frame to inside frame. Draggable element is located outside iframe, but container which is located in iframe. I have already posted my problem here. https://...
Ela's user avatar
  • 111
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 ...
Bhaskara Reddy Dwarampudi's user avatar
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 ...
Zefnes's user avatar
  • 1
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 ...
Megha's user avatar
  • 73
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 ...
nitin235's user avatar
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 &...
Pedro Santangelo's user avatar
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 ...
Joelle Boulet's user avatar
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=&...
Haris Psarropoulos's user avatar
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. ...
Yamarai Akizuki's user avatar
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=...
Hareesha Hilmi's user avatar
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 ...
Rubesh Kunwar's user avatar
0 votes
0 answers
738 views

JNLP file can harm ur computer warning of chrome using Selenium Java. Tried 3 options but none working

My goal is to download .jnlp file which is considered as a harmful file by chrome. So, i have thought 2-3 solutions for this. I am using Chrome 76 version and i dont want to downgrade the chrome ...
Ranjit Singh Saluja's user avatar
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 ...
jay's user avatar
  • 13
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 ...
Jart's user avatar
  • 1
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 - ...
Yair's user avatar
  • 1
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 ...
Nic's user avatar
  • 101
-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</...
Robi's user avatar
  • 1
-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 ...
Dhamotharan's user avatar
-1 votes
2 answers
1k views

Website login Issue in Selenium ChromeDriver

I am login to a website using Selenium and ChromeDriver. But website login details are shown as incorrect every time. But I have manually logged into the site using Chrome browser easily. How do I ...
Pankaj's user avatar
  • 29