From b35ce7c8d173315abaa40bab8f09ab2bf3d20bf4 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Thu, 1 Aug 2024 12:32:01 +0200 Subject: [PATCH] Update selenium and disable search engine choice screen --- 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 52c716fd6c..0747797782 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -34,7 +34,7 @@ kotlinResult = "1.1.14" ktor = "2.3.6" mozillaRhino = "1.7.14" picocli = "4.5.2" -selenium = "4.11.0" +selenium = "4.23.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")