question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

6.0.0-BETA3 - PLATFORM_NAME cannot be resolved

See original GitHub issue

Description

@SrinivasanTarget @mykola-mokhnach @TikhomirovSergey @jlipps @saikrishna321

Going from BETA2 to BETA3, using the code below is giving me an issue, whereas in BETA2 it did not -

dc.setCapability(MobileCapabilityType.PLATFORM_NAME, Platform.ANDROID);

PLATFORM_NAME cannot be resolved is what my IDE is throwing now.

My only options are PLATFORM or PLATFORM_VERSION. I have tried them and I get a console error that PLATFORM_NAME should be used and it couldn’t start. But I cannot choose it when programming. Which one do I choose now?

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: You must include a platformName capability (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 63 milliseconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'ninad-Gazelle', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.13.0-36-generic', java.version: '1.8.0_151'
Driver info: driver.version: AppiumDriver

Also, What is the argument I pass as the Android OS? (instead of Platform.ANDROID)

Environment

io.appium - java-client - 6.0.0-BETA3 Ubuntu 16 Eclipse IDE

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
telangncommented, Mar 9, 2018

Thank you so much! Everything works now! This issue can be closed. @TikhomirovSergey @saikrishna321

0reactions
SrinivasanTargetcommented, Mar 9, 2018

@telangn

npm uninstall -g appium
npm install -g appium@beta
Read more comments on GitHub >

github_iconTop Results From Across the Web

Returned value cannot be converted to WebElement: {element ...
Update your java client to 6.0.0-BETA3 in maven dependency POM.XML file. It worked for me as 6.0.0-BETA3 comes with W3C compliance.
Read more >
AppiumDriver (java-client API) - javadoc.io
Changes platform name if it is not set and returns merged capabilities. org.openqa.selenium.remote.Response, execute(java.lang.String command).
Read more >
Can't launch .ipa on real device by appium v1.6.0-beta3 ...
Hello, colleagues! I am using iPhone 5s (iOS 9.3.2). Enable UI Automation on device. As for computer - OSX Sierra 10.12.2, Xcode 7.1.3,...
Read more >
View maven: io.appium:java-client - Debricked
Get an overview of maven: io.appium:java-client. See weekly downloads, latest versions and community scores in the Debricked Open Source ...
Read more >
MvvmCross 6.0
Blog post & Migration Guide for v6 #2590 (nmilcoff). 6.0.0-beta3 (2018-02-14). Full Changelog. Fixed bugs: PluginLoaders not found for platform ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found