If 2 gmail browsers are opened in our system, how to enter
the mail id and password into second browser by using
discriptive program?

Answers were Sorted based on User's Feedback



If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / manas

hi samrat..

i think the creation time should be 1 not 2.
why because creation Time starts from 0. (Please refer QTP
user manual )

Browser("creationtime:=1","name:=Gmail").Page
("title:=Gmail").WebEdit("name:=Login").set "hihi"

pls rectify me if i'm wrong.

Is This Answer Correct ?    14 Yes 0 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / samrat

user creationtime
Browser("creationtime:=2","name:=Gmail").Page
("title:=Gmail").WebEdit("name:=Login").set "hihi"

Is This Answer Correct ?    7 Yes 1 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / manjukypa

Hi Samrat,

Pls let me know how to identify the creation time in gmail
web browser?Pls let me know?

Is This Answer Correct ?    1 Yes 1 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / niranjan chandramouli reddy

As the browser with same name is opened later it will be
visible at the top.Hence the index of that browser forms
0.As per the above explanation use the following code:



Browser("index:=0","name:=Gmail").Page
("title:=Gmail").WebEdit("name:=Login").set "hihi"

Is This Answer Correct ?    1 Yes 2 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / nag

your qustn is wrong,your question shuld be like this 2 gmail windows in 1 browser
we can use creation time and micclass hare creation time starts with 0 so for 2nd windoe creation time will be 1
with Browser("creation:=o").page("micclass:=0")
.webedit("name:=login").set "abc"
.webedit("name:=passwd").set "1234"
.webbutton("name:=sign in").click
end with

Is This Answer Correct ?    0 Yes 2 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / samrat

If the object is not unique...QTP will automatically give
the index of the object if using OR...
Else
Use object collecion of a particular type and the u will
get the index... u cant use getroproperty for index..
try to add that object into OR and u will get to know the
index and use that index prop in ur desc prog ..

correct me if iam wrong...

Is This Answer Correct ?    0 Yes 3 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / nag

sorry der is mistake in my above code
your qustn is wrong,your question shuld be like this 2 gmail windows in 1 browser
we can use creation time and micclass hare creation time starts with 0 so for 2nd windoe creation time will be 1
with Browser("creation:=o").page("micclass:=page")
.webedit("name:=login").set "abc"
.webedit("name:=passwd").set "1234"
.webbutton("name:=sign in").click
end with

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

How to face prjoect manager round what type of questions they will Ask ? (Chandana)

1 Answers   Call Centre, Convergys, IBM,


Can any suggest me what is exposure testing?

0 Answers   Value Labs,


What is the basic concept of qtp?

0 Answers  


what is the difference between function and subroutine ....here every one knows theoretically...here my QUESTION IS WHAT IS THE MEANING OF FUNCTION CAN RETURN A VALUE AND SUB CAN NOT RETURN A VALUE .....WHAT DOE'S IT MEAN FUNCTION CAN RETURN A VALUE HOW FUNCTION CAN AND SUB CAN'T ....GIVE A EXAMPLE FOR BOTH ....HOW IT CAN AND CAN NOT...HELP ANDY ONE....

1 Answers   HCL,


how to click the link in webpage by using QTP Script????????

3 Answers  






Have you worked with QC?

1 Answers   Satyam,


WHAT ARE THE DISADVANTAGES OF SHARED REPOSITORY?

9 Answers   BirlaSoft,


CAN WE USE 'BVA' AND 'ECP' IN AUTOMATION?

3 Answers   Polaris,


i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of customer in the test object fields and after saving the window name is automatically changing with the customer name . so how to identify that window after saving. (i am using descriptive programming.)

5 Answers   Syntel,


Explain the types of object repository?

0 Answers  


where is the bitmap checkpoint be saved

1 Answers  


When you open QTP, how many sheets you can see?

0 Answers   Wells Fargo,


Categories