Open pablowatson opened 3 months ago
I am getting the same error, I have Serenity version 4.1.13, Chrome 124 and I am running them on a Linux server. These are my configurations:
headless.mode = true
webdriver {
driver = chrome
autodownload = true
capabilities {
browserName = "chrome"
acceptInsecureCerts = true
"goog:chromeOptions" {
prefs {
download.prompt_for_download=false,
profile.default_content_settings.popups=0,
download.default_directory = ${user.dir}"\\src\\test\\resources\\descargas",
download.directory_upgrade = true,
safebrowsing.enabled = true,
plugins.always_open_pdf_externally = true
}
}
}
}
chrome.switches = """--window-size=1920,1080;--start-maximized;--test-type;--no-sandbox;--ignore-certificate-errors;
--disable-popup-blocking;--disable-default-apps;--disable-extensions-file-access-check;
--incognito;--disable-infobars,--disable-gpu;--remote-allow-origins=*"""
In theory you can do this with the W3c properties but I haven't been able to get it to work, either in Serenity or in plain Selenium. Getting it working with plain Selenium would be the first step.
If I have my project with Screenplay, how would I make it work with Selenium Simple?
The strange thing is that it works locally for me. I use Windows 11, but when I run them on the server with Linux, it fails. I have 6 scenarios; it manages to execute the first one, but then it can't open the Chrome driver for the following ones. I see that the server's capacity is being fully consumed.
I am trying include a chrome extension via the serenity.conf like the one below.
However when do that, I get the error below:
Does anyone have any ideas what I am doing wrong here?