From 270d72c8b9819f1a74e79186784a3639733b1e09 Mon Sep 17 00:00:00 2001 From: omkarkhatavkar Date: Mon, 11 Sep 2023 15:48:39 +0530 Subject: [PATCH] adding the test name as metadata for searching in grid sessions --- airgun/browser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airgun/browser.py b/airgun/browser.py index 891fff73e..1fd9a6088 100644 --- a/airgun/browser.py +++ b/airgun/browser.py @@ -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()