Katalon on WPF desktop application

Windows Action Recorder is unable to recognize elements from a WPF desktop application, is there any work-around on this?

1 Like

Hi @xiencandido,

Thank you for sharing your issue. Would you mind giving us more information such as screenshot, recording, reproduce, version …? So that we can better support you

kindly provide more information whenever any help required

I’ve had similar issues with a windows application that we have…It is built using WPF framework and katalon recorder has had issues viewing certain elements…In particular in my case, the main issues came with wpf scrollbars that appear to possibly be embedded within panels…Katalon does not appear to be able to see these scroll bars, although I can use the Inspect.exe tool to view them after getting though some of the layers.

I was able to view scroll bar positions but have not found a proper solution to clicking on them other than using an offset from another element.

First Image: the scrollbar is visible on the page and Katalon’s recorder can find it.

Second Image: the scrollbar is visible on the page and Katalon’s recorder cannot find it.

1 Like

Hi,

I will ask my team and back to you soon

What about using Windows.sendKeys ?

For example :
Windows.sendKeys(findWindowsObject(‘Your windows object’), Keys.chord(ARROW_DOWN))

In this case you could use the main window as “WindowsObject”

In my case, using the send keys command does not appear to work… <RemoteWebElement>.sendKeys(Keys.chord(Keys.Page_Down)) does not work and throws an unknown error. Same for creating a WindowsTestObject.

Some more details from my example:

I believe that this object is one of the fields that contains the scrollbars, perhaps in a more embedded format, it contains the VerticallyScrollable attribute, I have been able to view the value for VerticalScrollPercent and can see it change via non direct interactions (I.E. using something like click element offset and using the offset to click the scrollbar, but this is not reasonable as it is dependent on screen resolution.)


You could use the Robot class to click and scroll down (keyPress,mouseMove)