Unable to identify elements before track using spy

Ranorex Studio, Spy, Recorder, and Driver.
willyhalim
Posts: 4
Joined: Mon Sep 12, 2022 7:24 am

Unable to identify elements before track using spy

Post by willyhalim » Wed Oct 26, 2022 4:23 pm

Hi,

I am hitting weird issue as follow
1. Launch RanorexDriver.exe -debug=http ( Ranorex Version = 9.3.2+git.eca7daff )
2. Launch my SUT ( Glue42 WinForms + CEF )
3. Run My Test ( Using Selenium WebDriver Interface ) - Java
Test Failed - unable to identify the elements and seeing some error in the ranorexdriver

Code: Select all

stacktrace": " at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)\r\n at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)\r\n at System.Windows.Forms.Control.Invoke(Delegate method)\r\n at RanorexDriver.Sta.Call[T](Func`1 func)\r\n at RanorexDriver.RanorexDriverImpl.FindElement(String fromElementId, WebDriverFindBy by)\r\n at RanorexDriver.Server.WebDriverController.<>c__DisplayClass18_0.<FindElement>b__0(WebDriverSession s)\r\n at RanorexDriver.Server.Wd.TryWithSession(Func`2 func, String sid)"

Steps to resolve it
1. Open Ranorex Spy
2. Track the element that is failed . ( able to spy )
3. run the same test again. It is succesfull


Have few questions as below
1. what is the relation between ranorex driver and spy ? i was under impression they are both independent
2. the issue above only happens for my Glue42 ( Desktop Integration Platform ) - combination of winforms + cef application
3. no issue for simple calculator or RxApp demo
4. why the issue gone after i track element forcefully using ranorex spy ? when i track it using ranorex spy . ranorex spy seems to load something that fix the issue