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
How to modify object property in qtp ?
How will you find the current time of the remote machine using QTP script?
How to save your test using quicktest professional (qtp)?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
What is QTP scenario.
Hi Samrat, Thank u very much, what u said it is right.
Explain different type of event trigger option.
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.
Explain the Different types of QTP test assets and their extensions?
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..
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.
Have you used xml check point in your project? How?
How to record a qtp script ?
hou can we use vb script in qtp could u tell me breafly
Explain the new feature of UFT regarding the export of test results?