I would like to determine during runtime if the browser type is mobile (based on viewport size) or not. According to the Playwright Documentation
browserContext has an optional boolean isMobile that could allow returning this information, but i cannot seem to find a way to access it.
For example,
page.context().browser().browserType().name() will return the browser name that the current test is running on
but:
page.context().browser().browserType().isMobile() won't work as the function does not exit
Any ideas? Thanks!