Micro Focus QTP (UFT) Forums
webelement - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: webelement (/Thread-webelement--6277)



webelement - rjkmr.aiht - 04-24-2012

hi all

please any one help me for this

how to get the text of the particular web element


PFA ill descriped


RE: webelement - sshukla12 - 04-24-2012

Hi,

Use GetRoProperty.

Regards,
Sankalp


RE: webelement - rjkmr.aiht - 04-25-2012

sorry for wrong update
please give idea for this webelement

please find the attachment here


RE: webelement - kotaramamohana - 04-25-2012

1) First count Number of Tables are available in A page.
2) Identify 'Other Information' Table index
3) Get the corresponding cell value with the help of Row and Col number in 'Other Information' table

Ex: obj.getcelldata(3,2) '3rd row and 2' column



RE: webelement - rjkmr.aiht - 04-26-2012

thank u i got the out put

realy a good stuff


Code:
Set oWebtable = Description.Create()
oWebtable("micclass").value = "Webtable"
oWebtable("column name").value = "Type;Trade Show;Media Type;Email"

Set oChildObjects = Browser("title:=Campaign Framework:.*").Page("title:=Campaign Framework:.*").webtable("innertext:=TypeTrade ShowMedia TypeEmailPartneryesCampaign SeriesBig DataSFDC Campaign.*","html tag:=table")
a=ochildobjects.GetROProperty("rows")
b=ochildobjects.GetROProperty("cols")
c=ochildobjects.GetCellData(3,2)
msgbox c