Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tir/technologies/webapp_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5126,15 +5126,18 @@ def WaitShow(self, string, timeout=None, throw_error=True, match_case=False):
if not timeout:
timeout = 1200

optional_term = ".tsay, .tgroupbox, wa-text-view, .po-page-header-title"
main_container = self.containers_selectors["AllContainers"]
twebview = False

endtime = time.time() + timeout
while(time.time() < endtime):

element = None

element = self.web_scrap(term=string, scrap_type=enum.ScrapType.MIXED,
optional_term=".tsay, .tgroupbox, wa-text-view",
main_container=self.containers_selectors["AllContainers"],
check_help=False, match_case=match_case)
optional_term=optional_term, main_container=main_container,
check_help=False, match_case=match_case, twebview=twebview)

if element:
logger().info(f"Text found! ")
Expand All @@ -5143,6 +5146,9 @@ def WaitShow(self, string, timeout=None, throw_error=True, match_case=False):
if endtime - time.time() < 1180:
time.sleep(0.5)

# Variable to search for the element with and without the twebview in each iteration of the loop.
twebview = not twebview

if not throw_error:
return False
else:
Expand Down
Loading