If you are using descriptive programming and you have two
objects with the same name, so you are identiying them by
name and index, how can you avoid errors if a third object
with the same name is added at the begining of the page?
Answers were Sorted based on User's Feedback
Answer / litan
Normally like this Scenario we are not going for
Index.Instead of Index you can use Properties like
innertext with regular expression.
lstrGetcelldata=Browser("micclass:=Browser").Page
("micclass:=Page").WebTable("html
tag:=TABLE","Index:=6").GetCellData(2,2)
lstrCellData=Browser("micclass:=Browser").Page
("micclass:=Page").WebTable("innertext:=Custom
Parameters.*").GetCellData(lintCounter,1)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sameena
Index is unique to al. obviously through index only.The
third object property is to be changed accordingly to
diffrentiate the object. such as location of the object in
the application or index value of the application or the
tab count of the object. like wise the modification are
done to the object property to show differentiate with
other object,. if iam correct reply me.
| Is This Answer Correct ? | 1 Yes | 1 No |
If we are record a same web page for 2 times.1st time it is showing 6 objects in the Object Repository and for the 2nd time it is showing like 7 Objects in the Object Repository why it is happening
i have an array CAPGEMINI .....Here i need to check whether G is there or not ..how to do that and friends i have one big doubt that is whether it is array or string ,how we come to know that and where we consider that it's array ,where we consider that it's an string because when i want to find the length i have big doubt whether we need to use len function or ubound ... ans me for this TWO Questions any one please
what r the send key commands in QTP why they r used
what is the test object?
I have a library function , with that function 100 scripts are being called. The library function is changed(something is added) . how do i update all the scripts.
give one example where you have used regular expression?
How does Parameterization and Data-Driving relate to each other in QTP?
I have to automate excel features using qtp in this i need to open instance of excel in different ways like double click on file, drag & drop options, File > open option but i know the 2 ways to open the excel instance 1 is by creating the object and another is to open the excel file in already opened instance of excel through sendkeys through qtp. But i m not geting how to open excel file through double click and drag and drop option through qtp script plz help me out anyone can thanks in advance
Tell me few important difference Between QTP and WinRunner?
1) after inserting the check point how to change the expected value that was captured while inserting the check point
qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?
After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?