From b48ae6e7ad55fa71a37c9e5e9849aeda45c7e41a Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Fri, 18 Aug 2023 01:48:53 -0400 Subject: [PATCH] Add check for existence of title (#934) (#935) (cherry picked from commit a3b1eb5d1ee1f0bde1de4cdbac98ba0b9082e30b) Co-authored-by: Samuel Bible --- airgun/views/common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airgun/views/common.py b/airgun/views/common.py index 4f787c5d2..0c8724262 100644 --- a/airgun/views/common.py +++ b/airgun/views/common.py @@ -442,7 +442,8 @@ def search(self, query): if not self.is_searchable(): return None self.searchbox.search(query) - self.title.click() + if hasattr(self, 'title'): + self.title.click() return self.table.read() @@ -485,7 +486,8 @@ def search(self, query): self.searchbox.search(query) self.browser.plugin.ensure_page_safe(timeout='60s') self.table.wait_displayed() - self.title.click() + if hasattr(self, 'title'): + self.title.click() return self.table.read()