Linked Questions
228 questions linked to/from What is the difference between ChromeDriver and WebDriver in selenium?
17 votes
5 answers
24k views
What's the difference between WebDriver and ChromeDriver?
In Selenium 2 - Java, what's the difference between ChromeDriver driver = new ChromeDriver(); and WebDriver driver = new ChromeDriver(); ? I've seen both of these used in various tutorials, ...
645 votes
26 answers
513k views
Can a website detect when you are using Selenium with chromedriver?
I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium even though there's no automation at all. Even when I'm just browsing manually just ...
145 votes
20 answers
369k views
How to avoid "StaleElementReferenceException" in Selenium?
I am implementing a lot of Selenium tests using Java - sometimes, my tests fail due to a StaleElementReferenceException. Could you suggest some approaches to making the tests more stable?
85 votes
15 answers
296k views
Difference between webdriver.get() and webdriver.navigate()
What is the difference between get() and navigate() methods? Does any of this or maybe another method waits for page content to load? What do I really need is something like Selenium 1.0's ...
28 votes
14 answers
227k views
How to open a link in new tab (chrome) using Selenium WebDriver?
System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit....
43 votes
9 answers
61k views
"Failed to decode response from marionette" message in Python/Firefox headless scraping script
Good Day, I've done a number of searches on here and google and yet to find a solution that address this problem. The scenario is: I have a Python script (2.7) that loops through an number of URLs (...
28 votes
5 answers
49k views
How can I make a Selenium script undetectable using GeckoDriver and Firefox through Python?
Is there a way to make your Selenium script undetectable in Python using geckodriver? I'm using Selenium for scraping. Are there any protections we need to use so websites can't detect Selenium?
15 votes
7 answers
81k views
How to get request headers in Selenium
https://www.sahibinden.com/en If you open it incognito window and check headers in Fiddler then these are the two main headers you get: When I click the last one and check request headers this is what ...
26 votes
9 answers
43k views
How can I reconnect to the browser opened by webdriver with selenium?
For some unknown reasons, my browser open test pages of my remote server very slowly. So I am thinking if I can reconnect to the browser after quitting the script but don't execute webdriver.quit() ...
12 votes
6 answers
37k views
How to use Brave web browser with python, selenium and chromedriver?
I switched from Google's Chrome to Brave web browser and am having a hard time getting it to work with Brave like it did with Chrome. Brave is based on chromium so I guessed it should not be that hard....
28 votes
8 answers
76k views
InvalidArgumentException: Message: invalid argument: user data directory is already in use error using --user-data-dir to start Chrome using Selenium
When I am trying to use --user-data-dir for the current user to start Chrome using Selenium I am getting an error as: File "C:\Program Files (x86)\Python\lib\site-packages\selenium\webdriver\remote\...
21 votes
4 answers
74k views
How to solve 'Getting Default Adapter failed' error when launching Chrome and try to access a webpage using the ChromeDriver using Selenium
I have updated Selenium but the error keeps occurring even though the web page loads. However, in some instances, the driver starts but it is stagnant. Is this causing an issue and if so, how do I ...
17 votes
5 answers
53k views
DeprecationWarning: use options instead of chrome_options error using ChromeDriver and Chrome through Selenium on Windows 10 system
Trying to run this code on my windows 10 machine https://github.com/KalleHallden/reddit_automations/blame/master/movie-tickets.py from selenium import webdriver from selenium.webdriver.common.keys ...
12 votes
7 answers
35k views
selenium.JavascriptException: javascript error: Failed to execute 'elementFromPoint' on 'Document': The provided double value is non-finite
using chrome 78 and chromedriver78 When i click an audio file or try to stop an audio using selenium tests i am getting this error. Error: org.openqa.selenium.JavascriptException: javascript error: ...
9 votes
5 answers
20k views
Selenium using too much RAM with Firefox
I am using selenium with Firefox to automate some tasks on Instagram. It basically goes back and forth between user profiles and notifications page and does tasks based on what it finds. It has one ...