6
votes
Element not found in a runtime
This could be a timing issue(as most of the scenario you already discussed) when you're going to find it would not be present at that time on DOM, so you should try using WebDriverWait to wait until ...
3
votes
Element not found in a runtime
It mostly seems like your DOM is changing dynamically, so please use explicit wait using proper locator that uniquely identifies the element you want:
The below thread shows the full discussion on '...
2
votes
Element not found in a runtime
Reading your comments I see that app is based on Angular and this:
This service appointment has no scheduling dependencies.
Does that mean that:
First you need to select service appointment (...
1
vote
Robot Framework how to set a variable in an xpath?
You can use the built-in variable syntax of Robot Framework to set variables in your XPath expression. Here is an example:
${REPLACETHIS}= Set Variable default
${list_item}= Set Variable xpath=//*[...
1
vote
How to get specific data in a div with Selenium?
This is what I tried with Java + Selenium and it sort of worked:
System.out.println(driver.findElement(By.xpath("//li[@class='cntanr'][1]//h2//span[@class='lng_cont_name']")).getText());
...
1
vote
How to iterate two list of WebElements and print the values one by one to perform some action
@Test
public void firstcase() {
List<WebElement> elements = dr.findElements(By.xpath("//span[@class='job-card__subtitle hidden-xs']//span"));
System.out.println(&...
1
vote
Problem to find element with appium, application is running - appium oen application
var textbox = Sessions.FindElementByClassName("RadBusyIndicator").FindElementByClassName("TextBox");
It looks like you are not using FindElement correctly.
Class name - For IOS ...
1
vote
How can i get an xpath or any other element for these drop downs, ? Select options or the (Sendkeys) works
I would suggest to use something like this:
List<WebElement> listOfElements = driver.findElements(By.xpath(yourXpath));
for(WebElement element : elements){
//actions with elements you ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
elements × 9selenium-webdriver × 7
automated-testing × 3
python × 3
xpath × 3
java × 2
appium × 2
robotframework × 1
pom × 1