Skip to content

Commit 408e037

Browse files
committed
Remove deprecated browser capabilities
1 parent a6822e9 commit 408e037

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,44 +1633,6 @@ def get_remote_driver(
16331633
desired_capabilities=capabilities,
16341634
keep_alive=True,
16351635
)
1636-
elif browser_name == constants.Browser.IPHONE:
1637-
capabilities = webdriver.DesiredCapabilities.IPHONE
1638-
if selenium4_or_newer:
1639-
remote_options = ArgOptions()
1640-
remote_options.set_capability("cloud:options", desired_caps)
1641-
return webdriver.Remote(
1642-
command_executor=address,
1643-
options=remote_options,
1644-
keep_alive=True,
1645-
)
1646-
else:
1647-
warnings.simplefilter("ignore", category=DeprecationWarning)
1648-
for key in desired_caps.keys():
1649-
capabilities[key] = desired_caps[key]
1650-
return webdriver.Remote(
1651-
command_executor=address,
1652-
desired_capabilities=capabilities,
1653-
keep_alive=True,
1654-
)
1655-
elif browser_name == constants.Browser.IPAD:
1656-
capabilities = webdriver.DesiredCapabilities.IPAD
1657-
if selenium4_or_newer:
1658-
remote_options = ArgOptions()
1659-
remote_options.set_capability("cloud:options", desired_caps)
1660-
return webdriver.Remote(
1661-
command_executor=address,
1662-
options=remote_options,
1663-
keep_alive=True,
1664-
)
1665-
else:
1666-
warnings.simplefilter("ignore", category=DeprecationWarning)
1667-
for key in desired_caps.keys():
1668-
capabilities[key] = desired_caps[key]
1669-
return webdriver.Remote(
1670-
command_executor=address,
1671-
desired_capabilities=capabilities,
1672-
keep_alive=True,
1673-
)
16741636
elif browser_name == constants.Browser.REMOTE:
16751637
if selenium4_or_newer:
16761638
remote_options = ArgOptions()

seleniumbase/fixtures/constants.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ class ValidBrowsers:
311311
"ie",
312312
"opera",
313313
"safari",
314-
"iphone",
315-
"ipad",
316314
"remote",
317315
]
318316

@@ -324,8 +322,6 @@ class Browser:
324322
INTERNET_EXPLORER = "ie"
325323
OPERA = "opera"
326324
SAFARI = "safari"
327-
IPHONE = "iphone"
328-
IPAD = "ipad"
329325
REMOTE = "remote"
330326

331327
VERSION = {
@@ -335,8 +331,6 @@ class Browser:
335331
"ie": None,
336332
"opera": None,
337333
"safari": None,
338-
"iphone": None,
339-
"ipad": None,
340334
"remote": None,
341335
}
342336

@@ -347,8 +341,6 @@ class Browser:
347341
"ie": None,
348342
"opera": None,
349343
"safari": None,
350-
"iphone": None,
351-
"ipad": None,
352344
"remote": None,
353345
}
354346

0 commit comments

Comments
 (0)