12-04-2009, 04:09 PM
(This post was last modified: 12-04-2009, 04:13 PM by MahalakshmiDevi.)
Code:
var= Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").GetROProoerty("Selection")
Select Case "var"
Case ""
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtE").Set "swetha.b@osmosys.asia"
else if (var=Phone)
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set Set "(987)789-4563"
else if (var=FAX)
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtF").Set Set "(987)789-4563"[hr]
u can also switch statement tocover the above scenario :
Code:
var= Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").GetROProoerty("Selection")
Select Case var
Case "Email"
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtE").Set "swetha.b@osmosys.asia"
case "Phone"
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set Set "(987)789-4563"
case "FAX"
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtF").Set " Set "(987)789-4563"
End Select