appium / appium-inspector

A GUI inspector for mobile apps and more, powered by a (separately installed) Appium server
https://appium.github.io/appium-inspector/
Other
1.22k stars 292 forks source link

Appium Inspector failing to identify elements of windows application #570

Closed bhargavkumar-65 closed 2 years ago

bhargavkumar-65 commented 2 years ago

Appium or Appium Desktop?

Appium Desktop.

The problem

Appium UI Inspector cannot identify our windows application. The application i am trying to identify the element is developed using Delphi language and falls under Winforms/Classic win32 app.

Source XML after launching session: <?xml version="1.0" encoding="utf-16"?>

image

image

import io.appium.java_client.MobileElement; import io.appium.java_client.unknownPlatform.UnknownDriver; import junit.framework.TestCase; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.net.MalformedURLException; import java.net.URL; import org.openqa.selenium.remote.DesiredCapabilities;

public class SampleTest {

private UnknownDriver driver;

@Before public void setUp() throws MalformedURLException { DesiredCapabilities desiredCapabilities = new DesiredCapabilities(); desiredCapabilities.setCapability("appium:app", "C:\K_Fleet\KMSupportShipping\Tarjelina\Services\APIServer.exe"); desiredCapabilities.setCapability("platformName", "windows"); desiredCapabilities.setCapability("appium:automationName", "windows"); desiredCapabilities.setCapability("appium:deviceName", "WindowsPC"); desiredCapabilities.setCapability("appium:newCommandTimeout", 3600); desiredCapabilities.setCapability("appium:connectHardwareKeyboard", true);

URL remoteUrl = new URL("http://localhost:4727/wd/hub");

driver = new UnknownDriver(remoteUrl, desiredCapabilities);

}

@Test public void sampleTest() {

}

@After public void tearDown() { driver.quit(); } }

image

Environment

jlipps commented 2 years ago

it seems that winappdriver does not support methods the inspector requires. probably because winappdriver has been abandoned.