Skip to content

Commit

Permalink
adding the test name as metadata for searching in grid sessions (#964) (
Browse files Browse the repository at this point in the history
#971)

(cherry picked from commit de9f309)

Co-authored-by: Omkar Khatavkar <[email protected]>
  • Loading branch information
Satellite-QE and omkarkhatavkar authored Sep 22, 2023
1 parent 2447858 commit 029e17a
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.webdriver_options.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 029e17a

Please sign in to comment.