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.
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