Questions tagged [selenium-webdriver]
Selenium WebDriver provides the WebDriver API for controlling browsers in different programming languages ("language bindings"). When using this tag, also add a tag for the programming language you are using.
selenium-webdriver
11,472
questions
63
votes
1
answer
60k
views
Official locator strategies for the webdriver
In the official W3C webdriver documentation, it's clearly stated that the location strategies are:
State Keyword
-----------------------------------------------
CSS selector ...
136
votes
8
answers
244k
views
Selenium - wait until element is present, visible and interactable
I have a Selenium script (Python) that clicks a reply button to make the class anonemail appear. The time it takes for the class anonemail to appear varies. Because of that I have to use sleep until ...
21
votes
6
answers
36k
views
What Is Selenium And What Is WebDriver?
What is Selenium?
When you open the official page of the Selenium, the first thing you read is "Selenium automates browser" in "What is Selenium?" section.
The section "Which part of Selenium is ...
3
votes
2
answers
5k
views
Of the many findElement(s)/By functions in Selenium, when would you use one over the other?
Selenium includes findElement functions, like so...
.find_element_by_
id
link_text
partial_link_text
name
class_name
tag_name
css_selector
xpath
It's apparent that some are limited by design due ...
20
votes
1
answer
20k
views
WebDriverWait not working as expected
I am working with selenium to scrape some data.
There is button on the page that I am clicking say "custom_cols". This button opens up a window for me where I can select my columns.
This new window ...
8
votes
3
answers
7k
views
How to click on a element through Selenium Python
I'm trying to fetch data for facebook account using selenium browser python but can't able to find the which element I can look out for clicking on an export button.
See attached screenshot
I tried ...
18
votes
2
answers
24k
views
Ways to deal with #document under iframe
For the portal I am testing now, I came with the problem that I could not create any xpath locators, after some time I figured out that it was because of an '#document', this cuts the path and makes ...
20
votes
1
answer
16k
views
Selenium "selenium.common.exceptions.NoSuchElementException" when using Chrome
I'm trying to play QWOP using Selenium on Chrome but I keep getting the following error:
selenium.common.exceptions.NoSuchElementException:
Message: no such element: Unable to locate element
{"...
5
votes
1
answer
11k
views
Selenium: How selenium identifies elements visible or not? Is is possible that it is loaded in DOM but not rendered on UI?
Selenium: How selenium identifies elements visible or not? Is is possible that it is loaded in DOM but not rendered on UI?
I would like to verify a scenario where element is clickable, I know web ...
2
votes
0
answers
31k
views
What is the difference between ChromeDriver and WebDriver in selenium? [duplicate]
If we create :
ChromeDriver driver=new ChromeDriver();
chrome driver methods will be executed.
And if we create :
WebDriver driver=new ChromeDriver();
again ChromeDriver methods are executed [as ...
5
votes
1
answer
17k
views
Python + Selenium: Wait until element is fully loaded
So I have been trying to play around with the function in Selenium that is called:
wait = WebDriverWait(browser, 20).wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="accountStandalone"]/div/...
9
votes
2
answers
26k
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 ...
635
votes
26
answers
485k
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 ...
18
votes
4
answers
54k
views
How to sleep Selenium WebDriver in Python for milliseconds
I am using the time library in my script:
import time
time.sleep(1)
It can sleep my Selenium WebDriver for one second, but how is it possible for 250 milliseconds?
105
votes
9
answers
222k
views
Selenium Web Driver & Java. Element is not clickable at point (x, y). Other element would receive the click
I used explicit waits and I have the warning:
org.openqa.selenium.WebDriverException:
Element is not clickable at point (36, 72). Other element would receive
the click: ...
Command duration ...