Skip to content

Commit

Permalink
Add check for existence of title (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible authored Aug 17, 2023
1 parent 857f8c1 commit a3b1eb5
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 @@ -440,7 +440,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 @@ -483,7 +484,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 a3b1eb5

Please sign in to comment.