Hi, I want to retrieve the cell data in the WebTable.
For that I have defined a new test object under the browser
and have given html tag and text as the test object
properties. But while I try to identify it it says 'Object
description is not unique'. I tried adding innerhtml,
outerhtml, innertext and outertext along with the ordinal
identifiers; but no use. What more properties need to be
added to identify it?
Also I want to enable smart identification for this object
but the field is disabled in the object repository for this
object alone(In QTP tools->object identification the enable
smart identification checkbox is enabled). How do I enable
it?
Answers were Sorted based on User's Feedback
Answer / tanuj
For that 1st u defined the web table in OR then
u try this Query-
text=Browser().page().webtable().getcelldata(row,column)
in row,column u feed which cell data u want.ur cell data store in text.which r checked by u through the msgbox or orthers....
| Is This Answer Correct ? | 0 Yes | 0 No |
Now the cell data whih u r tryi ing to retreive is it
Link,Webelement,
Now if its a webelement go for the property inner text
but i think u tried this
browser("xxx").page("xxxx").webtable("xyz"),Childitem
(row,column,"Micclass",0).getroproperty("innertext")
| Is This Answer Correct ? | 2 Yes | 4 No |
Answer / dipu krishnan
Hi,
The Smart Identification can be disabled due to the
following reason:-
Open QTP
Under File Menu you can find an item called "Setting".
Click "Setting" which will display the "Test Setting" tab.
Select "Run" in the test setting tab. This will display a
checkbox "Disable Smart identification durning the run
session".
Uncheck this checkbox. This will enable smart
identification for this object.
I hope once smart identification is enabled your problem
will be solved.
| Is This Answer Correct ? | 1 Yes | 3 No |
Diff B/w Webserver and Client Server
can u write Script to do Data Driven Testing throuh Externel & internel XL Sheet
What is the differnce between action & script
What is QuickTest Automation Object Model? Where we can use AOM?
Can we directly automate testscripts accrdoing to requirements
2 Answers CitiGroup, Novartis,
please any one can explain the keyword driven framework. with gmail example.
how can i call function (which has link with excell sheet at a remote location) within another function
When to use shared and local object repository?
what is flag=0 in qtp tool.. i am strugglin to use flag function , exactly when it is used , any real time expert pls explain clearly?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
Suppose there is a link present somewhere in an excel sheet. Find the link and click on it. How to write a script using Excel application object in QTP?
diff between dim & redim ? in detailed? pls any one explain me?