Forum Discussion

lokithorshield's avatar
lokithorshield
Contributor
10 years ago

Extract Text from the Panel

Hi I need to extract a text value from below

<div class="dijitReset dijitMenuItem" role="option" item="1" id="uniqName_1_1_nameList_popup1">A, Phi</div>

 

The Full name of the object when I use below

[page.NativeWebObject.Find("id", "uniqName_1_1_nameList_popup1")]

 

Comes out as

Sys.Browser("chrome").Page("http://HrefLink").Panel("widget_uniqName_1_1_nameList_dropdown").Panel("uniqName_1_1_nameList_popup").Panel("uniqName_1_1_nameList_popup1")

 

How to do same. [Get the value A, Phi]

 

Thanks,

Mahesh

  • Hi!

     

    You can use the contentText property of the panel to get its plain text.

     

    Hope this helps,

    UnveN.

  • Hi!

     

    You can use the contentText property of the panel to get its plain text.

     

    Hope this helps,

    UnveN.