It seems Interview questions from Ordain Solutions are
almost BASIC LEVEL-Easy.
I am asking one tough question..(I think.. May be easy for
some people)
In recorded script the - WebLink("cityinfo")
In reality, the WebLink name is "generalinfo"
How you can write function to click that changed web link.
NOTE: This functin should work with any Dynamic text link.
I will post the answer later.

Answer Posted / supratik

We can write a funtion to get the value of all the links
run time. compare with the one needed and click on it

Set linka= description.Create()
linka("micclass").value="link"
set b=browser().Page().ChildObjects(linka)
z=te.count
For i = 1 to z-1
If b(0).getroproperty("name")="LINK NEEDED" then
b(0).click
end if

Next

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

1931


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3273


how interviews will be on QTP?

1525


Do you know how to connect database? Can you tell me the procedures?

551


What is synchronization? What are the ways you can synchronize?

653






What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1506


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1353


Why is action split used by qtp?

561


how will you check how many members visited the website www.infosys.com?

1484


Where can I find and view run-time data table?

531


How do you convert manual test cases to automated test cases?

583


How you are developing the script? Using record and play back or manual?

633


banking domain description for software tester for interview

3469


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1377


Discuss the QTP Environment?

631