java - Selenium - Web Driver Wait -


is that I usually write to find an element with name = "email"

  WebElement emailInput = (New WebDriverWait (Driver, 10)). Unless (required conditions .resenceOfElementLocated (by .name ("email")));  

What if any element of the board body has been seen below

  WebElement modalBody = enrollForm.findElement (by .className ("modal-body")) ;  

Now, if I wanted to get a specific weblet in any other web analytics sort ...

  WebElement a = driver.findElement (By.id (< Code>  

here b is an element within a / code>. There are many other divisions -> ChocolatesMicigial

I have to do this, but with WebDriverWait I have Thread.sleep but this one There is a very bad method.

Here is what I have tried (but I have a Mother was trying to slow down a web element that does not make any sense).

  WebElement emailInput = (New WebDriverWait (modalBody, 10)) Unless (required Conditions PresenceOfElementLocated (.name ("email"));  

How to get any suggestions?

Confessions: I was honestly escaping this method and Thread Soth (XX).

This is the way I am able to use and find Xpath I am expecting an answer! :)

  webmail emailInput = (new WebDriverWait (driver, 10)). Unless (required conditions .elementToBeClickable (.xpath ("some_complex_xpath"));  

If the element is present on the DOM, then you should not have any problems with the model. I am testing a large system and all forms are modal, we have no problem finding the element to use the expected conditions.

In addition, you can use XPATH ...

Here is an example: // input [in (class, 'name')] / following: Input [@ type = 'button']


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -