Open Edv1ser opened 4 years ago
EDIT: forgot to mention, that once I rebuild solution, function starts working again, and so on and on...
Code starts working after cleaning up solution as well.
is the element visible in inspect.exe
Looks like an API bug... Have you tried a different technique, something other than the Conditions class? Like, maybe a Thread.Sleep(1000) before calling the until. Or even an until with different parameters.
Are you instantiating a new WebDriverWait before the next check, or using the same one? If the same one, does CAsession know about the new element (achievable by doing something like what @naeemakram suggested and putting a Thread.Sleep after the first wait.Until, and then doing a CAsession.PageSource and manually looking for the element.)
As a tangential comment, if you're using C#, you should scrap the Conditions class and build you're own wait conditions, custom to your solution.
Hello, I'm having this strange issue with my code. I set up a function to wait for element to be clickable, and it is working for some time. Winappdriver log is waiting for element to be clickable, repeatedly checking the element untill its clickable and clicks it, but when time comes for another element, winappdriver just shows value false (not clickable) and is not looking at it anymore. Then script just catches timeout exception.
WebDriverWait wait = new WebDriverWait(CAsession, TimeSpan.FromSeconds(60)); wait.Until(Conditions.ElementToBeClickable(GUIElement));
Any help would be appreciated. EDIT: forgot to mention, that once I rebuild solution, function starts working again, and so on and on...