Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hesteban-tuenti committed Nov 23, 2023
1 parent c577338 commit a4c3e63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions toolium/pageobjects/common_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ def _ios_automatic_context_selection(self):
'bundleId' in item and item['bundleId'] == self.driver.capabilities['bundleId']),
None)
if context_id:
if self.driver.context != context_id:
self.driver.switch_to.context(context_id)
self._switch_to_new_context(context_id)
else:
raise KeyError("WEBVIEW context not found")
else:
Expand Down

0 comments on commit a4c3e63

Please sign in to comment.