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 |
we have 10 more actions in our test and we are using exit action command to come out from the action if any error s occured.In action 1 if any error occurs control is moving to second action but if we get error in second action exitaction is throwing general run error. Please give a idea to overcome .
How many ways we can parameterize data in QTP?
How do you learn the object in QTP?
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
With out using the task manager,how to close the application using vbscript and what is the statement?
Can anyone explain about Keyword driven framework in detail and how to use it in case of any project
Which environments does qtp support?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
what is Property......End Property loop? how to write sript for it in QTP
Write a user defined function to count the no. of buttons existed in a webpage ? i dont want to use descriptive.create ()
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
how you test broken link using the automated tool QTP ?