Page 1 of 1

HTML5: Can not get value from DivTag was disabled

Posted: Thu Aug 13, 2015 10:16 am
by hanguyen2009
Hi Ranorex,

I could not get value of Innertext of divtag was disable as snapshot,
I saved this divtag as 'Comments' name in Repos, and tried get InnerText value

Ranorex.DivTag divComments= repo.ManualPricesInboxMarkitWorkflow.Comments;
divComments.EnsureVisible();
string inntext="";
if (divComments.Visible)
{
inntext= divComments.InnerText;
}

Please help,

Infor server:
Ranorex 5.4
IE 11
Window Server 2008 R2

Thanks a lot.

Re: HTML5: Can not get value from DivTag was disabled

Posted: Thu Aug 13, 2015 10:51 am
by odklizec
Hi,

Could you please post Ranorex Snapshot of the element in question? Exact HTML code behind the divtag would be nice too.

Re: HTML5: Can not get value from DivTag was disabled

Posted: Fri Aug 14, 2015 8:37 am
by hanguyen2009
Hi,

I have just attached snapshot file,
Please help to check

Thanks,
Ha.

Re: HTML5: Can not get value from DivTag was disabled

Posted: Fri Aug 14, 2015 9:09 am
by odklizec
Hi,

You can't obtain the InnerText from pointed disabled divtag, because there is no InnerText in this divtag ;) The text you are looking for is stored in the TextArea tag under plugin-content divtag...
InnerText_TextArea.png

Re: HTML5: Can not get value from DivTag was disabled

Posted: Fri Aug 14, 2015 9:27 am
by hanguyen2009
Thank you very much