Skip to content

Commit

Permalink
Add check for existence of title (#934) (#936)
Browse files Browse the repository at this point in the history
(cherry picked from commit a3b1eb5)

Co-authored-by: Samuel Bible <sbible@redhat.com>
  • Loading branch information
Satellite-QE and sambible authored Aug 18, 2023
1 parent 58bedbe commit 11fdd10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions airgun/views/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down Expand Up @@ -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()


Expand Down

0 comments on commit 11fdd10

Please sign in to comment.