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
47 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 ...
user3559982's user avatar
1 vote
1 answer
138 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
0 votes
1 answer
373 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
-1 votes
3 answers
947 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
0 votes
0 answers
79 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
882 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
2 answers
223 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 ...
keshav goyal's user avatar
0 votes
5 answers
6k 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) (...
IAmMilinPatel's user avatar
1 vote
1 answer
44 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....
barzilai zio's user avatar
-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
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
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 ...
Tosin Adeleye'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
946 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 ...
Narendra Chandratre's user avatar
0 votes
1 answer
399 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(&...
Mr.Layton's user avatar
0 votes
1 answer
333 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
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
0 votes
2 answers
3k views

How to load chrome profile with Selenium correctly?

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
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 ...
Haris Psarropoulos's user avatar
1 vote
0 answers
677 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
740 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
3 votes
0 answers
447 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
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
0 votes
0 answers
653 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
2 votes
1 answer
1k 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/...
CuriousGuy's user avatar
0 votes
1 answer
2k views

C# + chrome-driver : How to fix - cannot find Chrome binary/Chrome failed to start: crashed/Failed to create a Chrome process?

I am trying to run selenium using chrome-driver in my project. While creating object of chrome-driver facing errors : Message "unknown error: cannot find Chrome binary\n (Driver info: ...
Narendra Chandratre'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
1 answer
971 views

Is there a way to make Selenium use cookies to autologin?

I don't want to have to make the script log in every time. Is there to stop the web driver opening a "fresh" browser and instead make it open my standard version/load cookies so it auto-logs ...
Ferg's user avatar
  • 11
1 vote
2 answers
466 views

Cannot select html td link button by XPath with Webdriver

Here is my element <td> <div class="linkButton" onclick="window.open('../../Report/Reports/ViewReport.aspx?reportName=Revenue.Report','Report1','scrollbars=1,resizable=yes,...
cmotto's user avatar
  • 11
0 votes
1 answer
6k views

How to install chrome-webdriver on GitLab CI/CD

I am trying to do some tests using GitLab CI/CD and Robot Framework, I have this simple .robot file: *** Settings *** # Declare Libraries Library SeleniumLibrary # Declare Suite Setup and Teardown ...
Raymond_90's user avatar
-2 votes
1 answer
857 views

Selenium Getting Hover Textbox Text

I am working in eclipse writing selenium scripts using Java. I am using the chrome web driver. I have a hyper text link that when I put my mouse over it hover text box appears. I need to return that ...
4m4d3u5's user avatar
1 vote
2 answers
907 views

How to download files in folder other then the download folder using Protractor?

Using the following configuration, files are always saved in the download folder instead of the folder set for default_directory. 'capabilities': { 'browserName': 'chrome', 'chromeOptions': { ...
user47928's user avatar
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 ...
M S's user avatar
  • 21
3 votes
3 answers
666 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 ...
Brian.tester687's user avatar
2 votes
1 answer
290 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 ...
Sathira Padukka's user avatar
1 vote
2 answers
2k views

What is the optimal solution when there is incompatibility between Chromedriver & Google Chrome?

Error: System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 85 (SessionNotCreated) I am using Google Chrome Version 87.0.4280.66 (Official ...
OA345's user avatar
  • 545
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(...
thomarkey's user avatar
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 ...
Shahrear Bin Amin's user avatar
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
0 votes
0 answers
337 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
1 vote
4 answers
2k views

How to initialise the PageObject Class using PageFactory only ONCE in a Step Definition Class in a Selenium Webdriver + Cucumber project?

I am making a Regression suite Automation project using Selenium Webdriver, Java, Cucumber, Maven etc. Now, the problem is that I have multiple Page Object classes that I initialise again and again ...
Nick2358's user avatar
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 ...
Nagaraj Vuyyuru's user avatar
0 votes
1 answer
305 views

java.lang.NullPointerException in Page object Model

I have created this program using TestNG and i'm getting this error java.lan*g.NullPointerException I have initialized the Webelement .But still i'm getting error POM.java package TestPOM; import java....
Patricia's user avatar
-1 votes
1 answer
6k views

How to configure path for file download in python-selenium

I have changed the path of file download from using below code. chromeOptions=Options() chromeOptions.add_experimental_option("prefs", {"download.default_directory": r"C:\...
Amaze_Rock's user avatar
0 votes
1 answer
2k views

I want to enter text in search text box and click search icon or enter [duplicate]

I am facing the issue . Kindly assist. The HTML Code snippet is attached I am getting the error as Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: ...
RinJai's user avatar
  • 1
0 votes
1 answer
1k views

Selenium/Linux throws exception "An unknown exception was encountered sending an HTTP request to the remote WebDriver server for URL "

I am trying to port some Selenium-Tests that I developed under windows (my main platform) to Linux (Ubuntu 19.10 in a VM). I must admit, I'm not too familiar with the environment, so I might be ...
MBaas's user avatar
  • 197
3 votes
1 answer
3k 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 ...
Jaden's user avatar
  • 31
3 votes
1 answer
1k 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 ...
MBaas's user avatar
  • 197
-1 votes
1 answer
556 views

What does it mean to instantiate Webdriver in Selenium? [closed]

WebDriver driver = new ChromeDriver(); Now, when we "instantiate" Webdriver and create a reference variable and then assign the object returned to it, then does it mean that we have a new Chrome ...
jerry67's user avatar
  • 17