In web page there is five OK buttons available, while
recording i click on 3rd OK button, How QTP identify the 3rd
OK button while running script? Is qtp identify 3rd ok button?
Answers were Sorted based on User's Feedback
Answer / kiran
QTP will recognise the ok button using index property
Is This Answer Correct ? | 20 Yes | 0 No |
Answer / deepak kumar
QTP identify the 3rd button Using Object Property.We can see Object Property using Object Spy .Each object in QTP consist number of properties.
Is This Answer Correct ? | 6 Yes | 5 No |
Answer / tvs ramakrishna chowdary
This is again TVS Ramakrishna Chowdary...ordinal dentifier
property(Creation Time)will be available to only Browser
object....not for other objects.....so but by mistache i
posted creaton time for ok button...
Sorry for posting wrong answer...
U use ordinal identifiers either index nos or location...
both are starts from 0,1,2.......
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / tvs ramakrishna chowdary
ur having answer in ur question only..ur telling that 3rd
ok button this 3rd is nuthing but index of that button..
but here small change index nos atart form 0,1,2.....and so
on
ex:browse(browser).page(page).webbutton
("name:=ok",index:=2").click
than it understoods that third ok button
or by Creation time:
----------------------------
ex:browser(browser).page(page).webbutton
("name:=ok","creationtime:=2")
than our qtp understoods that 3rd ok button
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / sarojini
use index proeprty to close the 3rd ok button.
use for loop condition like
For i= 0 to 10
okbuttonvalue=Broswer("").page("").button
("index:="&i).getroprepoerty("value")
Next
by using this for loop condition you can get index value
from above logic take index value put in the line close the
third button
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vikrant
Hi
Don't think in developers way. while selecting a button u
need not know the button functionality. u can simply
identify the properties by object spy.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vijayalaxmi
By using the index identification and the oridinal
identification...
Is This Answer Correct ? | 0 Yes | 0 No |
I came across Good question ..... Write a script to only download pdf's if there are 20 links on a page. Kindly reply these type of questions are pretty challenging..
what is main diff of qtp8.2 and qtp9.0?
what do you call the window testdirector-testlab?
Hi, I am new into the field of testing and I need to know how can I begin automating the testing of Mainframe applications using QTP. Can anyone help me?
what is profile tool?
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
if i want to check text on the status bar how to test is i need the report also after getting the result weather it is matched or not?
How to do call a output parameter from one action to another action??/
What are the trigger events in qtp?
what is exacltly TIERS ?
How we know the qtp has used the smart identification process for identification of the object.
Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?