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 / satish j

You can use regular expression to handle this.
so if the value of the name changes at run time it hardly
matters for QTP ,but if there are multiple links on apage
which typically is the case using only RE will not work as
object identification will be an issue. so along with this
provide assistive properties like html - tag, or alt
property,whcih are unique to the object so if recognition
becomes a problem it can be handled.

you can use the description object.
set weblinkrec = description.create
weblinkrec("name").value = ".*"
weblinkrec("htmltag").value = "xyz"
.....
and then use
Weblink(weblinkrec).click.
Note:

But always use smart identification where ever it is needed
as it slows down the execution of the script, typically when
there are same objects having conflicting properties.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of checkpoints?

1054


If the objects hierarchy is changing from build to build, then how you will handle that condition?

1054


write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script

1817


How to test background color and dynamic images during run time can you put the check point for moving objects?

1934


How did you use regular expressions in QTP and also in WR?

2648


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1830


how do i know how to use tools

2004


Can we run test with out adding object in object repository? How it is possible?

1078


Give me some real time point of way where exactly we can conduct audits?

1910


how to idetfy which test cases are automated?who will deside that plz tell me

2024


How does quicktest professional identifies the object in the application?

995


How often were they executed?

2465


How to use setroproperty?

1025


How does QTP identify an object?

1055


What is the difference between call to existing action and copy of an action?

1101