Unable to recognize Java objects on one machine but works fine on another (using UIA)
Question ID: 109943

Strange one here…we recorded a test against a Java application using UI Automation for some of the objects, and everything seemed fine. The test runs perfectly against our application on that machine. Tried running the exact same test against the same application on another machine, and it won’t recognize a bunch of our UI Automation objects. Very odd and frustrating!

Marked as spam
Posted by (Questions: 424, Answers: 91)
Asked on October 30, 2020 9:27 pm
Answers (1)
Private answer

This is most likely due to you having Java 8 installed on the machine where you recorded your test and added your recognized objects. Due to a change in framework in Java, these same objects will not be recognized if you run the test on a machine that has Java 6 installed. You will need to make sure Java 8 is installed on your test execution registers to properly recognize the recorded objects.

Marked as spam
Posted by (Questions: 0, Answers: 771)
Answered on October 30, 2020 9:28 pm
That did it! We installed Java 8 on our affected machine and it can play the scripts now.
( at October 30, 2020 9:28 pm)

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top