You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FillInWith() helps but still form fields might not always be filled. So I propose adding a method something like the one I'm presenting below to retry if the fill didn't work the first time.
public static IWebElement SafelyFillInWith(
this IWebElement element,
string text,
int waitBetweenTriesSeconds = 1,
int maxRetryCount = 5)
{
var i = 0;
IWebElement modifiedElement;
do
{
modifiedElement = element.FillInWith(text);
var z = modifiedElement.GetValue();
if (modifiedElement.GetValue() != text) Thread.Sleep(1000);
else break;
} while (++i < maxRetryCount);
return modifiedElement;
}
The text was updated successfully, but these errors were encountered:
FillInWith()
helps but still form fields might not always be filled. So I propose adding a method something like the one I'm presenting below to retry if the fill didn't work the first time.The text was updated successfully, but these errors were encountered: