We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb08f9 commit 1757793Copy full SHA for 1757793
seleniumbase/fixtures/base_case.py
@@ -3766,6 +3766,13 @@ def get_new_driver(
3766
d_height = self.__device_height
3767
if d_p_r is None:
3768
d_p_r = self.__device_pixel_ratio
3769
+ if is_mobile and not user_agent:
3770
+ # Use the Pixel 4 user agent by default if not specified
3771
+ user_agent = (
3772
+ "Mozilla/5.0 (Linux; Android 11; Pixel 4 XL) "
3773
+ "AppleWebKit/537.36 (KHTML, like Gecko) "
3774
+ "Chrome/89.0.4389.105 Mobile Safari/537.36"
3775
+ )
3776
valid_browsers = constants.ValidBrowsers.valid_browsers
3777
if browser_name not in valid_browsers:
3778
raise Exception(
0 commit comments