Changes to SSH including new password

This commit is contained in:
2025-10-21 14:01:27 +01:00
parent e39a36183a
commit 01268ddda5
11 changed files with 79 additions and 243 deletions

View File

@@ -39,14 +39,8 @@ namespace AiQ_GUI
return elementID;
}
// Clicks the element with the specified ID using Chromedriver
public static void ClickElementByID(string elementID, ChromeDriver driver)
{
ClickElementByID(elementID, true, driver);
}
// Attempts to click the web element with the specified ID; refreshes the page and retries once if the initial attempt fails
public static void ClickElementByID(string elementID, bool tryagain, ChromeDriver driver)
public static void ClickElementByID(string elementID, ChromeDriver driver, bool tryagain = true)
{
try
{
@@ -61,7 +55,7 @@ namespace AiQ_GUI
driver.Navigate().Refresh();
WebDriverWait wait = new(driver, TimeSpan.FromSeconds(10));
wait.Until(d => ((IJavaScriptExecutor)d).ExecuteScript("return document.readyState").Equals("complete"));
ClickElementByID(elementID, false, driver);
ClickElementByID(elementID, driver, false);
}
MainForm.Instance.AddToActionsList("Could not click " + elementID);