-
Question: Can someone show me an example of waiting for a shadow element to be visible? I've tried using Selenium's FluentWait but, if I use the Shadow.setExplicitWait() it seems to take into consideration this wait time as polling time, and ignores the timeout set on my fluent wait. Here's a code snippet:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For shadow objects Selenium wait won't work. For Shadow objects you can use To use this you need to set first explicit wait using
|
Beta Was this translation helpful? Give feedback.
For shadow objects Selenium wait won't work. For Shadow objects you can use
void setExplicitWait(int seconds, int pollingTime) throws Exception
. This has wait time in seconds as 1st arg and pollingTime as 2nd args.To use this you need to set first explicit wait using
setExplicitWait
method and then try finding the element usingshadow.findElement
method