Category "selenium-chromedriver"

How to headless mode with --user-data-dir=chrome-data chrome option

I am using python selenium for implementing tests. I need to keep login process so I don't log in every time. I use add_argument("--user-data-dir=chrome-data")

ChromeOptions not getting applied

I am trying to open the chrome browser with devtools open in maximized window. Following code does not work, driver opens the URL in a smaller window without de

Stop webpage from auto-reload with selenium/chromedriver

Im using python with the selenium package and the chromedriver to scrape a webpage. The page is automatically reloading itself (probably via java-script) every

getting error as TypeError: __init__() got an unexpected keyword argument 'cache_valid_range' . It is not present in ChromeDriverManager Python

I am trying cache_valid_range for my ChromeDriverManager constructor, below is a code snippet enter image description here But I have checked the latest ChromeD

Selenium ChromeDriver 101.0.4951.41 cannot start DevTools

Hi. I tried upgrade my chromedriver to 101.0.4951.41 today and it sudden keep prompt this error to me. Anything I missed or what I should add for new version?

chromedriver does not have .exe after extracting

I have downloaded te latest chromedriver 2.46 and extracted the chrome driver but it has no .exe extension and when i run the code the error appears, i also tri

Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed

Recently I switched computers and since then I can't launch chrome with selenium. I've also tried Firefox but the browser instance just doesn't launch. from s

Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token

options = webdriver.ChromeOptions() options.add_argument("user-data-dir=C:\\Users\\jack_l\\AppData\\Local\\Google\\Chrome\\User Data") options.add_argument(r'-

Selenium on VBA can't find Xpath

I'm trying to find the Xpath for this HTMLcode: (Copied XPATH) /html/body/hub-menu//section-header//hubmenu-wrapper/div/search-customers//input [Picture af the

Python: Selenium Chrome Driver opens blank page

When running this simple code a blank page opens with 'data:,' written in the url. Chrome driver is the correct version (ChromeDriver 81.0.4044.69) and matches

How to detect if Chrome browser is headless in selenium?

I'm writing a selenium test which has different behavior given whether the chrome browser was started as headless or not. My question is in my test how do I det

Network connection throtling with Selenium - Java

I have been trying to implement network throttling with Selenium-WebDriver based on the snippet available here in this post. https://stackoverflow.com/a/5652609

Selenium Google Login Block

I have a problem with Google login. I want to login to my account but Google says that automation drivers are not allowed to log in. I am looking for a solution

How do I start doing Automation with Salesforce?

I'm currently writing some automation with Salesforce, Python and Selenium. My problem is that some of the Dynamic Elements are not reachable. However, I would

Implicit wait is executing after an explicit wait

I'm having a problem with my automated script using selenium+python unittest. In my setUp() I have this line: def setUp(self): self.driver.implicitly_wait(10)

Python Selenium - Can't Click on Button

All I am trying to do is select the drop down & then select "Export Excel Spread Sheet". Example of Drop Down Code: from selenium import webdriver from sele

How to detect a button.click() failure in Selenium?

I have a Selenium 3 Python script that is used to file FTC complaints for nuisance calls. Today a miscreant got through using the number "0" (literal 0). The FT

I am getting io.cucumber.java.InvalidMethodSignatureException in Cucumber Java

My Feature file - Feature: Open google page @Sanity Scenario: Open google search Given User open google search Then enter text "hi" in search bar

selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist with chromium browser and Selenium Python

I want to run selenium through chromium. I wrote this code: from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Optio

unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium

I'm using InstaPy which use Python and Selenium. I start the script per Cron and from time to time it crashes. So it'r really irregular, sometimes it runs well