Hi,
I have code like this:
newElement = Find.ById<HtmlDiv>("someId");
//the find is already executed here. But it takes some time before newElement is present on the page. So the find strategy will return null.
newElement.Wait.ForExists(timeout);
//since element was not already present, newElement= null. So wait for exists doesn't really do anything
Is there a way to have a lazy find strategy? So, only when I wait for the element to exist, does it actually try to find it?
I have code like this:
newElement = Find.ById<HtmlDiv>("someId");
//the find is already executed here. But it takes some time before newElement is present on the page. So the find strategy will return null.
newElement.Wait.ForExists(timeout);
//since element was not already present, newElement= null. So wait for exists doesn't really do anything
Is there a way to have a lazy find strategy? So, only when I wait for the element to exist, does it actually try to find it?