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

I have one question, why do u want to use a regular expression for the shipment field whne u know there are only two possible values - FREE/$5.95.

My suggestion to u would be that u better fetch the Shipment value using GetRoProperty and then use the code as below with some modification

Code:
strShipmetCharge=Browser().Page().WebElement("<ObjectName>").getRoProperty("text")

after fetching the value u can compare it
Code:
if strShipmetCharge="FREE" Then
   Print "Shipmnet is Free."
Else
  Print "U will be charged for the shipment."
End IF

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If this doesn't serve ur purpose, do let me know i will provide u the regular expression for ur requirement.
One request be very clear abt ur question-- like what u want to do, on which field and why? This would of much help for the viewers and u will get proper response.

Regards,
Ankesh
Reply


Messages In This Thread
Regular Expression - by Himanshu2585 - 09-08-2011, 06:05 PM
RE: Regular Expression - by Ankesh - 09-08-2011, 08:24 PM
RE: Regular Expression - by Himanshu2585 - 09-13-2011, 04:37 PM
RE: Regular Expression - by supputuri - 09-08-2011, 08:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Please help me with Regular Expression nessa2018 2 1,554 09-25-2018, 03:15 PM
Last Post: Ankur
  Regular Expression Suma Parimal 3 2,405 01-17-2014, 03:18 PM
Last Post: basanth27
  regular expression rjkmr.aiht 0 1,778 05-07-2012, 11:34 AM
Last Post: rjkmr.aiht
  regular expression rjkmr.aiht 3 3,151 04-25-2012, 06:09 PM
Last Post: sshukla12
  Regular expression for time validation Pallavi 0 2,517 03-08-2012, 11:57 AM
Last Post: Pallavi

Forum Jump:


Users browsing this thread: 1 Guest(s)