Skip to content

Commit 403c193

Browse files
author
admin
committed
Added chrome option disable-infobars to supress new chrome 57 info bar
message "Chrome is being controlled by automated test software."
1 parent b972104 commit 403c193

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • java_test_example/src/test/java/java_example

‎java_test_example/src/test/java/java_example/test.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public void beforeMethod() throws Exception {
6767
//Chrome specifics
6868
if (browser_name.equalsIgnoreCase("chrome")){
6969
ChromeOptions options = new ChromeOptions();
70+
options.addArguments("disable-infobars"); // starting from Chrome 57 the info bar displays with "Chrome is being controlled by automated test software."
71+
7072
// On Linux start-maximized does not expand browser window to max screen size. Always set a window size.
7173
if (platform_name.equalsIgnoreCase("linux")) {
7274
options.addArguments(Arrays.asList("--window-position=0,0"));

0 commit comments

Comments
 (0)