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
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 |
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 |
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 |
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 |
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 |
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 |
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 |
How can we log a defect in Testdirector from Q.T.P ?
Explain about reusable actions?
How can i check items sorted or not in a weblist ? Give me the script for this...
What is error handled other than recovery scenario manager?
User defined function in QTP
What are metrics and matrix?
In an interview what r the questions asked in qtp related project? pls any answer this question?
What is test fusion report?
What is the BPT(bussiness process testing ).and what is the main difference between BPT and QTP
3 Answers EDS, GL Noble Denton, IIST,
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
How to differentiate the webedit field like user name and password? Please tell any other best answer is ther
in order to start automation testing what we should require (entry level to automation testing)