Skip to content

Commit a21c941

Browse files
committed
updated BaseTest with automation extension arguments to handle cloudfare popup in github actions run
1 parent 00525f3 commit a21c941

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/io/github/mfaisalkhatri/test/BaseTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public WebDriver getDriver () {
2222
public void setup () {
2323
ChromeOptions chromeOptions = new ChromeOptions ();
2424
chromeOptions.addArguments("--disable-blink-features=AutomationControlled");
25+
chromeOptions.setExperimentalOption("useAutomationExtension", false);
2526
chromeOptions.addArguments ("--headless=new", "--no-sandbox", "--window-size=1920,1080");
2627

2728
this.driver = new ChromeDriver (chromeOptions);

0 commit comments

Comments
 (0)