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.

5.0.0-BETA2: ClassCastException: WebElement -> IOSElement

See original GitHub issue

Description

Failed to cast WebElement into IOSElement. Worked with 5.0.0-BETA1.

Environment

  • java client build version or git revision if you use some shapshot: 5.0.0-BETA2
  • Appium server version or git revision if you use some shapshot: 1.6.4-beta
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: Simulator

Code To Reproduce Issue [ Good To Have ]

((IOSElement) driver.findElement(MobileBy.className("XCUIElementTypePickerWheel"))).setValue(countryName);

Ecxeption stacktraces

java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.ios.IOSElement

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
TikhomirovSergeycommented, Feb 13, 2017

@amedvedjev @derunewige The BET3 was published. Soon it should be available and then you can check it.

1reaction
TikhomirovSergeycommented, Feb 8, 2017

@amedvedjev We (I am and @SrinivasanTarget ) are investigating the problem. It may be the critical server side issue that have to be fixed on the server-side. We will update you soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ClassCastException with new Appium-java TouchActions
I am getting below error with new TouchActions class. JDK version: 1.8; Appium: 1.7.2; appium.java-client.version: 6.0.0-BETA2; selenium.java ...
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 >
Java Client: Java Language Binding for Writing Appium Tests
In this tutorial, we will share a repository of Java Client: Java Language Binding for Writing Appium Tests, conforms to Mobile JSON Wire...
Read more >
The java-client from appium - GithubHelp
#1713; Switch unit tests to run on Junit 5 Jupiter Platform. ... #928; [BUG FIX] Fix class cast exception on getting battery info....
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