Cleaned up test.yml, added ScrollIntoView to AssetsHelper

This commit is contained in:
2025-11-16 10:54:06 +01:00
parent 0db1e5f508
commit c301e052b3
2 changed files with 1 additions and 1 deletions

View File

@@ -22,7 +22,6 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y chromium-browser chromium-chromedriver
ls /usr/bin -alh
# Verify the installation
- name: Verify Chromium and ChromeDriver

View File

@@ -19,6 +19,7 @@ public static class AssetsHelper
AppHelper.AwaitVisible(driver, By.Id("createLocationSelect-ts-control"));
driver.FindElement(By.Id("createLocationSelect-ts-control")).Click();
AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementExists(By.Id("createLocationSelect-opt-1")));
AppHelper.ScrollIntoViewAndClick(driver, driver.FindElement(By.Id("createLocationSelect-opt-1")));
driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-ts-control\").value=\"somewhere\"");
driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-opt-1\").click()");
driver.FindElement(By.Id("createUsersSelect-ts-control")).Click();