Questions tagged [expected-condition]
144 questions
2
votes
1 answer
Visibility of spinner is getting status true but after spinner dismiss invisibility of spinner is not working as expected
I am automating a web application with selenium c#.
After login I have to handle a spinner which appears in the home page.
I have given explicit wait
wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(LocatorSelect(locator,…

BABURAJ VD
- 69
- 2
- 11
2
votes
1 answer
OpenQA.Selenium.NoSuchElementException when I try to click the button in expandable area
I'm trying to write tests for https://www.booking.com/ just for my own experience. So, I faced a problem: I keep getting NoSuchElementException when trying to change number of guests in their form.
Message: OpenQA.Selenium.NoSuchElementException :…

KyuuzoT
- 23
- 4
2
votes
3 answers
java.lang.NullPointerException in ExpectedConditions using Selenium through WebDriverManager
Following line gives error:
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//input[@id='username']")));
Code is as below:
WebDriverManager.chromedriver().setup();
ChromeOptions options = new…

Neha
- 21
- 5
2
votes
0 answers
Expected Condition interface error in WebDriver sampler in JMeter
I want to use Expected Condition interface and implement apply method as follows in WebDriver sampler. This script for loading multiple charts on single page but it give me error
javax.script.ScriptException: In file: inline evaluation of:
import…

Ankit1492
- 31
- 4
1
vote
2 answers
How to click on a button element using a Python bot
I want to click the send e-mail button in the code below, but I cannot access any fields such as selector, xpath ... and click the button. When you run the code, you will see that it already opens and closes the page. How can I provide a process…

B.12
- 21
- 5
1
vote
1 answer
How to click on a button continuously until another element appears using Selenium Python?
I have a website which has a button "show more", which one can click as often as one likes. At some point, there will be a with same name and as soon as I see that one, I want to stop clicking the button.
Unfortunately, when clicking the…

Klinger
- 23
- 4
1
vote
2 answers
Selenium: 'function' object has no attribute 'click'
I am running into this issue when trying to click a button using selenium. The button html reads as below:
My code is here:
button =…

aa03
- 33
- 4
1
vote
2 answers
Python selenium wait until element has text (when it didn't before)
There is a div that is always present on the page but doesn't contain anything until a button is pressed.
Is there a way to wait until the div contains text, when it didn't before, and then get the text?

Nicholas Hansen-Feruch
- 974
- 8
- 16
1
vote
1 answer
Measure the time page element is visible on the page with selenium
When I interact with the page, loader appears for couple of seconds, and then it disappears completely from page html.
for…

Loading...

Saba
- 416
- 3
- 14
1
vote
1 answer
How to comment on blogspot within an iframe with Selenium(Python)
I would like to comment on a blogspot with selenium, chromedriver and python. I tried many methods but failed. How can I run my code below?
driver.get(url)
iframe = WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.NAME,…

Akif
- 68
- 5
1
vote
1 answer
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status error while clicking using Selenium
I am using Selenium with Java in Eclipse and I am getting these error very often before I was getting error due to loading status now another.
Scenario: after opening the Website page there are several click that are supposed to happen and every…

Zamir Sultan
- 41
- 1
- 6
1
vote
1 answer
Wait until visibilityOfElementLocated() is not working in Selenium Java
I need to wait until some element will be displayed on page.
I have created method in which I have used wait.until(ExpectedConditions.visibilityOfElementLocated()):
public void waitForElementPresentBy(By locator) {
try{
…

tester
- 95
- 1
- 7
1
vote
1 answer
ElementNotInteractableException: Message: element not interactable error sending text to Account Name field within modal dialog using Selenium Python
I want to write function which click the button then type account and submit. But the program always stop after clicked at first button, but when I look at the driver, the pop up after click button is already appear.
Here is my…

Lê Bảo Nguyễn
- 13
- 2
1
vote
1 answer
Selenium Expected Conditions, Wait until element is interactable?
Is there a way to get around the elementNotInteractable exception in selenium? I've used
wait.until(ec.element_to_be_clickable())
But my code will still try to interact with elements before they're fully interactable. Is the problem that I just…

Clockknight
- 45
- 6