Skip to content

Commit c0d09e3

Browse files
committed
use capabilities instead of desired_capabilities
...to support selenium 4.17.2 and above
1 parent 5f278ba commit c0d09e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AppiumLibrary/keywords/_applicationmanagement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def _current_application(self):
471471

472472
def _get_platform(self):
473473
try:
474-
platform_name = self._current_application().desired_capabilities['platformName']
474+
platform_name = self._current_application().capabilities['platformName']
475475
except Exception as e:
476476
raise e
477477
return platform_name.lower()

0 commit comments

Comments
 (0)