Get BackgroundColor/ForegroundColor of external Java application

347 Views Asked by At

I'm writing automation test script for checking a target application run by Java Swing framework.
It using Java Access bridge library to detect element inside target application. However, this library can only get name / role / position / states of target element, it does not support getting other property.

Here is example of using Access bridge Explorer tool (using Java Access bridge library) for detecting element: enter image description here

However, when I trial using Ranorex automation test tool, it is able to get many property like background color, foreground color... enter image description here When checking the official website of Ranorex, it only describe that it use some instrument technology for doing that: https://www.ranorex.com/java-test-automation/

Does anyone know how to obtain these property like Ranorex does?
What is technology / library behind that it can use for getting element property?
I suppose it use Win32 Hook API, but not sure if correct or not.

0

There are 0 best solutions below