-
-
Notifications
You must be signed in to change notification settings - Fork 759
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
can't find element when use 5.0.0 beta1,wrong:"java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement" #552
Comments
@derunewige driver.getSessionDetails() and show the result map here? |
It is defenetely the bug but now I'm trying to get my local Mac machine fixed |
At which place in the code? |
|
DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability(IOSMobileCapabilityType.BUNDLE_ID, "xx.xxxx.XXX"); driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), caps); |
@derunewige @saikrishna321 @SrinivasanTarget The second probled. Why does it not contain that info when app is started on a real iPhone/iPad? May be there is server side bug. Any thoughts? |
All the details are received from server including the automation and platform and lot more. Sample response
let me try on real device |
I see |
@iriszhang1986 @derunewige Please do a run without below capabilities and send us entire server logs.
Between i'm debugging it as well. |
@SrinivasanTarget @TikhomirovSergey with legacy driver i get the below response, which looks fine to me. May be as srini mentioned could be with XCUITest
{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"app":"/Users/saikrisv/Downloads/XXX-debug.ipa","bundleId":"XXX","udid":"XXXXX","platformName":"iOS","deviceName":"iPhone SE","platformVersion":"9.3.2","desired":{"app":"/Users/saikrisv/Downloads/XXX-debug.ipa","bundleId":"XXX","udid":"XXX","platformName":"iOS","deviceName":"iPhone SE","platformVersion":"9.3.2"}} |
Yes it is fine in legacy driver and UIAutomator2 mode but |
@derunewige @SrinivasanTarget @saikrishna321 |
Good morning! here is the server log without these four caps: gist So it is only:
Console log:
It is interesting, that without that four caps the browser name, or rather the app name, as well as the bundleID is not set when calling getSessionDetails() |
I did an update from appium 1.6.1-beta to 1.6.3 and now it looks like it is working! |
@derunewige Can you attach the latest logs as well here (1.6.3)? |
Yes, of course: gist Thank you all for your support!
|
@derunewige now it gets all the session details, @TikhomirovSergey can we keep this open as @SrinivasanTarget did see the session details missing on random calls |
Yes @saikrishna321. Session details is a server issue but anyways we need a fix for this which @TikhomirovSergey is working on. |
@derunewige @sravanmedarapu @saikrishna321 |
@SrinivasanTarget are session details missed randomly with 1.6.3? >> It is missing only if you dont specify the Automation Name explicitly and run on iOS 10. |
@TikhomirovSergey we need to keep this open and get the session details fixed if AutomationName is provided or not when running on iOS 10. What say @SrinivasanTarget ? |
He is working on it and will be proposing a PR soon :)
…On Wed 4 Jan, 2017, 8:48 PM Sai Krishna, ***@***.***> wrote:
@TikhomirovSergey <https://github.com/TikhomirovSergey> we need to keep
this open and get the session details fixed if AutomationName is provided
or not when running on iOS 10.
What say @SrinivasanTarget <https://github.com/SrinivasanTarget> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#552 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIfAJSD3HAEO3OEtiTViYQaW69dPMkNNks5rO7hDgaJpZM4LZWnr>
.
|
Hey guys, any solution for this ? I met same problem... and my environment are as follow: |
This issue got fixed in java-client-5.0.1.jar |
Description
when I use 5.0.0beta1 java-client,I can't find any element.the wrong is:
java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement
Environment
Details
Ecxeption stacktraces
Link to Appium logs
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/6B9292D7-5B44-488B-9D68-5D8B90899294/element] with body: {"using":"class name","value":"XCUIElementTypeScrollView"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"ELEMENT":"22FC9416-0EB1-47CB-A800-019C566EC450","type":"XCUIElementTypeScrollView","label":null},"sessionId":"6B9292D7-5B44-488B-9D68-5D8B90899294","status":0}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"22FC9416-0EB1-47CB-A800-019C566EC450","type":"XCUIElementTypeScrollView","label":null}
The text was updated successfully, but these errors were encountered: