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
1
vote
1answer
66 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
0answers
26 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....
0
votes
0answers
25 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
4answers
161 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 ...
0
votes
1answer
224 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 ...
0
votes
0answers
55 views

[[TestNGClassFinder]] Unable to read methods on class

[[TestNGClassFinder]] Unable to read methods on class package.CreateCustomer - unable to resolve class reference org/openqa/selenium/WebDriver I have created a testNG program and run the program using ...
0
votes
1answer
44 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....
-1
votes
1answer
234 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:\...
0
votes
1answer
43 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: ...
-1
votes
1answer
74 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 ...
1
vote
1answer
63 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 ...
3
votes
1answer
84 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 ...
-1
votes
1answer
28 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 ...
2
votes
1answer
100 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 ...
-1
votes
1answer
111 views

Test script failing due to “INTERNAL_SERVER_ERROR” , when I try to automate application. It run fine when test the same flow manually

I am using Java. I am trying to automate a scenario, where am trying to search all details of an ID, it works fine when I test the scenario manually. It fails when I automate the scenario. Note: I ...
0
votes
1answer
33 views

java.lang.NullPointerException on my POM project. I have my Page factories initialized and cant figure out the issue [duplicate]

I am getting the following error message in my IntelliJ The "TestBase.java:33" and "LoginPageTest.java25" essentially both point to the if(browserName.equals("chrome")) line of code in the base ...
0
votes
1answer
266 views

Jmeter test plan is not running using chrome headless mode in jmeter

Further to the previous question Unable to execute the test plan using chrome driver headless mode in jmeter using selenium, I have added the explicit wait of 150 seconds and run the test plan with ...
1
vote
1answer
453 views

How to set Chrome driver for selenium/Webdriver in Jmeter non-gui using Command prompt?

I am executing the load test plan using the non-GUI mode of Jmeter and I want to set the chrome driver using non-GUI mode. I have used the below command for executing the test plan and storing the ...
0
votes
1answer
408 views

Problem with finding element with Selenium and Xpath

I have a problem that is very strange for me because the code that I wrote, I am quite sure should work! Config Details Chrome version: 80.0.3987.132 ChromeDrivers version: same as ...
1
vote
2answers
627 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 chrome ...
1
vote
3answers
2k views

Timed out message receiving from renderer: 0.100 log messages using ChromeDriver and Chrome v80 through Selenium Java

I recently updated my chrome from v74 to v80. Now I am facing timeout messaging rending when I run my script which was running successfully on v74. My code : public static void main(String[] args) ...
3
votes
3answers
105 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) ...
1
vote
0answers
36 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 ...
1
vote
1answer
246 views

How to disable selenium from taking physical mouse on Chrome on user's machine on a different monitor screen?

My issue is related to this question Disable physical mouse and keyboard in selenium but I didn't see an answer for this question. tests are being ran by Java + Selenium + Chrome on the same user's ...
1
vote
1answer
411 views

When i send string with send_keys() its taking substring in chrome driver (selenium python)

Hi all i'am facing problem with selenium (i'am using python) for chrome driver, when i send some string with .sendkeys( ) some time its taking first two characters and some time its taking first ...
0
votes
2answers
92 views

“chrome.window.onRemoved.addListener()” does not executes when webdriver.quit() is executed in Selenium with Python

I want to perform logic on chrome.window.onRemoved.addListener(), it works exactly in chrome browser development environment and in selenium when performed with browser UI of selenium test, but when I ...
0
votes
2answers
71 views

How to add an argument to my BaseTest ChromeDriver Instance?

I have a selenium framework with a BaseTest class. In the BaseTest class we instantiate a ChromeDriver instance which contains various arguments. These are part of the @BeforeMethod (using TestNG). My ...
1
vote
1answer
38 views

How to jump between two different elements located same level?

In the google chrome inspector console enter the xpath: $x("/html/body/div/div/footer/md-toolbar/div/div[2]/img[2]/../../../../../../..//*[@id='input_15']") the console returns the element, ...
2
votes
1answer
34 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 ...
0
votes
3answers
111 views

Selenium un-enable to find element

I have been through every selenium related page on here but not much else I can really try. I am trying to click on the text link but It gives me 'org.openqa.selenium.WebDriverException: chrome not ...
9
votes
4answers
6k 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....
0
votes
0answers
49 views

How do I click buttons on App which is installed on machine but not a Windows application. It opens a chrome instance (not default Chrome browser)

How do I navigate and click buttons on an already open Chrome instance/window. So the scenario is, that an application named "ApplicationNAME" is installed on my Windows machine, but its not a Windows ...
1
vote
1answer
957 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
3answers
2k views

Programmatically determine chrome browser version regardless of OS

My problem is chromedriver 78 (currently the latest) doesn't work with Chrome 77. Ubuntu still has 77 in the apt-get repo for google-chrome-stable. My regression script automatically pulls down the ...
1
vote
1answer
3k 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
3answers
2k 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 ...
0
votes
0answers
216 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 ...
1
vote
0answers
55 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(...
1
vote
1answer
302 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 ...
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: ...
2
votes
3answers
232 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 ...
1
vote
2answers
715 views

Disable physical mouse and keyboard in selenium

I am trying to run an automated test that requires me to move the mouse around the page. The problem is that whenever the person running the test moves the physical mouse while the test is running, ...
1
vote
0answers
185 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();...
0
votes
0answers
46 views

Open a clickable link on a web page and take the screenshot at the same time

I'm new to chrome headless and I have a problem. I want to randomly select two links from a web page on the page being viewed and open them at the same time. Indeed my goal is to be able to have the ...
-1
votes
2answers
386 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 ...
0
votes
1answer
495 views

“failed to write automation extension zip” Error comes when I run my code after creating a Jar, It works in Eclipse IDE. But doesn't work as a Jar

Chrome version : 75.0.3770.100 C:\Users\ramkrishna.bhandare\Documents\StressTestExamination\OES Project>Title SeleniumExam. C:\Users\ramkrishna.bhandare\Documents\StressTestExamination\OES ...
1
vote
1answer
3k 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
1answer
60 views

Is there an argument for chromedriver to accept notifications?

I am using Nightwatch to run my chromedriver, and I need to accept notifications through the browser. I have found this list of chromedriver arguments, but I haven't been able to find any that ...
1
vote
2answers
780 views

Chrome Driver - testNG parallel issue

I am trying to run selenium test classes parallel using testNG like this thread-count="3" parallel="classes" . But the issue is at closing the chrome driver and everything else works fine. while ...
0
votes
1answer
738 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 ...