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


Please Help Members By Posting Answers For Below Questions

Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

837


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

2070


what is the structure for the data driven framework

1699


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1987


can test automation improve test effectiveness?

1721


This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?

1697


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1786


What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1928


How to open a new test using quicktest professional (qtp)?

752


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1670


Is the qtp course will help to create a virtual object?

1715


Can the user toggle between using Local OR and shared OR for the same action?

745


Explain the concept of how quicktest professional (qtp) identifies object?

774


iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

1842


when u script reveiwing in which area u more concentrates?

1647