Set User Agent in Playwright is not working

1.9k Views Asked by At

I am trying to set the user agent of playwright browser while initializing the browser context but it seems that it ignores the param I am giving and starts it with the default agent

could anyone point out what is the problem here?

version : playwrightSharp v0.180.0

private static Task<IPage> InitializePlayWrightPage()
        {
            var page = MarketsHelper.browser.NewPageAsync(userAgent:Guid.NewGuid().ToString());
            return page;
        }
0

There are 0 best solutions below