-
-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java Client, Appium and Win 10 issue #530
Comments
I received this response from Jlipps on Appium Server side. jlipps commented 7 minutes ago |
Here are the logs [Appium] Welcome to Appium v1.6.1 |
The problem is that you're trying to start a session twice, and the second time you're passing in a platformName of |
Thanks Jlipps, i did confirm I am not setting platformName=iOS anywhere in the code infect it's few lines of code only in the existing CalculatorTest sample app. Second I am sure that findElementForXPath is not working for java client, even simple calls like //*[@name='Next'] is failing with exception. So seems like java client issue. |
This is the log from appium console. [WinAppDriver] [STDOUT] {"sessionId":"6A1DB7D8-5236-43D4-B103-9A30B15B4156","status":0} |
@jlipps @amitg25 We (I am and @SrinivasanTarget ) are working on enhancements:
There is the string (there are similar strings) It is not the bug. It had been normal until Windows and youiengine automations were added. So it is just the case that we are implementing. |
This issue was resolved by #538. It is going to be published in 5.0.0-beta1 |
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.
The text was updated successfully, but these errors were encountered: