From 78791a00f6cbe0fd830906970010b63bec0efccb Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Mon, 5 Aug 2024 16:37:28 +0200 Subject: [PATCH] disable search engine choice screen (#1869) --- gradle/libs.versions.toml | 2 +- maestro-client/src/main/java/maestro/drivers/WebDriver.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a44078dec3..d152e8ce98 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -38,7 +38,7 @@ kotlinResult = "1.1.14" ktor = "2.3.6" mozillaRhino = "1.7.14" picocli = "4.5.2" -selenium = "4.11.0" +selenium = "4.13.0" slf4j = "1.7.36" squareOkhttp = "4.12.0" squareOkio = "3.8.0" diff --git a/maestro-client/src/main/java/maestro/drivers/WebDriver.kt b/maestro-client/src/main/java/maestro/drivers/WebDriver.kt index 540d6fe4a6..9287483cc7 100644 --- a/maestro-client/src/main/java/maestro/drivers/WebDriver.kt +++ b/maestro-client/src/main/java/maestro/drivers/WebDriver.kt @@ -66,6 +66,7 @@ class WebDriver(val isStudio: Boolean) : Driver { driverService, ChromeOptions().apply { addArguments("--remote-allow-origins=*") + addArguments("--disable-search-engine-choice-screen") if (isStudio) { addArguments("--headless=new") addArguments("--window-size=1024,768")