HTML5: Can not get value from DivTag was disabled

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
hanguyen2009
Posts: 18
Joined: Wed May 27, 2015 9:43 am

HTML5: Can not get value from DivTag was disabled

Post by hanguyen2009 » Thu Aug 13, 2015 10:16 am

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.
You do not have the required permissions to view the files attached to this post.
Last edited by hanguyen2009 on Fri Aug 14, 2015 2:52 am, edited 1 time in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Thu Aug 13, 2015 10:51 am

Hi,

Could you please post Ranorex Snapshot of the element in question? Exact HTML code behind the divtag would be nice too.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

hanguyen2009
Posts: 18
Joined: Wed May 27, 2015 9:43 am

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

Post by hanguyen2009 » Fri Aug 14, 2015 8:37 am

Hi,

I have just attached snapshot file,
Please help to check

Thanks,
Ha.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Fri Aug 14, 2015 9:09 am

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
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

hanguyen2009
Posts: 18
Joined: Wed May 27, 2015 9:43 am

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

Post by hanguyen2009 » Fri Aug 14, 2015 9:27 am

Thank you very much