Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hep to create yahoo log in function.
#1
Not Solved
Hi! I did descriptive programming to log in, To write and save in yahoo notepad and log out with input and output checkpoints.

Now I want to convert the log in code (Descriptive) as a function. I know how to associate it with the script and call. But I have some problem with converting the Descriptive code as function. here is my code.I am confused what to put in ()
-------------------------------------------------------------
Code:
Function yahooLogIn (ID, password)
ID=jinn***ml
password = "*****4f45aac28**************"

Browser("Micclass:=Browser").Page("Micclass:=page").WebEdit("html id:=username").Set ID
Browser("Micclass:=Browser").Page("Micclass:=page").WebEdit("html id:=passwd").SetSecure password
Browser("Micclass:=Browser").Page("Micclass:=page").WebButton("html id:=.save").Click
End Function
Reply
#2
Not Solved
Hope you mention() for functions. what u put in () is correct only. but you should comment below tow lines

Code:
ID=jinn***ml
password = "*****4f45aac28**************"

these are things could vary on function call, passed through parameters ID, password variables.
use below like code to call the function

Code:
yahooLogIn "jinn***ml",  "*****4f45aac28**************"


Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Grab multiple line data from log file haziqwebs 0 1,822 10-19-2016, 01:28 PM
Last Post: haziqwebs
  Calling a function in a Test Script from a function library anupam4j 3 6,180 06-26-2015, 12:31 AM
Last Post: babu123
  How to print value in QTP Log using .vbs kalyaniR 1 3,397 10-25-2013, 04:32 PM
Last Post: ssvali
  To view log files in QTP sheetal 5 16,787 10-08-2013, 02:27 PM
Last Post: Gurpreet
  Printing to a log dravilis 5 7,652 12-06-2012, 06:21 PM
Last Post: elango87

Forum Jump:


Users browsing this thread: 1 Guest(s)