Questions tagged [expected-condition]
144 questions
0
votes
2 answers
Why does click method is not working in Selenium in Python?
click() method is not working in selenium python. I have used all of the methods which are available in selenium documentation. I want to apply automation to this URL.
from selenium.webdriver.common.by import By
from selenium import webdriver
from…

Jay Kakadiya
- 23
- 5
0
votes
1 answer
Webpage UI elements and forms are broken while interacting using expected_conditions as visibility_of_element_located() using Selenium and Python
Having issue with selenium, while running my test chrome page are broken(some forms are broken, fields not in correct position, therefore cant fill data on it)
Should open like this
But have this:
In case have similar version of chromedriver and…

Yerbol
- 39
- 6
0
votes
1 answer
How to implement Expected Conditions with Javascript calls in Selenium
My Python Selenium code below downloads a shapefile of Rio de Janeiro.
import time, os
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.support.ui import WebDriverWait
from…

Jared Greathouse
- 259
- 1
- 8
0
votes
1 answer
How to catch the elements selected through both the conditions once page changes
I'm trying to scrape some urls, but depending on the amount of results, the page code changes.
Both below are working, but none returns me 100% of the results. I'm trying to create a 'if' of some sort that will leave no NAN results.
url =…

Owl J
- 1
- 1
0
votes
0 answers
Waiting using expected conditions to check the presence of a SVG element in Selenium Python
I am using expected conditions and waiting until a SVG element is located. My locator is correct when checked manually but every time the test is failing with an 'invalid locator' error message. I am really stuck.
Are there any specific expected…
0
votes
1 answer
expected_conditions.elementS_to_be_clickable((By.TAGNAME,'a'))
I have some webscraping project where I have a code like this:
sleep(1)
meeting_link = driver.find_elements_by_tag_name('a')
meeting_link[25].click()
My question is, how can I use
WebDriverWait(driver,…

Dew
- 1
0
votes
1 answer
Why expected conditions of clickable doesn't perform click()?
Why Selenium Expected Conditions of waitForElementToBeClickable doesn't come with built-in click() method?
Selenium knows I'm waiting for element to be clickable, so why should I have to perform additional action of driver.click() on that…

nuzooo
- 133
- 1
- 11
0
votes
1 answer
AttributeError: 'WebDriver' object has no attribute 'wait'
from behave import when, then, given
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import…

paulcjcoding
- 11
- 1
- 1
0
votes
1 answer
Unable to click on Radio Button getting "ElementClickInterceptedException" error
I am getting following error while trying to click on radio button using selenium Webdriver in python
ElementClickInterceptedException: Message: element click intercepted: Element

rogercake
- 63
- 7
0
votes
2 answers
How to pause Selenium execution when progress bar is shown
I have a Angular SPA application which I would like to automate. When this progress bar is shown:
Loading...
I would like to…
Peter Penzov
- 1,126
- 134
- 430
- 808
0
votes
2 answers
Selenium webdriverwait (.text_to_be_present _in_element doesnt) seem to work and I can't find any solution to this
this below is the FULL html element I grabbed from the web
19.60
as you notice, I am selecting a 20 second countdown html timer code,
The problem here is the code I wrote below…
davidpattin
- 25
- 3
0
votes
3 answers
Locate an an element by the value of the precedent element - Selenium
I want to locate the input based on the value of the previous td --> 143753
taking in consideration that i will put the value 143753 in a variable, so i can choose any row i want to select.
143753

sohan22
- 15
- 4
0
votes
1 answer
Python Selenium: How to apply "And" logical operator in expected condition
Basically, what I want to do is search https://www.ssrn.com/index.cfm/en/ for a name and then click on some partially matching name. For example, I want to search "John Doe". SSRN will return a list of papers that contain John Doe in their author…

stressed
- 328
- 2
- 7
0
votes
1 answer
Automation testing Selenium with c#
I am able to go till Parent folder and after on Click Childs will display.
how to write method to get dispalyed child (ON CLICK).
I tried this,
public void TAB1SELECT() {
Actions action = new Actions(_driver);
…
0
votes
4 answers
Wait until element doesn't exists using PageFactory
I'm trying to use only PageFactory in my project, without using fields with type By. And I'm looking to implement something like this:
@FindBy(className = "loading-container")
private WebElement loadingElement;
public LoadingPage(WebDriver driver)…

Roy
- 123
- 2
- 9