Hey guys!
Does anyone of you know how to change the setting "Use SWT legacy automation mode" in code?
I have to change it in runtime, since I would have to rework my whole repository if I can't.
Thanks!
Noob
Change SWT Legacy Automation mode in code
- RobinHood42
- Posts: 324
- Joined: Fri Jan 09, 2015 3:24 pm
Re: Change SWT Legacy Automation mode in code
Hey,
Just use the following line of code:
Robin
Just use the following line of code:
Configuration.Current["plugins.java.swtlegacymode"] = true;Cheers,
Robin

Re: Change SWT Legacy Automation mode in code
Thanks Robin!
Works like a charm!
Works like a charm!

-
- Posts: 10
- Joined: Tue Nov 05, 2019 5:17 am
Identifying objects of desktop application created using FoxPro!!
I am facing issues with the Objects identification of a desktop application created using FoxPro. When using Spy the text field or a button is shown on a different location of the application and we are unable to locate the fields using xPath. We doesn't have a proper ID for every element. Mouse clicks are not working hence the test cases is getting failed. Record and play back is also getting failed most of the times.
Can anyone give a better idea on how to test an application built using FoxPro.10.0.0.0.1 192.168.1.254 hotmail.com
Can anyone give a better idea on how to test an application built using FoxPro.10.0.0.0.1 192.168.1.254 hotmail.com
Last edited by NuzakFarnas on Sat Jan 04, 2020 5:22 am, edited 1 time in total.
Re: Change SWT Legacy Automation mode in code
Hi,
I’m afraid, that without seeing the AUT snapshot and example of failing xpath(s), it’s impossible to suggest something reliable. Generally speaking, if there are no unique IDs available, you will have to use either other elements (e.g. labels) to identify nearest parent/sibling and from there find the element you want. But as mentioned, we need to see the AUT’s snapshot (NOT screenshot) to suggest something reliable.
I’m afraid, that without seeing the AUT snapshot and example of failing xpath(s), it’s impossible to suggest something reliable. Generally speaking, if there are no unique IDs available, you will have to use either other elements (e.g. labels) to identify nearest parent/sibling and from there find the element you want. But as mentioned, we need to see the AUT’s snapshot (NOT screenshot) to suggest something reliable.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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