Skip to content

Commit

Permalink
Test with disable-popup-blocking as experimental option
Browse files Browse the repository at this point in the history
  • Loading branch information
dsibilio committed Oct 7, 2024
1 parent 6359857 commit 2c17c87
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private DesiredCapabilities getDesiredCapabilities()
chromeOptions.addArguments("--allow-insecure-localhost");
chromeOptions.addArguments("--ignore-ssl-errors=yes");
chromeOptions.addArguments("--ignore-certificate-errors");
chromeOptions.setExperimentalOption("excludeSwitches", new String[] { "enable-automation" });
chromeOptions.setExperimentalOption("excludeSwitches", new String[] { "enable-automation", "disable-popup-blocking" });
// chromeOptions.addArguments(String.format("--lang=%s", getBrowserLanguage(properties)));
//disable profile password manager
HashMap<String, Object> chromePrefs = new HashMap<>();
Expand Down Expand Up @@ -175,7 +175,7 @@ void getTokenFromSAMLLogin() throws Exception

//Get the redirect URL for validation -- If you check the status of the
//redirct URL call it will be 404. The page does not exist. All we are
//intersted in is the token parameter in the URL
//interested in is the token parameter in the URL
logger.info("Redirect URL: " + driver.getCurrentUrl());
logger.info("Page title: " + driver.getTitle());

Expand Down

0 comments on commit 2c17c87

Please sign in to comment.