Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use Regular Expression in Wait property
#1
Not Solved
Hi,

I need to know can we use regular expression in wait property.

I am using following line to wait for a message box with message "Pass'.
Code:
Dialog("Main").Static("Execution").WaitProperty "text","Pass"


Now, the message box to which i am applying this, may have "Pass","Fail",or "Abort".

Can we use regular expression in wait property so that any text will work for wait property.


Regards:
TurtleRock
Reply
#2
Not Solved
You can use regular expression for this one like [A-Za-z0-9]. But i think this will not be the actual checking.
Reply
#3
Not Solved
Well As par my knowledge for your scenario ,'Regular Expression' will not work. Mostly 'Regular Expressions' works with object properties but not with Constant values.
Reply
#4
Not Solved
Hi Turtle,
As you were saying that u would be waiting for the message box with message pass.

Solution: For this scenario you no need to use any regular expression over here.
You could go with either Do Until or Do While

If you are sure that you are going to get message box with message Pass then you could apply "Do Until"

If you are not sure about the message which you get then you could go with "Do While"

Please let me know for further clarification.


Venkat.Batchu
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Please help me with Regular Expression nessa2018 2 1,614 09-25-2018, 03:15 PM
Last Post: Ankur
  Regular Expression Suma Parimal 3 2,427 01-17-2014, 03:18 PM
Last Post: basanth27
  help with wait property function kp_usa 3 4,347 12-20-2012, 10:49 PM
Last Post: kp_usa
  wait QAVA 1 3,063 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 4,060 06-22-2012, 10:38 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 2 Guest(s)