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 ...
Nitin Rastogi's user avatar
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 '...
PDHide's user avatar
  • 11.1k
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 (...
Michal Dobrzycki's user avatar
1 vote
Accepted

How to capture the element using srcset attribute?

Srcset is a new attribute which allows to specify different kind of images for different screen-sizes/orientation/display-types. It allows to define a list of different image resources along with size ...
Sumit Kumar's user avatar
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=//*[...
IAmMilinPatel's user avatar
1 vote

Selenium Locators are not working for this site?

The exception thrown 'NoSuchElementException' can be due to pageload issue as there is nothing wrong with the webelement 'userName'. These are common issues faced in test automation services company ...
Anand's user avatar
  • 785
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()); ...
IAmMilinPatel's user avatar
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(&...
PDHide's user avatar
  • 11.1k
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 ...
kirbycope's user avatar
  • 4,090
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 ...
Vadim Popov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible