Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Again with regular expression
#9
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Finally I could make it work Thanks buddy!
Code:
SelectionItem=Browser("").Page("").WebList("").GetROProperty("selection")

Set RegEx = CreateObject("VBScript.RegExp")
RegEx.Pattern = "#[0-50]+"
blnResult=RegEx.Test(SelectionItem)

If blnResult=True Then
Reporter.ReportEvent micPass,"Value selected from <ComplainingParty>",""
    Call Logger(1,"Value selected from <Allegations>")
    else
    Reporter.ReportEvent micFail,"Value not selected from <ComplainingParty>",""
    Call Logger(2,"Value not selected from <Allegations>")
End If
Set RegEx=Nothing


Thank you very very very much
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-26-2012, 11:42 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: 6 Guest(s)