04-27-2012, 11:37 AM
(This post was last modified: 04-27-2012, 11:38 AM by rjkmr.aiht.)
The thing is im using 3 different objects 2 are from same page ane 1 element from differtnt page this is my script
i need a perfect regular expression for salesforcampnew ,campid,salesforce,
all the three pages tiltle are looking similar please help out to get perfect regular expression for it
the regular expression which im using is not working fine
i need a perfect regular expression for salesforcampnew ,campid,salesforce,
all the three pages tiltle are looking similar please help out to get perfect regular expression for it
Code:
Set salesforcecampnew=browser("title:=Campaign Edit: New Campaign Framework ~ salesforce.com - Unlimited Edition - Windows Internet Explorer").page("title:=Campaign Edit: New Campaign Framework ~ salesforce.com - Unlimited Edition")
Set campid = Browser("title:=Campaign Framework:.*").Page("title:=Campaign Framework:.*").webtable("innertext:=Type.*Media Type.*Campaign Series.*","html tag:=table")
Set salesforceerror=browser("title:=Campaign Edit:.*").page("title:=Campaign Edit:.*").webelement("innertext:=Error: Invalid Data. Review all error.*","html tag:=DIV","outertext:=Error: Invalid Data.*")
the regular expression which im using is not working fine