how to check 'readonly' attr of input/textarea tag?

Best practices, code snippets for common functionality, examples, and guidelines.
Posts: 3
Joined: Tue Aug 07, 2018 10:23 am

how to check 'readonly' attr of input/textarea tag?

Post by trangnth » Thu Aug 16, 2018 10:41 am


I would like to check if an inputTag or textareaTag has "readonly" attribute, but I can not find methods/functions support this operation.

html code:
<input type=text readonly title="editbox title" name="editbox name" value="editbox value" >
<textarea readonly cols=2 rows=2 title="text area title" name="text area name" value="text area value">default txt</textarea>

is Ranorex7.2 support this attribute?


additon information: I am using Ranorex 7.2

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

Re: how to check 'readonly' attr of input/textarea tag?

Post by odklizec » Thu Aug 16, 2018 11:23 am


It seems that Ranorex is able to correctly identify 'readonly' attribute only in IE? It may be a bug in Ranorex.
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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: how to check 'readonly' attr of input/textarea tag?

Post by Support Team » Thu Aug 16, 2018 5:15 pm

Thank you trangnth for reporting this issue and thank you Pavel for testing this out and reporting your findings. I have since escalated this issue to our developers to be further investigated. Currently, we do not know if and when this issue will be fixed as this depends on various factors. Nevertheless, all new features, updates, and bug fixes are documented in the release notes with every new version release of Ranorex.

Kind Regards,