From 5b891b4a046ea942bbe78cedc9eefdb4251e3bf2 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Fri, 18 Aug 2023 01:48:40 -0400 Subject: [PATCH] Add check for existence of title (#934) (#937) (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 f031f2feb..840fe61de 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()