Thanks for reply..
I did the same..
I have created a global functionThen i passsed the argument while calling function in the script from datatable...
for that i read the value of username and passwd from datasheet.
and call the function..
i called as login(username,password)...
i copied all the login scripts to function..and set username and password as arguments..
but still login is not working..
May b i am doing wrong approach...would you plz help me to resolve it...
Thank u so much....
Thanks
I did the same..
I have created a global function
Code:
login(byval username,byval passwd)
{
Browser("..").Page("..").WebEdit("ctl00$uxMNJDefaultContentPlace").Click
Browser("..").Page("..").WebEdit("ctl00$uxMNJDefaultContentPlace").Set username
Browser("..").Page("..").WebEdit("ctl00$uxMNJDefaultContentPlace_2").Click
Browser("..").Page("..").WebEdit("ctl00$uxMNJDefaultContentPlace_2").Set Password
Browser("..").Page("..").Link("Sign In").Click
}
for that i read the value of username and passwd from datasheet.
and call the function..
i called as login(username,password)...
i copied all the login scripts to function..and set username and password as arguments..
but still login is not working..
May b i am doing wrong approach...would you plz help me to resolve it...
Thank u so much....
Thanks