Qt Scrollbar & QObject Detection Issues

Experiences, small talk, and other automation gossip.
gce
Posts: 23
Joined: Mon May 03, 2021 10:31 am

Qt Scrollbar & QObject Detection Issues

Post by gce » Mon May 03, 2021 10:39 am

Hi I am automating a QT Desktop Application (Qt 5.15) with Ranorex 9.4.1.
We have a scrollbar and the scrollbar have buttons for up and down.
But in spy I am not able to get them. Is there any possibility in the settings to get these buttons?

Another Question:
I have a cointainer where I have 3 QObjects. Is there a possibility to capture them?

Thank you in advance!
Attachments
scrollbar.PNG
scrollbar.PNG (857 Bytes) Viewed 1079 times

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

Re: Qt Scrollbar & QObject Detection Issues

Post by odklizec » Mon May 03, 2021 6:52 pm

Hi,

I'm afraid, it's impossible to tell what's possible without seeing, at very least, a Ranorex snapshot (NOT screenshot) of the app in question. Could you please create one and post it here? Also, please try to track the scroll bar with most recent Ranorex 9.5.
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

gce
Posts: 23
Joined: Mon May 03, 2021 10:31 am

Re: Qt Scrollbar & QObject Detection Issues

Post by gce » Tue May 04, 2021 6:54 am

The snapshot has over 15k elemets in it and for security reasons I am not allowed to post it.
But even with ranorex 9.5. there is still a problem with the scrollbar.
I hope that someone from the Ranorex Support team can help. It's the standard QScrollbar.

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

Re: Qt Scrollbar & QObject Detection Issues

Post by odklizec » Tue May 04, 2021 7:08 am

Hi,

What version of QT is the app built with? Also, if it's a standard QT scrollbar, could you please ask your developers to prepare a small sample app, featuring given scrollbars? Unfortunately, even support will request access to the app under test, snapshot or, at very least, a small sample app, featuring the scroll bars.

And finally, if you expect help from Ranorex support, you should rather contact them directly, via support form available here:
https://www.ranorex.com/support-query/

BTW, have you tried to switch available QT options ( to their opposite state) in Ranorex settings?
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

gce
Posts: 23
Joined: Mon May 03, 2021 10:31 am

Re: Qt Scrollbar & QObject Detection Issues

Post by gce » Tue May 04, 2021 8:07 am

It is built with qt 5.15.2
what do you mean with switch available qt options?

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

Re: Qt Scrollbar & QObject Detection Issues

Post by odklizec » Tue May 04, 2021 8:14 am

Hi,

Go to Spy settings and try to set "Filtering" option to "False" and if it does not help, then also "QT legacy" option to "True".
QTSettings.png
QTSettings.png (28.2 KiB) Viewed 1068 times
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

gce
Posts: 23
Joined: Mon May 03, 2021 10:31 am

Re: Qt Scrollbar & QObject Detection Issues

Post by gce » Tue May 04, 2021 8:46 am

Thank you, I tried this before but it also doesn't work.
A little correction: we are not using the standard QScrollbar, we have our own scrollbar inheriting from it.

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

Re: Qt Scrollbar & QObject Detection Issues

Post by odklizec » Tue May 04, 2021 8:54 am

Hi,

And that could the the problem. So please, ask your devs to prepare a small sample app, featuring your custom scrolls and post it here or even better, create a support ticket. Apparently, the scrolls are not compatible with Ranorex implementation of QT recognition, which is supposed to work with standard UI elements, but may have a problem with custom ones.

Just for fun, please try to track the scrollbars with MS Inspect or newer Accessibility Insights app...
https://docs.microsoft.com/en-us/window ... ct-objects
If these apps are able to recognize the scrollbars correctly, then it's definitely something Ranorex folks should look at. But I guess these apps will fail to recognize these custom scrolls as well?
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

gce
Posts: 23
Joined: Mon May 03, 2021 10:31 am

Re: Qt Scrollbar & QObject Detection Issues

Post by gce » Mon May 31, 2021 9:18 am

Thank you for your efforts. After writing to the support (our company has a premium support) we didn't get any reply now for over 3 weeks. Will see if they will answer.

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

Re: Qt Scrollbar & QObject Detection Issues

Post by odklizec » Mon May 31, 2021 9:24 am

Hi,

It's sad to hear you've not received an answer yet. I will try to "push" your matter ;)
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