Hi Swethaaaaaaa,
This will work
selected item should be verified as below
Code:
If Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").Select ("Email") = True Then
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtE").Set "swetha.b@osmosys.asia"
Elseif Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").Select ("Phone") = True Then
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set "(987)789-4563"
End if
This will work
selected item should be verified as below
Code:
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").GetROProperty("Selection")="Email"[hr]
Here is the code
If Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").GetROProperty("Selection")="Email"Then
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtE").Set "swetha.b@osmosys.asia"
Elseif Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").GetROProperty("Selection")="Phone" Then
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set "(987)789-4563"
End if