You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is browser object available with launchPersistentContextOptions? : false
Is browser object available with newContext? : true
Expected behavior
Is browser object available with launchPersistentContextOptions? : true
Is browser object available with newContext? : true
Actual behavior
I want to get the executable path and user data directory from the page object. According to API documentation, I should have got it using pageMethod1.context().browser().browserType().executablePath() when the page is launched using launchPersistentContextOptions. However, pageMethod1.context().browser() is always null.
Any help here would be appreciated.
Additional context
No response
Environment
Browser: Chromium
Operating System: macOS Sonoma
Java Version: Java 19
The text was updated successfully, but these errors were encountered:
Version
1.43.0
Steps to reproduce
If we run the below code in a main function:
I get output as:
Expected behavior
Actual behavior
I want to get the executable path and user data directory from the page object. According to API documentation, I should have got it using
pageMethod1.context().browser().browserType().executablePath()
when the page is launched using launchPersistentContextOptions. However, pageMethod1.context().browser() is always null.Any help here would be appreciated.
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: