Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue related to reusable Action
#3
Solved: 11 Years, 4 Months ago
Thanks for reply..

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
}
Then 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
Reply


Messages In This Thread
Issue related to reusable Action - by galstar - 08-10-2010, 11:54 AM
RE: Issue related to reusable Action - by galstar - 08-10-2010, 06:06 PM
RE: Issue related to reusable Action - by galstar - 08-11-2010, 10:37 AM
RE: Issue related to reusable Action - by galstar - 08-16-2010, 03:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Action Parameterization Issue Slothman 1 1,970 10-31-2020, 01:05 PM
Last Post: Ankur
  QTP system related issue Bharathi Kanagarajan 1 2,095 09-12-2015, 11:28 PM
Last Post: ADITI1992
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,293 05-31-2014, 12:00 PM
Last Post: excellentpawan123
  Non-reusable action - doubt srsaritha 1 3,509 10-16-2012, 05:04 PM
Last Post: richa07
  how to call reusable actions by passing parameters.? Arun091 0 3,880 08-16-2012, 07:28 PM
Last Post: Arun091

Forum Jump:


Users browsing this thread: 1 Guest(s)