From ccd741a333d4aec280c239782fec00fea6bd4fdb Mon Sep 17 00:00:00 2001 From: Omkar Khatavkar Date: Thu, 14 Sep 2023 13:57:22 +0530 Subject: [PATCH] adding the test name as metadata for searching in grid sessions (#964) (cherry picked from commit de9f3093df5a5253efc0f559073b85770594921b) --- airgun/browser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airgun/browser.py b/airgun/browser.py index e80aa1175..5b39ae5ec 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()