This is Ajay i have few douts if anybody know pls give me
reply.
1. i have opend 2 gmails i am working with 1 gmail i want
to close other gmail by usig script.
2.i have 10 links in a page all of them have same
properties& names i want to click on 5link by using script.
3.i have one combobox in that i want to see all the
citynames in the combobox and i have to check weather
hyderabad is present or not.
4. size of objectrepository.
5.what r problems we get during writing the script.
6.is it possible to compare to excel sheets in qtp if
possible wht is the script.
7.example for lowlevelrecording
Answer Posted / manas jena
litle bit modify of answer if u ur using browser object
then creation time property should user
1. 2 gmail opened
ans
Browser("title:=.*gmail.*" "creationtime:=1" ).close
The first opened browser creation time will be 0,next
opened browser creation time is 1.
See ordinal identifier in QTP
3. ans:
you can use
Index or location property
Index work on left to right and location works top to buttom
example
Text Box 1: Text Box 2:
Text Box 3: Text Box 4:
Text Box 1: location=0
Text Box 2: location=2
Text Box 3: location=1
Text Box 4: location=3
'Text Box 1
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest","location:=0").Set "1"
'Text Box 3
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest","location:=1").Set "2"
'Text Box 2
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest","location:=2").Set "3"
'Text Box 4
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest","location:=3").Set "4"
--------------------------------------------------
Text Box 1: index=0
Text Box 2: index=1
Text Box 3: index=2
Text Box 4: index=3
'Text Box 1
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest", "index:=0").Set "1"
'Text Box 2
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest", "index:=1").Set "2"
'Text Box 3
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest", "index:=2").Set "3"
'Text Box 4
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest", "index:=3").Set "4"
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the concept of how quicktest professional (qtp) identifies object?
HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.
if our qtp vb Script may be Currepted then What we want do?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
What is the difference between run time object and test object in QTP?
unique properties of button,edit box, radio button,check box?
What is the file extension of the code file and object repository file in QTP?
How do you send email with attachment from outlook using qtp ?
give me an example where u used good judgement and logic in solving a problem
How to import a test case present in ".xls" file to TD under a Test set?
How to call a test from another test?
How to use reporter.report event in qtp ?
How QTP identify the system time that's changes every seconds?
Have you used xml check point in your project?
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?