Questions tagged [expected-condition]
144 questions
115
votes
6 answers
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 the element has appeared.
I want to wait until the…

Benjamin Arvola
- 1,265
- 2
- 6
- 6
87
votes
7 answers
Can not click on a Element: ElementClickInterceptedException in Splinter / Selenium
I'm trying to scrape a page, but I sometimes have trouble clicking a link/button.
When the web page loads, then the "loadingWhiteBox" will appear first and then disappear after a few seconds (but it will remain in the HTML code) as long as the box…

yellow days
- 1,053
- 2
- 9
- 11
19
votes
4 answers
How do you use EC.presence_of_element_located((By.ID, "myDynamicElement")) except to specify class not ID
I am trying to use Python to web scrape a website that loads it's HTML dynamically by using embedded javascript files that render the data as a Response into the HTML. Therefore, if I use BeautifulSoup alone, I will not be able to retrieve that data…

Rishi Vadaga
- 193
- 1
- 1
- 6
16
votes
1 answer
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 sometimes takes some time to open (around 5…

Rao Sahab
- 1,161
- 1
- 10
- 12
15
votes
3 answers
VisibilityOfElementLocated Vs presenceOfElementLocated
Consider this:
val element = ...
String str = element.getAttribute("innerHTML")
So in case i only wants to get this value is it enough to use presenceOfElementLocated() instead of visibilityOfElementLocated() ?

david hol
- 1,272
- 7
- 22
- 44
11
votes
1 answer
Selenium - Difference between text_to_be_present_in_element and text_to_be_present_in_element_value
Can you illustrate the difference between text_to_be_present_in_element and
text_to_be_present_in_element_value with an example, preferably in python ?
The following link seems to explain how text_to_be_present_in_element works but it's still…

Dhiwakar Ravikumar
- 1,983
- 2
- 21
- 36
6
votes
1 answer
selenium.common.exceptions.TimeoutException error using WebDriverWait with expected_conditions through Selenium and Python
Traceback (most recent call last):
File "Inventorytest.py", line 88, in
j.go_to_application()
File "Inventorytest.py", line 65, in go_to_application
EC.element_to_be_clickable((By.ID, 'FavoriteApp_ITEM'))
File…

VISHAL LIMGIRE
- 529
- 1
- 5
- 21
5
votes
3 answers
What is the Difference Between Wait until Visible and Wait until Located in Selenium
I am using both wait(until.elementLocated(element, timeout)) and wait(until.elementVisible(element, timeout)). The 'wait until visible' one is failing in places where 'wait until located' does not. Why?

Victoria Cole
- 51
- 1
- 3
4
votes
3 answers
Element is not clickable at point because another element obscures it
I am using Selenium webdriver and i got the following exception
org.openqa.selenium.ElementClickInterceptedException: Element
4
votes
1 answer
Difference between EC.element_to_be_clickable and EC.presence_of_element_located to click() an element
I'm getting TimeoutExceptions while clicking an element intermittently. I have tried with explicit waits and time.sleep(). It works for a while and again i get exceptions.
I want to understand if it is caused by expected condition.…

Jasmitha Meka
- 1,387
- 3
- 10
- 11
4
votes
2 answers
Selenium, Presence of one of many elements located?
Building off of the answer to How to wait until the page is loaded with Selenium for Python? I am attempting to create a method that allows multiple elements to be polled for presence using Expected Conditions.
I receive an error 'bool' object is…

Liquidgenius
- 639
- 5
- 17
- 32
4
votes
1 answer
Find Elements by their Attribute in Python Selenium WebDriver
I have to deal with a table like this :
Axe | Wood | Red |
Hammer | Iron | …