Added Locations E2E tests

This commit is contained in:
2025-11-09 22:39:12 +01:00
parent 7f6a14a999
commit d27b4e19b0
3 changed files with 141 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ public static class AppHelper
public static bool TryRetryFindSuccessToast(ChromeDriver driver)
{
int retryCounter = 0;
retry:
retry:
try
{
@@ -101,4 +101,24 @@ public static class AppHelper
{
return webElement.GetAttribute("checked") == "true";
}
public static void ScrollIntoViewAndClick(ChromeDriver driver, IWebElement webElement)
{
driver.ExecuteScript("arguments[0].scrollIntoView();", webElement);
int retryCounter = 0;
retry:
try
{
Thread.Sleep(250);
webElement.Click();
}
catch (Exception)
{
if (retryCounter++ < 20)
{
goto retry;
}
throw;
}
}
}