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
What are the main differences of qtp and win runner?
How to find the difference between 2 dates in qtp?
How to create runtime property for an object?
What is business process testing(bpt) in qtp?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
What are the major/ important methods, functions in QTP we use realtime testing
How many types of object repository in qtp?
How to export quicktest professional results to an .xls file?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
What is the basic concept of quicktest professional?
What is the Difference between test object and run time object?
when to start the automation?
Is it possible to merge two object repository files in qtp?
How many types of recording modes in qtp? Describe each type with an example where we use them?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?