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
I managed to get the Phoenix sandbox set up, and wrote about it on my blog. I found that the existing PlaywrightTest.Case module, the Playwright.Browser.new_context function and Playwright.Browser.new_page were not sufficient for my needs so I had to copy and modify them. Maybe this can be improved by changing the library?
As a note, I think it may be better to configure the user-agent header instead of a separate one like I did, but then I think the metadata should be appended to existing user agent that Playwright would use, and I couldn't find a way to read it. Maybe there's a way, or maybe such feature can be requested from upstream. Ideally the user could do either one, by making the library flexible and allowing to configure both the user-agent and additional headers.
The text was updated successfully, but these errors were encountered:
@woodward and I started working on this today. You can see the initial change, to add handling of custom options (incl. extra_http_headers) to calls to Browser.new_context in "Add support for options to Browser.new_context".
Still more to come in order to get to what you're looking for
Hi!
I managed to get the Phoenix sandbox set up, and wrote about it on my blog. I found that the existing
PlaywrightTest.Case
module, thePlaywright.Browser.new_context
function andPlaywright.Browser.new_page
were not sufficient for my needs so I had to copy and modify them. Maybe this can be improved by changing the library?As a note, I think it may be better to configure the
user-agent
header instead of a separate one like I did, but then I think the metadata should be appended to existing user agent that Playwright would use, and I couldn't find a way to read it. Maybe there's a way, or maybe such feature can be requested from upstream. Ideally the user could do either one, by making the library flexible and allowing to configure both theuser-agent
and additional headers.The text was updated successfully, but these errors were encountered: