Invoke Select Stopped working on 10.2.3

Ask general questions here.
riagarwal
Posts: 19
Joined: Thu Aug 27, 2015 3:44 pm

Invoke Select Stopped working on 10.2.3

Post by riagarwal » Thu Jul 14, 2022 8:14 pm

Hello, I was using Invoke Select Action to select the Month and Year for Credit Card Expiry, However after upgrading the solution to 10.2.3 it is not working and giving me the following error

Please assist as its breaking my solution

Action 'Select' failed on element '{OptionTag:2022}'.
Failed to raise event 'change'.
Action 'executescript' failed on element '{WebDocument:Pay with your Credit Card - *********}'.
The operation is not supported.
Show/Hide Stacktrace
at Ranorex.Core.Element.InvokeAction(String name, Object[] args)at Ranorex.Core.Element.InvokeActionWithText(String name, String[] args)at EZ_PAY_C_.Accounts.OTP.Payment.Supported_CC_Both_With_Without_ZIP.Ranorex.Core.Testing.ITestModule.Run() in C:\RanorexProjectsCode\EZ_PAY_C_PREP_IO\EZ_PAY_C\Accounts\OTP\Payment\Supported_CC_Both_With_Without_ZIP.cs:line 170at Ranorex.Core.Testing.TestModuleLeaf.RunInternal(DataContext parentDataContext, Int32 iteration, Int32 iterationCount, Boolean skipIteration)

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

Re: Invoke Select Stopped working on 10.2.3

Post by odklizec » Mon Jul 18, 2022 9:36 am

Hi,

According to the error message, it seems that the InvokeAction is not supported by the element in question. So my best guess is, that there has something changed in your app? Have you tried to uninstall Rx 10.2.3 and install previously working Ranorex version?
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

riagarwal
Posts: 19
Joined: Thu Aug 27, 2015 3:44 pm

Re: Invoke Select Stopped working on 10.2.3

Post by riagarwal » Mon Jul 18, 2022 4:25 pm

Hello,
There is no change in our APP it stopped after update, and now the solution is already to latest version and cannot work in 10.1.7 vrsion.
So I am stuck and cannot convert the solution to lower version.

i tried my other solutions also, that are using the Invoke Select() and is also failing.

There seems to be some change done..

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

Re: Invoke Select Stopped working on 10.2.3

Post by odklizec » Tue Jul 19, 2022 8:06 am

Hi,

In this case, I would suggest to contact directly Ranorex support about this problem. You can contact them here:
https://www.ranorex.com/support-query/
This forum is not the best place to solve issue like this.
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

mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Re: Invoke Select Stopped working on 10.2.3

Post by mrt » Fri Aug 05, 2022 11:36 am

I updated from 10.2.2 to 10.2.4 today and face a very similar issue on JS execution.

In the morning it worked, then RX update, now it fails with

Code: Select all

Action 'executescript' failed on element '{WebDocument.PageTitle}'.
The operation is not supported
This happens in 32-bit as well as 64-bit RX Studio, no matter what I put in as JS command.

Code: Select all

WebDocument webDoc = webDocumentInfo.CreateAdapter<WebDocument>(true);
string language = webDoc.ExecuteScript("return window.navigator.language");
The webDoc is created as usual, but ExecuteScript fails.
AUT has not changed, nor did the implementation.

Edit:
I attached a quick sample solution for Chrome and Firefox, both show the same error
You do not have the required permissions to view the files attached to this post.

csaszi89
Posts: 41
Joined: Mon Jan 17, 2022 12:10 pm

Re: Invoke Select Stopped working on 10.2.3

Post by csaszi89 » Fri Aug 05, 2022 12:05 pm

Hi,

I faced the same issue when tried to run script on Chrome, but it worked with Firefox...
No clue whats happening.
Chrome settings changed in latest versions?

BR,
Gyuri

mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Re: Invoke Select Stopped working on 10.2.3

Post by mrt » Fri Aug 05, 2022 12:09 pm

Update:
I rolled back to Rx 10.2.2 and there the above solution works for both browsers.
Chrome: 104.0.5112.81 (Official Build) (64-bit)
Firefox: 91.12.0esr (32-Bit)

Support is contacted, hopefully we will get a fix shortly.

riagarwal
Posts: 19
Joined: Thu Aug 27, 2015 3:44 pm

Re: Invoke Select Stopped working on 10.2.3

Post by riagarwal » Sat Aug 06, 2022 12:15 am

I tried 10.2.2 also, still the issue exists.
However, then I used the option "Continue even if Fail" and it worked and the solution is working fine.

sdrx
Posts: 19
Joined: Tue Jan 29, 2019 10:15 am

Re: Invoke Select Stopped working on 10.2.3

Post by sdrx » Mon Sep 05, 2022 9:38 am

We also experienced this issue on 10.2.4 and 10.2.3 and will be using 10.2.2 until Ranorex address the issue.

mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Re: Invoke Select Stopped working on 10.2.3

Post by mrt » Wed Sep 28, 2022 10:18 am

Did anyone find a solution for this?

My AUT behaves differently depending on browser language, so I need to get the browser language at runtime, which is to my knowledge not possible without using Javascript.

I sent the sample solution to the support and received an answer that everything works fine at their end - so I am out of ideas.

Even a complete fresh installed Windows system with a complete fresh Ranorex installation and a complete fresh solution/project shows the exact same error on all JS calls.

riagarwal
Posts: 19
Joined: Thu Aug 27, 2015 3:44 pm

Re: Invoke Select Stopped working on 10.2.3

Post by riagarwal » Wed Sep 28, 2022 2:29 pm

Hello,

No solution Yet. However I got a response from Support, there are many people having this issue.
So the only solution for now is to rollback to the version it was working fine.
For me it was 10.1.6

However, make sure you should use the copy / soution that you backed up before updating the solution else it wont work even in the lower 10.1.6 SOlution Now.

mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Re: Invoke Select Stopped working on 10.2.3

Post by mrt » Tue Oct 25, 2022 9:59 am

I noticed 10.3.0 came out 3 weeks ago (strange btw, that there was no "new version" message on Ranorex Studio Start page),
but the issue with JS still persists

It still reports "operation not supported" on each and every JS call.

csaszi89
Posts: 41
Joined: Mon Jan 17, 2022 12:10 pm

Re: Invoke Select Stopped working on 10.2.3

Post by csaszi89 » Mon Nov 07, 2022 2:04 pm

Hi there,
any update on this topic with 10.4.0?

mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Re: Invoke Select Stopped working on 10.2.3

Post by mrt » Mon Nov 07, 2022 3:12 pm

I updated to 10.4.0 and behavior is exactly the same, sadly.

But - I am not really surprised.
Because when I sent this issue to the support I was told everything works fine at their end.
So, they won't fix anything they think that is not broken...

teltorex
Posts: 1
Joined: Tue Nov 08, 2022 11:41 am

Re: Invoke Select Stopped working on 10.2.3

Post by teltorex » Thu Nov 24, 2022 7:29 am

Hi there,
any update on this topic with 10.5.0?