Skip to content

Commit

Permalink
Fix remaining test
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Dec 9, 2024
1 parent a2101f7 commit 47390a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public virtual void TestHeadlessWebDriverWithOptionsAndOptionsInstance()
ChromeOptions optInstance=new ChromeOptions();
optInstance.UnhandledPromptBehavior = OpenQA.Selenium.UnhandledPromptBehavior.Ignore;
IWebDriver driver = factory.GetSeleniumDriver("chrome", string.Empty, string.Empty, caps, TestDriver.chromeHeadlesArgument, optInstance);
Assert.AreEqual("{browserName:chrome,unhandledPromptBehavior:ignore,testprefix:key1:value1,goog:chromeOptions:{args:[--headless,--remote-allow-origins=*]}}",
// #801 the toString method is not able to get other custom capabilities than the standard and chromeOptions
Assert.AreEqual("{browserName:chrome,goog:chromeOptions:{args:[--headless,--remote-allow-origins=*]}}",
factory.GetLastOptionString().Replace("\"","").Replace("\r","").Replace("\n","").Replace(" ",""));
driver.Close();
}
Expand Down

0 comments on commit 47390a3

Please sign in to comment.