File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
appium/webdriver/extensions Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ def context(self) -> str:
5858 return self .current_context
5959
6060 def _add_commands (self ) -> None :
61- # noinspection PyProtectedMember,PyUnresolvedReferences
62- commands = self .command_executor ._commands
63- commands [Command .CONTEXTS ] = ('GET' , '/session/$sessionId/contexts' )
64- commands [Command .GET_CURRENT_CONTEXT ] = ('GET' , '/session/$sessionId/context' )
65- commands [Command .SWITCH_TO_CONTEXT ] = ('POST' , '/session/$sessionId/context' )
61+ self .command_executor .extra_commands [Command .CONTEXTS ] = ('GET' , '/session/$sessionId/contexts' )
62+ self .command_executor .extra_commands [Command .GET_CURRENT_CONTEXT ] = ('GET' , '/session/$sessionId/context' )
63+ self .command_executor .extra_commands [Command .SWITCH_TO_CONTEXT ] = ('POST' , '/session/$sessionId/context' )
You can’t perform that action at this time.
0 commit comments