java – Wait. Until() and webdriver pagefactory elements
•
Java
I'm using the @ findby annotation to find elements on my page like this:
@FindBy(xpath = "//textarea") public Input@R_746_2419@ authorField;
Please help. I want to use wait (expected conditions) with comment elements like this:
wait.until(visibilityOfElementLocated(authorField));
Substitute:
wait.until(visibilityOfElementLocated(By.xpath("//textarea")));
Thank you in advance
Solution
ExpectedConditions.visibilityOf(authorField);
ExpectedConditions.visibilityOf(authorField);
View the source code for any expected conditions Writing your own conditions is very easy and can do everything you want
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码