Firefox 128 issue to start in private navigation

Hello,
since the last Firefox update (128) my script that launch in private mode doesn’t work

and so, I can’t execute my test suite

When Firefox is open I see a message with a button that my navigation is not in private mode…

Log:

INFOS: Using `new FirefoxOptions()` is preferred to `DesiredCapabilities.firefox()`
2024-10-03 11:24:09.357 INFO  c.k.k.c.w.util.WebDriverPropertyUtil     - User set preference: ['moz:firefoxOptions', '{args=[--private]}']
2024-10-03 11:24:09.359 INFO  c.k.k.core.webui.driver.DriverFactory    - Action delay is set to 0 milliseconds
1727947451044	geckodriver	INFO	Listening on 127.0.0.1:36863
1727947451526	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--private" "-no-remote" "-profile" "C:\\Users\\AL7789\\AppData\\Local\\Temp\\rust_mozprofileKK81ZV"
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1727947452351	Marionette	INFO	Marionette enabled
Dynamically enable window occlusion 0
1727947452632	Marionette	INFO	Listening on port 61911
Read port: 61911
1727947452870	RemoteAgent	INFO	Proxy settings initialized: {"proxyType":"direct"}
1727947452870	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
oct. 03, 2024 11:24:15 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFOS: Detected dialect: W3C
2024-10-03 11:24:15.359 INFO  c.k.k.core.webui.driver.DriverFactory    - sessionId = 14cd6982-8f5b-4af6-a1f3-571ca1ea14af
2024-10-03 11:24:15.388 INFO  c.k.k.core.webui.driver.DriverFactory    - browser = Firefox 128.0
2024-10-03 11:24:15.389 INFO  c.k.k.core.webui.driver.DriverFactory    - platform = Windows 11
2024-10-03 11:24:15.390 INFO  c.k.k.core.webui.driver.DriverFactory    - seleniumVersion = 3.141.59
2024-10-03 11:24:15.392 INFO  c.k.k.core.webui.driver.DriverFactory    - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList="", isApplyToDesiredCapabilities=true }
2024-10-03 11:24:15.974 DEBUG testcase.LoginRobot3                     - 17: if (testEnvironments == "Valid")
2024

is this full log?

are you running locally or remote?

Yes it’s locally,

and it’s the full log of this test case

can you share how you configured firefox for private window?

Hi @adecaest,

Welcome back after a long time. Thank you for sharing your issue. Which version are you using? I would like to recommend you use at least v9.7.0 as it can work compatibly with Firefox latest. Thank you!

As suggested, can you try with latest version and confirm @adecaest ?

I was in 9.5

I upgrade to 9.7 and upgrade the firefox driver

and I still have the issue

The 10.0.0 release will address this.

We’re going to do a new beta release tomorrow and the below post will be updated with the new link. It should address this issue with the new build. You’ll need to update your desiredCaps to use the Options instead.

Below is the link where we’ll post the beta.

@adecaest Verified it works (from the sample script at healthcare-tests/Scripts/Main Test Cases/TC1_Verify Successful Login/Script1482850539026.groovy at master · katalon-studio-samples/healthcare-tests · GitHub) with below env:

Can you try to change the CLI option to -private-window ?

2024-10-08 11:28:19.925 INFO  c.k.katalon.core.main.TestCaseExecutor   - --------------------
2024-10-08 11:28:19.927 INFO  c.k.katalon.core.main.TestCaseExecutor   - START Test Cases/Main Test Cases/TC1_Verify Successful Login
2024-10-08 11:28:19.992 INFO  c.k.katalon.core.main.TestCaseExecutor   - (Default) Username = John Doe
2024-10-08 11:28:20.000 INFO  c.k.katalon.core.main.TestCaseExecutor   - (Default) Password = ThisIsNotAPassword
2024-10-08 11:28:20.035 DEBUG testcase.TC1_Verify Successful Login     - 1: comment("Story: Login to CURA system")
2024-10-08 11:28:20.067 INFO  c.k.k.c.keyword.builtin.CommentKeyword   - Story: Login to CURA system
2024-10-08 11:28:20.068 DEBUG testcase.TC1_Verify Successful Login     - 2: comment("Given that the user has the valid login information")
2024-10-08 11:28:20.072 INFO  c.k.k.c.keyword.builtin.CommentKeyword   - Given that the user has the valid login information
2024-10-08 11:28:20.075 DEBUG testcase.TC1_Verify Successful Login     - 3: openBrowser(G_SiteURL)
2024-10-08 11:28:20.166 INFO  c.k.k.core.webui.driver.DriverFactory    - Starting 'Firefox' driver
Oct 08, 2024 11:28:20 AM org.openqa.selenium.remote.DesiredCapabilities firefox
INFO: Using `new FirefoxOptions()` is preferred to `DesiredCapabilities.firefox()`
2024-10-08 11:28:20.187 INFO  c.k.k.c.w.util.WebDriverPropertyUtil     - User set preference: ['moz:firefoxOptions', '{args=[-private-window]}']
2024-10-08 11:28:20.187 INFO  c.k.k.core.webui.driver.DriverFactory    - Action delay is set to 0 milliseconds
1728361700780	geckodriver	INFO	Listening on 127.0.0.1:5717
1728361701010	mozrunner::runner	INFO	Running command: MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT="1" MOZ_CRASHREPORTER_SHUTDOWN="1" MOZ_NO_REMOTE="1" "/App ... rivate-window" "-foreground" "-no-remote" "-profile" "/var/folders/7j/z7n_g0zd7rx5n38dnry32l_80000gp/T/rust_mozprofileg0xWkX"
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1728361701293	Marionette	INFO	Marionette enabled
1728361701635	Marionette	INFO	Listening on port 60433
Read port: 60433
1728361701737	RemoteAgent	INFO	Proxy settings initialized: {"proxyType":"direct"}
1728361701737	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
UNSUPPORTED (log once): POSSIBLE ISSUE: unit 1 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
Oct 08, 2024 11:28:22 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2024-10-08 11:28:22.814 INFO  c.k.k.core.webui.driver.DriverFactory    - sessionId = 445c3b6e-26ca-4343-a25c-34ee15129ab5
2024-10-08 11:28:22.827 INFO  c.k.k.core.webui.driver.DriverFactory    - browser = Firefox 131.0
2024-10-08 11:28:22.828 INFO  c.k.k.core.webui.driver.DriverFactory    - platform = Mac OS X
2024-10-08 11:28:22.828 INFO  c.k.k.core.webui.driver.DriverFactory    - seleniumVersion = 3.141.59
2024-10-08 11:28:22.831 INFO  c.k.k.core.webui.driver.DriverFactory    - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=localhost, proxyServerPort=8080, executionList="", isApplyToDesiredCapabilities=true }
2024-10-08 11:28:30.807 DEBUG testcase.TC1_Verify Successful Login     - 4: closeBrowser()
1728361710825	Marionette	INFO	Stopped listening on port 60433
2024-10-08 11:28:31.459 INFO  c.k.katalon.core.main.TestCaseExecutor   - END Test Cases/Main Test Cases/TC1_Verify Successful Login

from the screenshot,looks like private session has been opened though language is not english


made the upgrade in v10 and adapt also the desirecap

but without positive results