Rx10.3 'Set value' doesn't work after update

Ranorex Studio, Spy, Recorder, and Driver.
pablo119191
Posts: 3
Joined: Wed Oct 19, 2022 1:54 pm

Rx10.3 'Set value' doesn't work after update

Post by pablo119191 » Wed Oct 19, 2022 4:19 pm

Ranorex Snapshot: attached
Ranorex xPath of problematic element: .//select[#'hr-filter-company']
Ranorex version: 10.3

OS version:
Edition Windows 10 Pro
Version 21H2
Installed on ‎15-‎09-‎2020
OS build 19044.2130
Experience Windows Feature Experience Pack 120.2212.4180.0

HW configuration:
Processor Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz 1.80 GHz
Installed RAM 8,00 GB (7,81 GB usable)
System type 64-bit operating system, x64-based processor

After last update to Ranorex10.3 'Set Value' stoped working in every place where the web element is also triggering an event

We have a dropdown menu on web page, where we can choose a company - mouse click doesn't work after expanding a dropdown list even the 'option' is visible with proper 'innertext' in it, ranorex is complaining that it's not on the UI.

I've tried also 'key sequence' and all other available methods for 'Set value'.

I've ended with user code.
Here I converted 'Set Value' to custom one. Here I'm using 'value' instead of 'tag value' - the value is actually changed, but to update the data it require also an event trigger 'changeCompany()' what was working don't know why in previous version, now it's not and all our test suites stopped to work.

I think I'm looking for solution how to execute JS call, as when I try to execute via chrome console then the data is loaded.

I've tried to add in converted code:
WebDocument document = "/dom";
document.ExecuteScript("changeCompany();");
But this ends with:
Action 'executescript' failed on element '{WebDocument:Danløn}'.
The operation is not supported.

Should we change to robotframework and selenium or browser library? :D :D :) :)))
You do not have the required permissions to view the files attached to this post.
Last edited by pablo119191 on Thu Oct 20, 2022 11:37 am, edited 1 time in total.
Use ranorex or die tryin' :D :D :D

pablo119191
Posts: 3
Joined: Wed Oct 19, 2022 1:54 pm

Re: Rx10.3 'Set value' doesn't work after update

Post by pablo119191 » Thu Oct 20, 2022 11:28 am

Started using ranorex few months ago, help me please.

Otherwise I need to insist on management to rewrite all test suites to another framework as maintaning ranorex is consuming to much time is not reliable and other solution I have checked work much much better.
You do not have the required permissions to view the files attached to this post.
Use ranorex or die tryin' :D :D :D

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

Re: Rx10.3 'Set value' doesn't work after update

Post by odklizec » Thu Oct 20, 2022 1:35 pm

Hi,

As far as I know, SetValue action never triggers the associated mouse/keyboard events. This is why it's recommended to use KeySequence action, instead of SetValue. As for the exception you are getting, I guess this is associated with bug introduced in Ranorex 10.2.3 and which is discussed for example here:
https://www.ranorex.info/invoke-select- ... 22205.html
I'm afraid, the only workaround is to downgrade Ranorex.
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

pablo119191
Posts: 3
Joined: Wed Oct 19, 2022 1:54 pm

Re: Rx10.3 'Set value' doesn't work after update

Post by pablo119191 » Fri Oct 21, 2022 8:26 am

I have checked 'key sequence' one more time and it worked, but it seems to not work all the time. I'll check if we can tune it up somehow. Thanks! :)

Edit. 'key sequence' is living its own life, sometimes it's changing the value to what we need, other time it's doing nothing... old value is still in place we want to change to different value
Use ranorex or die tryin' :D :D :D