09-08-2011, 08:24 PM
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
after fetching the value u can compare it
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
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
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