Skip to content

Commit

Permalink
fix endtime
Browse files Browse the repository at this point in the history
  • Loading branch information
renanllisboa committed Dec 13, 2023
1 parent 421fc5d commit c86b2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tir/technologies/webapp_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -4272,7 +4272,7 @@ def SetButton(self, button, sub_item="", position=1, check_error=True):

if button.lower().strip() == self.language.other_actions.lower().strip():
endtime = time.time() + self.config.time_out
while endtime < time.time() and not self.is_next_element_displayed(term='wa-menu-popup'):
while time.time() < endtime and not self.is_next_element_displayed(term='wa-menu-popup'):
logger().debug(f"Clicking on: '{self.language.other_actions}'")
self.send_action(action=self.click, element=lambda: soup_element)
self.wait_blocker()
Expand Down

0 comments on commit c86b2a0

Please sign in to comment.