DEV: prevents chrome to ask for fav search engine (#28192)

This commit is contained in:
Joffrey JAFFEUX 2024-08-01 15:49:07 +02:00 committed by GitHub
parent 4998c7be50
commit a6eba4b203
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,7 @@ module.exports = {
"--headless=new",
"--disable-dev-shm-usage",
"--disable-software-rasterizer",
"--disable-search-engine-choice-screen",
"--mute-audio",
"--remote-debugging-port=4201",
"--window-size=1440,900",
@ -158,6 +159,7 @@ module.exports = {
"--headless=new",
"--disable-dev-shm-usage",
"--disable-software-rasterizer",
"--disable-search-engine-choice-screen",
"--mute-audio",
"--remote-debugging-port=4201",
"--window-size=1440,900",

View File

@ -401,6 +401,7 @@ RSpec.configure do |config|
.new(logging_prefs: { "browser" => browser_log_level, "driver" => "ALL" })
.tap do |options|
apply_base_chrome_options(options)
options.add_argument("--disable-search-engine-choice-screen")
options.add_argument("--window-size=1400,1400")
options.add_preference("download.default_directory", Downloads::FOLDER)
end
@ -427,6 +428,7 @@ RSpec.configure do |config|
Selenium::WebDriver::Chrome::Options
.new(logging_prefs: { "browser" => browser_log_level, "driver" => "ALL" })
.tap do |options|
options.add_argument("--disable-search-engine-choice-screen")
options.add_emulation(device_name: "iPhone 12 Pro")
options.add_argument(
'--user-agent="--user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/36.0 Mobile/15E148 Safari/605.1.15"',