Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facing Problem while writing Script for the Login Functionality.
#4
Solved: 11 Years, 3 Months, 2 Weeks ago
Code:
InvokeApplication "C:\Program Files\Internet Explorer\IEXPLORE.EXE gmail.com"
For i=1 to 3

Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("name:=Email").Set "sarvesh"
Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("name:=Passwd").Set "111111"

Browser("Gmail: Email from Google").Page("Gmail: Email from Google").webButton("name:=Sign in").Click
x=Browser("Gmail: Email from Google").Page("Gmail: Email from Google").webButton("name:=Sign in").Exist
If  x=0 Then
Reporter.ReportEvent 0,r1,Success
Exit for
End if
If i=3 Then
Reporter.ReportEvent 1,r1,Success
End If
Next

From:sarvesh.qtp@gmail.com

Make sure that there is no captcha image in your application
Reply


Messages In This Thread
RE: Facing Problem while writing Script for the Login Functionality. - by sarveshqtp - 06-19-2009, 04:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Facing Issue with UFT 12.02 Gowrishankar2585 0 1,194 04-15-2019, 01:20 PM
Last Post: Gowrishankar2585
  Facing a problem while identifying Angular JS objects in a web page vangasantosh 0 1,222 12-20-2017, 01:26 PM
Last Post: vangasantosh
  Execution without desktop login, only CLI Beckhell 0 2,721 09-01-2011, 01:21 PM
Last Post: Beckhell
  How to Manage 50 Test Cases of Login Page Ronit 1 8,862 08-10-2010, 09:37 AM
Last Post: venkatbatchu
  TP 10 has problem in switching from one script to another using AutomationModel mrmukeshjain 0 1,496 05-28-2009, 04:42 PM
Last Post: mrmukeshjain

Forum Jump:


Users browsing this thread: 2 Guest(s)