mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Cleaned up test.yml, added ScrollIntoView to AssetsHelper
This commit is contained in:
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -22,7 +22,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y chromium-browser chromium-chromedriver
|
sudo apt-get install -y chromium-browser chromium-chromedriver
|
||||||
ls /usr/bin -alh
|
|
||||||
|
|
||||||
# Verify the installation
|
# Verify the installation
|
||||||
- name: Verify Chromium and ChromeDriver
|
- name: Verify Chromium and ChromeDriver
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ public static class AssetsHelper
|
|||||||
AppHelper.AwaitVisible(driver, By.Id("createLocationSelect-ts-control"));
|
AppHelper.AwaitVisible(driver, By.Id("createLocationSelect-ts-control"));
|
||||||
driver.FindElement(By.Id("createLocationSelect-ts-control")).Click();
|
driver.FindElement(By.Id("createLocationSelect-ts-control")).Click();
|
||||||
AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementExists(By.Id("createLocationSelect-opt-1")));
|
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-ts-control\").value=\"somewhere\"");
|
||||||
driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-opt-1\").click()");
|
driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-opt-1\").click()");
|
||||||
driver.FindElement(By.Id("createUsersSelect-ts-control")).Click();
|
driver.FindElement(By.Id("createUsersSelect-ts-control")).Click();
|
||||||
|
|||||||
Reference in New Issue
Block a user