how to write this script using descriptive programming?
the script below is the script generated by QTP plz write
the script using descriptive programming? plzzzzzzzz do
answer thanku
Browser("Welcome: Mercury Tours").Page("orkut -
login").WebEdit("Email").Set "test123"
Browser("Welcome: Mercury Tours").Page("orkut -
login").WebEdit
("Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32ebcbf4"
Browser("Welcome: Mercury Tours").Page("orkut -
login").WebButton("Sign in").Click
Browser("Welcome: Mercury Tours").Page("orkut - home").Link
("Logout").Click
Browser("Welcome: Mercury Tours").Page("orkut - login").Sync
Browser("Welcome: Mercury Tours").Close
Answers were Sorted based on User's Feedback
Answer / siri
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").WebEdit
("Name:=Email").Set "test123"
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").WebEdit
("Name:=Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32eb
cbf4"
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").WebButton("Name:=Sign in").Click
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").Link ("innertext:=Logout").Click
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").Sync
Browser("Title:=Welcome: Mercury Tours").Close
I hope this helps you.
Regards,
Siri
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / mageshkumar
All above answers are 100% correct...
just trying to optimizing the code..
With Browser("Welcome: Mercury Tours").Page("orkut -
login")
.WebEdit("Email").Set "test123"
.WebEdit
("Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32ebcbf4"
.WebButton("Sign in").Click
.Click
.Sync
with End
Browser("Welcome: Mercury Tours").Close
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / snemaa
above one is in correct .
same thing can also be written as:
set mypage = Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login")
mypage.webEdit("Name :=Email").Set "test123"
mypage.webedit("Name :=Passwd").Set "XXXXXXXXXXXXXXXXXX"
mypage.webbutton("Name :=Sign in").Click
..........
Is This Answer Correct ? | 0 Yes | 1 No |
Get the count of files of similar types from a folder.
how to main tain the Old scripts in qtp?
How to send the qtp results file by email (Lotus notes).
what is run action?
How can we close all webbrowsers which are opened in out desctop?
hi guys this is Keerthi, I am searching for job,so I want to know which questions are intervier asking on QTP&MANUAL&QUALITY CENTER,can u send Any one questions&Answers to my id:chinna.ammi@yahoo.co.in
Does QTP provides any tools for parametarization?
where the object repository is located?how to choose the object repository as shared or action object repositories?
write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script
what is the difference btn risks & Therads in the Test plan documentation?
What are Error handling other than Recovery scenario manager?
What are the two types of repositories available, explain them?