Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion py/selenium/webdriver/chrome/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from selenium.webdriver.chromium.options import ChromiumOptions
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from typing import Optional


class Options(ChromiumOptions):
Expand All @@ -25,5 +26,9 @@ class Options(ChromiumOptions):
def default_capabilities(self) -> dict:
return DesiredCapabilities.CHROME.copy()

def enable_mobile(self, android_package="com.android.chrome", android_activity=None, device_serial=None):
def enable_mobile(self,
android_package: str = "com.android.chrome",
android_activity: Optional[str] = None,
device_serial: Optional[str] = None
) -> None:
super().enable_mobile(android_package, android_activity, device_serial)