Skip to content

Commit

Permalink
Add check for existence of title (#934)
Browse files Browse the repository at this point in the history
(cherry picked from commit a3b1eb5)
  • Loading branch information
sambible authored and web-flow committed Aug 17, 2023
1 parent 19c10fb commit f8c9674
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 f8c9674

Please sign in to comment.