Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How does QTP identify an object?

975


If object is not recognized by qtp but the object is standard object what is your approach?

956


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1949


In Remote acess server how u run a test?

1661


How to find Operating system information using QTP script?

949


How many types of parameters are there?

937


What are the Test design techniques you uses in ur project?

1903


How to check bitmap output value?

1112


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

2203


Whether qtp 9.0 supports Test director8.0

2524


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1864


can any one say that where we can download the QTP trail version ??????????

1703


what is run-time data?

2137


What is the Difference between test object and run time object?

1111


How qtp recognizes the object?

1102