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 |
What are the key elements available in test result window?
Hi All, Can anyone provide me the license for QTP 9.5.... My Email ID: khanbro@rediffmail.com
how do u handle an object without name using QTP 9.2?
We developed 100 descriptive programms and put in running, in the midle if any descriptive program is stucked with some error? what will happend weather it will execute the remaining prg's or it will terriminate ?
How to Test the mainframe application?(tell me few basic things)
How can I check if a environment variable exist or not?
how will b the questions if we keep one QTP project in CV.please tell me iam attending an interview.
What is the difference between functions and actions in QTP?
what is the structure for the data driven framework
Can anyone please tell me how to select next 5th business date from calendar using QTP/UFT ?
1 Answers Cigniti Technologies,
Can we create user defined functions in qtp?
Is it mandatory to know abt regular expression in descriptive programming