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 / ashish wadhwa

Suppose the Browser name is "A" and the Page name is "B"
and say we have to pass any object whose name has been
changed. So, this object can be used as an argument in the
application along with the mandatory property "html tag".
Here as an example say the object name is "C". Note, this
object should be added in the object repository with its
name property as ".*" So, the function will be
Function clickItem(itemName,HTMLTag)
Browser("A").Page("B").WebElement("C").SetToProperty
("name"), itemName
Browser("A").Page("B").WebElement("C").SetToProperty("html
tag"), HTMLTag
Browser("A").Page("B").WebElement("C").Click
End Function

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to modify object property in qtp ?

555


How will you find the current time of the remote machine using QTP script?

587


How to save your test using quicktest professional (qtp)?

585


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

590


What is QTP scenario.

1724






Hi Samrat, Thank u very much, what u said it is right.

1340


Explain different type of event trigger option.

533


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1597


Explain the Different types of QTP test assets and their extensions?

601


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..

1277


I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.

1505


Have you used xml check point in your project? How?

540


How to record a qtp script ?

546


hou can we use vb script in qtp could u tell me breafly

1734


Explain the new feature of UFT regarding the export of test results?

573