Skip to content

Commit

Permalink
Merge pull request #1646 from totvs/compatibilize/release/1.20.30rc2
Browse files Browse the repository at this point in the history
Release/v1.20.30rc2 compatibilized
  • Loading branch information
renanllisboa authored Jan 16, 2025
2 parents 5bb8d3a + 9abd3b0 commit 2f0f455
Show file tree
Hide file tree
Showing 2 changed files with 177 additions and 49 deletions.
13 changes: 7 additions & 6 deletions tir/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ def WaitFieldValue(self, field, expected_value):
"""
self.__webapp.WaitFieldValue(field, expected_value)

def WaitHide(self, string, timeout=None, throw_error = True):
def WaitHide(self, string, timeout=None, throw_error=True, match_case=False):
"""
Search string that was sent and wait hide the elements.
Expand All @@ -920,9 +920,10 @@ def WaitHide(self, string, timeout=None, throw_error = True):
>>> # Calling the method:
>>> oHelper.WaitHide("Processing")
"""
self.__webapp.WaitHide(string, timeout, throw_error=True)
self.__webapp.WaitHide(string, timeout, throw_error, match_case)

def WaitProcessing(self, string):

def WaitProcessing(self, string, match_case=False):
"""
Uses WaitShow and WaitHide to Wait a Processing screen
Expand All @@ -934,9 +935,9 @@ def WaitProcessing(self, string):
>>> # Calling the method:
>>> oHelper.WaitProcessing("Processing")
"""
self.__webapp.WaitProcessing(string)
self.__webapp.WaitProcessing(string, match_case)

def WaitShow(self, string, timeout=None, throw_error = True):
def WaitShow(self, string, timeout=None, throw_error=True, match_case=False):
"""
Search string that was sent and wait show the elements.
Expand All @@ -950,7 +951,7 @@ def WaitShow(self, string, timeout=None, throw_error = True):
>>> # Calling the method:
>>> oHelper.WaitShow("Processing")
"""
self.__webapp.WaitShow(string, timeout, throw_error=True)
self.__webapp.WaitShow(string, timeout, throw_error, match_case)

def IfExists(self, string='', timeout=5):
"""
Expand Down
Loading

0 comments on commit 2f0f455

Please sign in to comment.