How to identify the objects using descriptive programming
when the object property values are same, i mean in a page
10 objects are there i want to click the 6th object but all
the object property values are same? using descriptive
programming
Answer Posted / abi
If u r going to click on the 6th object, then give the
index value as 5 in the descriptive programming. For
example, if u r trying to clcik on an OK button where in
the same page, u have 10 OK buttons, then
Browser("").Page("").webbutton
("name:=OK","Class:=button","htmltag:=sumbit","index:=
5").click
this will click on the 6th OK button of the page.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Limitations in QTP?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
What is the use of running the scripts in Hidden-mode in UFT?
Explain how Does Run time data (Parameterization) is handled in QTP?
Explain hybrid framework with advantages and disadvantages?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
How to replay a script in qtp?
how do u plan test automation?
Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?
What phases are involved in testing an application in qtp?
What is recovery scenario manager? When you go for recovery scenario manager?
Why bpt?
HOw to add the recovery file at runtime to the test file .
How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?