Hello Reddy Prasad,

The word file you have attached shows the correct behavior only. There is
nothing wrong with that. In layman terms, objects like page, frame etc are
container objects which 'contain' other objects. But a webtable object is
not a container object. That is, the webtable object doesn't contain the
objects, it just provides a proper layout for the objects to be displayed
in a specific fashion.
*
Because of this... you usually use Browser("").Page("").WebEdit("") etc..
but you dont use Browser("").Page("").Webtable("").WebEdit("")...*

So suppose you have a webtable and a textbox inside the webtable. When you
add both these to the object repository, both of them will add under the
page object which means that both of them are at the same level (ie
webtable doesnt contain the webedit)

*Example:* Refer the attached word doc where you have 2 web buttons in 1st
row, 3rd column. Now suppose you want to click on the 1st button. This can
be done by -

*Browser("").Page("").WebTable("").ChildItem(1, 3, "WebButton", 0).Click*
where 1 -> Row number, 3 -> Coulmn number, WebButton -> Type of object, 0
-> Index of object (index starts with 0. since we wanted to click the 1st
button, we specify the index as 0. If we want to click on the 2nd button,
we use index as 1 in place of 0)


*
Cheers,
 a n i s h

[QTP 
Tutorial]<http://www.automationrepository.com/tutorials-for-qtp-beginners/>|
[VBScript
Tutorial]<http://www.automationrepository.com/category/qtp-and-vbscript-tutorials/>|
[QTP
Blogs] <http://www.automationrepository.com/qtp-blogs/>

**
[** Subscribe to Get New Posts in your Inbox
**]<http://feedburner.google.com/fb/a/mailverify?uri=automationrepository/feeds>
*
-- 
Regards,
Anish Pillai
My QTP Blog <http://automationrepository.blogspot.com>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Attachment: Webtable.docx
Description: application/vnd.openxmlformats-officedocument.wordprocessingml.document

Reply via email to