SetAttributevalue() is not working on chrome

Ask general questions here.
praneet
Posts: 38
Joined: Thu Nov 08, 2018 2:22 am

SetAttributevalue() is not working on chrome

Post by praneet » Wed May 05, 2021 11:35 am

On Ranorex 9.3.2 I am unable to enter text in text boxes through setAttributeValue specific to chrome browser.
I checked on IE, it's worked perfectly but on Chrome Data is not entering and also not throwing any exception.
I tried with click(), Performclick(), focus() before doing setAttribute but no luck.


Example:- repo.Data.txt_Name.Element.SetAttributeValue("InnerText","InputName");

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

Re: SetAttributevalue() is not working on chrome

Post by odklizec » Wed May 05, 2021 11:48 am

Hi,

Typically, SetValue action fails with elements, with assigned OnKey event, which is not invoked with SetValue action.

Unfortunately, it's impossible to tell what's wrong in your particular case. Could you please reproduce the problem with a generic site (even Ranorex)? Or please create a sample HTML, which demonstrates the problem and post it here (zipped). Thanks.

Also, please try to reproduce the problem with most recent Ranorex 9.5. Ranorex 9.3.2 is obsolete and no longer supported.

And finally, try to use Key Sequence action, instead of SetValue. Just to see, if there is any difference.
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