wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath('anywere')))

56 views
Skip to first unread message

vliria...@gmail.com

unread,
Feb 2, 2018, 10:38:56 PM2/2/18
to Selenium Users
Hi. I'm a junior at Selenium webdriver, I need help with Fluent Wait because it does not work if I use xpath. I show you what I am doing.

wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath('anywere'))) 

wait.until(ExpectedConditions.elementToBeClickable(By.xpath('anywere')));

Please I need to solve this problem, thanks in advance.

murali krishna

unread,
Feb 8, 2018, 11:51:06 PM2/8/18
to Selenium Users
You can try by using wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("anywere")));

Hope it helps..!!
Reply all
Reply to author
Forward
0 new messages