Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need help --- for clicking on function its showing error message
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Code:
Function Login(URL,UserName,Password)
SystemUtil.Run "iexplore.exe"
Browser("        l").Navigate URL
Browser( ).sync
Browser( ).Page ( ).webedit(  ).set UserName
Browser( ).Page ( ).webedit(  ).set UserName
ClickBtn (“Save”)
End Function
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

couple of questions.

1. What is the error message?
2. think line 6 takes argument as Password?
3. which line do you get the error?
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
chk the function ClickBtn (“Save”)?? Are you trying to use ClickBtn as a function?
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Please provide the complete code including the functions also.

Regards,
Sankalp
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Code:
Function Login(URL ,UserName,Password)
  SystemUtil.Run "iexplore.exe"
  Browser("salesforce").Navigate URL
  Browser("salesforce").sync
  Browser("salesforce" ).Page ("salesforce" ).webedit ("txtusername").set txtusername
  Browser("salesforce" ).Page ("salesforce" ).webedit( "txtpw" ).set txtpw
   Browser("salesforce").Page("salesforce").WebButton("btnlogin").Click
End Function...

I got the solution...thanks for sharing your views
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to select from a dropdown list showing as an webelement? smukherjee 4 8,286 05-07-2016, 03:37 PM
Last Post: vinod123
  Error while working with Function in QTP script mansis 5 5,517 11-20-2012, 04:44 PM
Last Post: hiregoudar
  Is there any similar function like list_activate_item (WR function) in QTP ranjitavemuri 1 3,046 06-18-2008, 03:09 AM
Last Post: niranjan

Forum Jump:


Users browsing this thread: 1 Guest(s)