Skip to content

Commit

Permalink
check_error to coinscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
98llm committed Jan 15, 2025
1 parent 0cecb67 commit 0d136ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tir/technologies/webapp_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1225,14 +1225,14 @@ def close_modal(self):
except:
pass

def check_screen_element(self, term="", selector=None, scraptype=enum.ScrapType.MIXED):
def check_screen_element(self, term="", selector=None, scraptype=enum.ScrapType.MIXED, check_error=True):
"""
[Internal]
This method checks if the screen element is displayed.
"""

element_exists = True if self.element_exists(term=term, scrap_type=scraptype, optional_term=selector, main_container="body") else False
element_exists = True if self.element_exists(term=term, scrap_type=scraptype, optional_term=selector, main_container="body", check_error=check_error) else False

logger().debug(f'Checking screen element: "{term}": {element_exists}')

Expand Down Expand Up @@ -1341,7 +1341,7 @@ def check_news_screen(self):
"""
selector = self.news_screen_selectors()

return self.check_screen_element(term=self.language.news, selector=selector)
return self.check_screen_element(term=self.language.news, selector=selector, check_error=False)

def check_screen(self):
"""
Expand Down

0 comments on commit 0d136ec

Please sign in to comment.