Fix incorrect code

This commit is contained in:
Manuel Thalmann 2023-07-15 19:19:42 +02:00
parent c3babffe14
commit 383d2467f7

View file

@ -26,5 +26,5 @@ function Start-AutomatedDownload() {
# $options.AddArgument("--headless");
$browser = [OpenQA.Selenium.Firefox.FirefoxDriver]::new($options);
$browser.Navigate().GoToUrl($url);
$browser.FindElement($buttonSelector).Click();
$browser.FindElement([OpenQA.Selenium.By]::CssSelector("$buttonSelector")).Click();
}