Skip to main content

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
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 ...
Merc's user avatar
  • 16.9k
136 votes
8 answers
243k 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 ...
Benjamin Arvola's user avatar
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 ...
learningQA's user avatar
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 ...
Matt I's user avatar
  • 185
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 ...
Rao Sahab's user avatar
  • 1,271
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 ...
DKM's user avatar
  • 1,801
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 ...
Alexandre's user avatar
  • 462
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 {"...
valorcurse's user avatar
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 ...
Sunil's user avatar
  • 61
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 ...
lucky's user avatar
  • 69
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/...
CDNthe2nd's user avatar
  • 369
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 ...
Jcyrss's user avatar
  • 1,688
635 votes
26 answers
484k 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 ...
Ryan Weinstein's user avatar
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?
AliRehman7141's user avatar
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 ...
Maria's user avatar
  • 1,065

15 30 50 per page
1
2 3 4 5
765