Description
I am trying to run Calculator App (java version) with WinAppDriver 0.5, but I see following issues with Appium.
When I declare my variables as IOSDriver (As mentioned on the description)
private static IOSDriver CalculatorSession = null;
private static WebElement CalculatorResult = null;
with following capabilities
capabilities.setCapability("app", "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App");
capabilities.setCapability("platformName", "Windows");
capabilities.setCapability("deviceName", "WindowsPC");
I keep getting iOS driver and exception
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not find path to Xcode by symlinks located in /var/db/xcode_select_link, or /usr/share/xcode-select/xcode_dir_link (WARNING: The server did not provide any stacktrace information)
Now if I change it to
private static RemoteWebDriver CalculatorSession = null;
private static RemoteWebElement CalculatorResult = null;
It starts working but now WinAppDriver fails to getText from screen. Following line fails
final String xPath = "//*[@AutomationId='CalculatorResults']";
String text = CalculatorSession.findElementByXPath(xPath).getText();
I tried changing xpath to different ways like
//windows[@name='Display is 7 '];
//*[@name='Display is 7 '];
but none worked.
however when I call CalculatorSession.findElementByName("Seven").click();, this run successfully.
Can someone suggest what's wrong in here? To me it looks like driver issue.
Env:
Windows 10 Laptop
Version 1511
OS Build: 10586.679
Appium Ver: 1.6.1
Win App Driver: 0.5
This can be reproduce with Calculator Java version of App from WindowsAppDriver Sample tests.