Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Again with regular expression
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
Code:
InjuredPerson=Browser("ClaimCenter_Br").Page("ClaimCenter_Pg").WebList("InjuredPerson_PIP").GetROProperty("selection")
If  InjuredPerson= "#8"Then
    Reporter.ReportEvent micPass,"Drop down value selected or new Injured Person is created(4)",""
    Call Logger(1,"Drop down value selected or new Injured Person is created")
    else
    Reporter.ReportEvent micFail,"Drop down value is not selected or new Injured Person is not created(4)",""
    Call Logger(2,"Drop down value is not selected or new Injured Person is not created")
End If

Number 8 is dynamic.

I tried "#[0-9]" "#[0-9]+" "#*" "#d\" "#d\+" None workd Except "#8".

I am facing same kind of problem in several places. Where only numbers get changed. Need solution badly.
Reply


Messages In This Thread
Help Again with regular expression - by jinnah - 09-12-2012, 08:15 AM
RE: Help Again with regular expression - by jinnah - 09-19-2012, 09:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,495 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,361 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,830 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,576 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,123 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 8 Guest(s)