All Questions
Tagged with selenium or selenium-webdriver
157,746 questions
681 votes
19 answers
767k views
Get HTML source of WebElement in Selenium WebDriver using Python
I'm using the Python bindings to run Selenium WebDriver: from selenium import webdriver wd = webdriver.Firefox() I know I can grab a webelement like so: elem = wd.find_element_by_css_selector('#my-id'...
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 ...
643 votes
37 answers
1.0m views
Selenium using Python - Geckodriver executable needs to be in PATH
I am going over Sweigart's Automate the Boring Stuff with Python text. I'm using IDLE and already installed the Selenium module and the Firefox browser. Whenever I tried to run the webdriver function, ...
555 votes
53 answers
707k views
How to take a screenshot with Selenium WebDriver?
Is it possible to take a screenshot using Selenium WebDriver? (Note: Not Selenium Remote Control)
486 votes
54 answers
717k views
Debugging "Element is not clickable at point" error
I see this only in Chrome. The full error message reads: "org.openqa.selenium.WebDriverException: Element is not clickable at point (411, 675). Other element would receive the click: ..." The ...
466 votes
13 answers
727k views
Is there a way to get element by XPath using JavaScript in Selenium WebDriver?
I am looking for something like: getElementByXpath(//html[1]/body[1]/div[1]).innerHTML I need to get the innerHTML of elements using JS (to use that in Selenium WebDriver/Java, since WebDriver can't ...
402 votes
13 answers
972k views
How do I find an element that contains specific text in Selenium WebDriver (Python)?
I'm trying to test a complicated JavaScript interface with Selenium (using the Python interface, and across multiple browsers). I have a number of buttons of the form: <div>My Button</div> ...
390 votes
56 answers
710k 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' (...
383 votes
37 answers
938k 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 ...
378 votes
3 answers
84k views
Headless Browser and scraping - solutions [closed]
I'm trying to put list of possible solutions for browser automatic tests suits and headless browser platforms capable of scraping. BROWSER TESTING / SCRAPING: Selenium - polyglot flagship in browser ...
361 votes
12 answers
379k views
Difference between webdriver.Dispose(), .Close() and .Quit()
What is the difference between these Webdriver.Close() Webdriver.Quit() Webdriver.Dispose() Which one to be used and when?
353 votes
16 answers
845k views
Wait until page is loaded with Selenium WebDriver for Python
I want to scrape all the data of a page implemented by a infinite scroll. The following python code works. for i in range(100): driver.execute_script("window.scrollTo(0, document.body....