1,731 questions
9
votes
2
answers
30k
views
How does chrome driver interact with Chrome browser?
It says
ChromeDriver is a standalone server that implements the W3C WebDriver standard
It looks like W3C WebDriver standard only defines the interface between the automation program and ...
645
votes
26
answers
515k
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 ...
390
votes
56
answers
712k
views
WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser
I am trying to launch chrome with an URL, the browser launches and it does nothing after that.
I am seeing the below error after 1 minute:
Unable to open browser with url: 'https://www.google.com' (...
18
votes
4
answers
106k
views
NoSuchElementException, Selenium unable to locate element
i would like to find my TextField in selenium, but i dont know how (i use sellenium for the first time).
I tried:
driver.findElement(By.id("originTextField"))
or by xPath and cssSelector String ...
7
votes
1
answer
17k
views
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH error with Headless Chrome
when i run my script , i got this error
Traceback (most recent call last):
File "C:\Users\ishaq\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line ...
128
votes
26
answers
365k
views
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 selenium import webdriver
d = webdriver....
383
votes
37
answers
939k
views
Error message: "'chromedriver' executable needs to be available in the path"
I am using selenium with python and have downloaded the chromedriver for my windows computer from this site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/
After downloading the zip ...
25
votes
7
answers
157k
views
Unable to use Selenium Webdriver. Getting two exceptions
I am getting the following error when trying to create an object with Selenium Webdriver.
"\selenium\webdriver\common\driver_finder.py", line 42, in get_path
path = SeleniumManager()....
10
votes
2
answers
42k
views
How to open a Chrome Profile through Python
My script I have been writing has been working great. I just added the option so it would open a profile on chrome using this code.
options = webdriver.ChromeOptions
browser = webdriver.Chrome(...
32
votes
13
answers
175k
views
How to use Chrome Profile in Selenium Webdriver Python 3 [duplicate]
So whenever I try to use my Chrome settings (the settings I use in the default browser) by adding
options = webdriver.ChromeOptions()
options.add_argument("user-data-dir=C:\Users\... (my ...
32
votes
5
answers
129k
views
How to open a Chrome Profile through --user-data-dir argument of Selenium
I am attempting to load a chrome browser with selenium using my existing account and settings from my profile.
I can get this working using ChromeOptions to set the userdatadir and profile ...
7
votes
3
answers
25k
views
Using implicit wait in selenium
I am a beginner. I understand what waits basically does but I am confused over how different tutorials over the internet place it and explain it. For example, in the below code it is placed before ...
120
votes
11
answers
141k
views
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 through. I'v posted on GitHub Repo as ...
13
votes
1
answer
23k
views
WebDriverException: Message: 'chromedriver' executable needs to be in PATH while setting UserAgent through Selenium Chromedriver python
I'm a newbie in webscraping, I'm trying to modify my user agent using these lines :
from selenium import webdriver
chrome_path = r'C:\Users\Desktop\chromedriver_win32\chromedriver.exe'
driver = ...
27
votes
3
answers
49k
views
How to make Selenium not wait till full page load, which has a slow script?
Selenium driver.get (url) wait till full page load. But a scraping page try to load some dead JS script. So my Python script wait for it and doesn't works few minutes. This problem can be on every ...