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



how to write this script using descriptive programming? the script below is the script generated by..

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

how to write this script using descriptive programming? the script below is the script generated by..

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

how to write this script using descriptive programming? the script below is the script generated by..

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

Post New Answer

More QTP Interview Questions

Get the count of files of similar types from a folder.

0 Answers   Deloitte,


how to main tain the Old scripts in qtp?

1 Answers   IBM,


How to send the qtp results file by email (Lotus notes).

1 Answers   TCS,


what is run action?

0 Answers  


How can we close all webbrowsers which are opened in out desctop?

8 Answers  






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

8 Answers  


Does QTP provides any tools for parametarization?

3 Answers   BirlaSoft,


where the object repository is located?how to choose the object repository as shared or action object repositories?

4 Answers   Datamatics,


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

0 Answers  


what is the difference btn risks & Therads in the Test plan documentation?

0 Answers   Accenture,


What are Error handling other than Recovery scenario manager?

3 Answers  


What are the two types of repositories available, explain them?

0 Answers  


Categories