1
I have the following Widget in HTML
<div class="atl-container">
<div class="ui_active_loader">
::before
::after
</div>
</div>
Shown in the following image In the official documentation of Selenium there are some options, I tried all but the one that most approximates the expected result was the Fluentwait, in the code below:
_wait = new WebDriverWait(webDriver, timeout: TimeSpan.FromSeconds(30))
{
PollingInterval = TimeSpan.FromSeconds(1),
};
_wait.IgnoreExceptionTypes(typeof(NoSuchElementException));
Where every 1 second, for 30 seconds he checks the condition of the current element, but I end up getting the following error:
selenium.common.exceptions.NoSuchElementException: Unable to locatet element{"method":"id","selector":"inputSession"}
I am looking for the element via Xpath since it does not have Id, and by error, I understand that it was not possible to find the div in question, since its loading is very fast, but by default I need to know if this Load has been completed to be able to proceed with the automation.
In the place where you are passing a load, a table will appear with the search results. How to force a hold until this Loader element becomes Invisible or Hidden?