Skip to content

Commit

Permalink
adding the test name as metadata for searching in grid sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarkhatavkar committed Sep 11, 2023
1 parent 5b7aa9d commit 99d7b53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airgun/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ def _get_remote_browser(self):
Note: should not be called directly, use :meth:`get_browser` instead.
"""
if self.test_name:
self.web_kaifuku.get('webdriver_options').get('desired_capabilities').update(
{'se:test_name': self.test_name}
)
manager = BrowserManager.from_conf(self.web_kaifuku)
self._webdriver = manager.start()
self._set_session_cookie()
Expand Down

0 comments on commit 99d7b53

Please sign in to comment.