appium / appium-mac2-driver

Next-gen Appium macOS driver, backed by Apple XCTest
Apache License 2.0
125 stars 24 forks source link

[Questions] - Finding elements in QT application #130

Closed MikkelIJ closed 1 year ago

MikkelIJ commented 2 years ago

I do QA on a QT application for macOS and Windows. I have been working on making automated tests with Appium 1.22.0 through WebdriverIO. The application does not have much support for automation id's or other kinds of labels, however we have had some success with using xpath via the AppiumForMac app, but we still have some issues and that is why I am looking into mac2 driver.

However, after trying out the mac2 driver and following the examples from find-e2e-specs.js

I keep getting errors saying it can not find the element image

image

My questions are. Is it not possible to find elements using xpath in the format that AppiumForMac give me?

When I use the Accessibility Inspector, I get something like this. note: Not the same element as in other screenshot. image

Are there anything here I can use to interact with ?? If so, how should i format it when writing the code ?

If this driver is not the right solution for this application, can you recommend anything else?

MikkelIJ commented 2 years ago

When I try to install the previous mac driver I get this error image

mykola-mokhnach commented 2 years ago

This driver is based on Apple's XCTest and only supports what the latter does.

The legacy mac driver is not supported by the Appium team nor it is maintained.