Questions tagged [chrome-web-driver]

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 a standalone server which implements WebDriver's wire protocol for Chromium. It is being developed by members of the Chromium and WebDriver teams.

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 a standalone server which implements WebDriver's wire protocol for Chromium. It is being developed by members of the Chromium and WebDriver teams.

213 questions
1
vote
1 answer

how do i start Chromedriver not with the default profile?

I'm trying to load Chrome with Chromedriver and a non default profile. I'm using this python code: opt = webdriver.ChromeOptions() chromedriver = r"C:/chromedriver/chromedriver.exe" os.environ["webdriver.chrome.driver"] =…
1
vote
2 answers

How to set default download location property for chrome using selenium wedriver in java?

I want to set automatic download in specified download location using webdriver. I tried following code which is not working for chrome: ChromeOptions options = new ChromeOptions(); options.addArguments("download.default_directory",…
0
votes
1 answer

How do I get matching version of chrome web driver for selenium automation testing?

I am doing selenium with java test automation coding. My chrome version is 116.0.5845.110. I couldn't find a web driver for this version of chrome . So I took Version: 116.0.5845.96 while running the. WEBDRIVER I am getting the error “chromedriver”…
Rajeesha R
  • 15
  • 2
0
votes
2 answers

add_argument not working to enable dark mode in Google Chrome with Selenium WebDriver

I'm trying to launch Google Chrome with dark mode enabled using Selenium WebDriver in Python, but I'm having trouble getting the add_argument method to work. Here's the code I'm using: from selenium.webdriver.chrome.options import Options from…
0
votes
1 answer

Killing unnecessary chrome processes created by Chromium and Selenium WebDriver

I am trying to run a Selenium WebDriver script that takes quite a long time to complete. The thing is that while executing the said script on my server, after about an hour and a half, actions that before took 10 seconds to complete now take about 2…
user21848941
0
votes
2 answers

Selenium Webdriver 4 with Python - Stale Element Reference Exception (stale element reference: stale element not found)

I am working on a Game Playing Bot for Cookie Clicker game. The bot clicks the cookie and buys the items automatically. You would understand what the bot does once you try the game yourself.…
0
votes
0 answers

Chrome webdrive bind() failed: Cannot assign requested address (99)

I have created a Dockerfile on my VM machine and used it to start a Jenkins instance as a Docker container. I also installed the Maven integration plugin in Jenkins. However, when I try to build my project, Chrome starts but it fails to bind,…
0
votes
0 answers

How to solve "npm ERR! Test failed. See above for more details."?

I am using javascript to write selenium test scripts. It was working in another system. So here is the error that is persistent on running the "npm test" command. ✖ ERROR: Error: Not supported at Object.exports.doImport…
0
votes
2 answers

Download entire webpage as HTML (including the HTML assets) without save as pop up using Selenium and Python

I am trying to scrape a website and download all the webpages as .html files (including all the HTML assets) so that the locally downloaded page opens just like the same in the server. Currently using Selenium, Chrome Webdriver, and…
0
votes
1 answer

Getting 'unknown error: net::ERR_CONNECTION_CLOSED' Error running webdriver in Docker Linux

I am trying to web scrape my companies website. To speed up, I have used Asynchronous Web Scraping library Arsenic. When I run this Code I see mutliple drivers are spawned at different local ports. Starting ChromeDriver 109.0.5414.74…
0
votes
0 answers

bad operand type for unary -: 'WebElement'

I've got the following code that I'm running on spyder to extract comments by using chrome webdriver. I am getting this error message: bad operand type for unary -: 'WebElement' Could you please help me to fix this problem? Thanks in…
0
votes
0 answers

Python scrapy_selenium SeleniumMiddleware returns Timeout error from renderer

I'm using scrapy to run tests using Selenium Webdriver. Most of the time script works fine, but sometimes it returns a Timeout error when initializing SeleniumMiddleware. Below is my custom download middleware which inherits from…
0
votes
1 answer

Why doesn’t Selenium find an element with this XPath expression?

I’m trying to find an element with this XPath expression: /html/body/div/div[1]/div/div/div[2]/div/div/div/div[2]/form/div[1]/div[3]/div/input But Selenium can’t find one. The page I’m trying to access - https://account.aax.com/en-US/login/ I…
muhyrla
  • 15
  • 1
0
votes
0 answers

Selenium + Pi4 + Chromedriver

When running my code on Windows, it works normally. But I can't run on Ubuntu Server (Pi4), an error occurs when opening chromedriver. Tried everything I knew, does anyone know a way? Code:…
0
votes
0 answers

The page does not loads up when i'm using proxy in selenium

I'm using a proxy to load up a page using selenium. The code works fine if I don't use the proxy but when I apply proxy the page doesn't load at all. This is my code: from selenium import webdriver from selenium.webdriver.chrome.service import…