If the WidgetID property or value is available in the properties window on the control, then you might be able to do it. I would check Test Methods and go through the methods to see if you can retrieve that value somehow.
More than likely you can match the control through other ways...
Have you tried using the label match rule? You can increase the tolerance of distance to search for a label and the relative direction that OpenSpan should search for it. It would also be good to interrogate that Label to verify the text you enter for the Label Match Rule is correct.
Another option is to use the Element Id Match Rule and matching it with regex because Java apps frequently change their Id's after each run...
Adding support for a Match Rule that looks for a WidgetId is not something that could just be added on the whim... I really suggest looking at alternatives before deciding to go this route as it could push your timeline back.
"Element Id Match Rule and matching it with regex because Java apps frequently change their Id's after each run... "
This is exactly the issue we faced. The IDs change when we tried the 2nd time.
We were able to interrogate the label and tried to read its content but it was always empty (strange). We could not use the Label Match Rule. After trying all other Match Rules we finished with Position Match Rule, which is relative to the parent control and so on moving up through the hierarchy.
The idea with the Methods sounds interesting. Thanks!
Using regex may help in getting the control to match each time - for example, for "Panel34", I would use regex "Panel\d\d" to match to it if the number changed after each run. It is probably worth investigating this too.
I would also suggest searching for controls through the virtual controls tab. Another common "feature" I see with Java applications is that controls don't destroy after you navigate away. In other words, you end up with a bunch of hidden controls on top of each other... this makes interrogation with the bulls-eye pretty frustrating and unreliable so I usually always double-check my control by going to the virtual controls tab to find the control and verify that it is the right one that I'm seeing. I mainly say this because you're saying the Label isn't giving you anything back.. so maybe it just isn't the right control.