Browse Source

ForceTextIF-Feature

bernhardbuhl 3 years ago
parent
commit
33f5600a45
1 changed files with 3 additions and 0 deletions
  1. 3 0
      baangt/TestSteps/TestStepMaster.py

+ 3 - 0
baangt/TestSteps/TestStepMaster.py

@@ -242,6 +242,9 @@ class TestStepMaster:
                                                    optional=lOptional)
         elif lActivity == "FORCETEXT":
             self.browserSession.findByAndForceText(xpath=xpath, css=css, id=id, value=lValue, timeout=lTimeout)
+        elif lActivity == "FORCETEXTIF":
+            if lValue:
+                self.browserSession.findByAndForceText(xpath=xpath, css=css, id=id, value=lValue, timeout=lTimeout)
         elif lActivity == "SETANCHOR":
             if not lLocator:
                 self.anchor = None