Hi Keerthi U can use childitem in that case .

please find following script .

systemutil.Run "C:Program FilesInternet Exploreriexplore.exe"," 
http://www.december.com/html/demo/table.html "
Wait(5)
Dim objtable
Dim weblist
Dim count
'Object of Webtable
set objtable=Browser("HTML Advanced Table Example").Page("HTML Advanced 
Table Example").WebTable("An inner table showing")
'Set object of Weblist
set weblist=objtable.ChildItem(6,2,"WebList",0)
'Select Value from weblist which is inside Table
weblist.Select "Vanilla"
wait(3)
'Check selected item is Vanilla
count=weblist.GetRoProperty("value")
msgbox count

Also ,Using Xpath U can make out exact location of you Editbox,like for 
above example xpath of weblist is 
:/html/body/table/tbody/tr/td[2]/div/table/tbody/tr/td/table/tbody/tr[6]/td[2],so
 
we can derive that our object is located in 6th row and 2nd column ,so u 
can perfrom other webtable operations as well to get object. 

Thanks
Priyanka

On Thursday, July 4, 2013 2:54:30 PM UTC+5:30, Keerthi Neelamegam wrote:
>
> Our application is developed in sharepoint and we are using descriptive 
> programming in 
>
> our framework. When we spy a object in our application, each object is 
> under long webtable
>
> hierarchy like,
>
> Browser--> page--> Webtable --> webtable---> webtable ---> webedit
>
>  
>
> We used hybrid framework and we are getting the test data from excel sheet 
> and passing 
>
> it to the function. for weebdit the function will look like,
>
>  
>
> Function webedit(browsername,pagename,objectdescription,method,value)
>
> Browser(browsername).page(pagename).webedit(objectdescription)
>
> ......
>
> End function
>
>  
>
> from the test script we Pass browsername, pagename, objectdescription,
>
> method,value as parameters to the function
>
>  
>
> In our application,For entering a value in edit box,i should write like
>
>  
>
> Browser().page().webtable().webtable().webtable().webedit().set 1234
>
>  
>
> Likewise many objects in the application has very long webtable hierarchy.
>
>  
>
> How to handle this type of long webtable hierarchy?
>
>  
>
> your help if highly appreciated
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to