mykola-mokhnach / Appium-iOS-Inspector

Apache License 2.0
145 stars 60 forks source link

Not able to select the Element #18

Closed pavanbachu0604 closed 7 years ago

pavanbachu0604 commented 7 years ago

I am not able to select the Element which is being displayed on the screen. iOS 10.2.1 and Appium 1.6.3 PFA Screen shot

screen shot 2017-02-03 at 4 21 43 pm
mykola-mokhnach commented 7 years ago

Possible duplicate of https://github.com/mykola-mokhnach/Appium-iOS-Inspector/issues/17

cpt-buzz commented 7 years ago

Same problem. I get no element tree displayed. Often i get an parse error. I have downloaded the new version! Something went wrong!

mykola-mokhnach commented 7 years ago

@cpt-buzz can you provide the text of the error you get?

cpt-buzz commented 7 years ago

Well, i get only this screen

bildschirmfoto 2017-02-18 um 20 39 15
mykola-mokhnach commented 7 years ago

I'd like to see javascript console output

cpt-buzz commented 7 years ago

Do you mean this ?

[Info] INFO :initSessionId:18 initSessionId... (Logger.js, line 36) [Info] INFO :undefined:30 success (Logger.js, line 36) [Info] INFO :undefined:30 [object Object] (Logger.js, line 36) [Info] INFO :undefined:30 Session Id: c3784e2d-71ec-492e-b087-1387602cd41a (Logger.js, line 36) [Info] INFO :initAutXml:18 initAutXml... (Logger.js, line 36) [Info] INFO :undefined:30 error (Logger.js, line 36) [Info] INFO :initScreenshot:18 initScreenshot... (Logger.js, line 36) [Log] before calling resize() (iOS Inspector.html, line 24) [Info] INFO :undefined:30 error (Logger.js, line 36) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] NaN,NaN (inspector.js, line 663) [Log] couldn t find element at NaN , NaN (inspector.js, line 670) [Log] resized to 428.26086950302124 (inspector1.js, line 39)

mykola-mokhnach commented 7 years ago

@cpt-buzz something seems to be wrong with your Appium session. What do you see if you open http://localhost:4723/wd/hub/sessions page in browser at the same time?

cpt-buzz commented 7 years ago
bildschirmfoto 2017-02-19 um 17 22 53
mykola-mokhnach commented 7 years ago

This one looks good. And what

http://localhost:4723/wd/hub/session_id/source

shows, where session_id is the identifier taken from the id property of the json object above?

cpt-buzz commented 7 years ago
bildschirmfoto 2017-02-19 um 17 39 01
mykola-mokhnach commented 7 years ago

sorry, wrong url. Try:

http://localhost:4723/wd/hub/session/session_id/source

instead

cpt-buzz commented 7 years ago
bildschirmfoto 2017-02-19 um 18 02 56
mykola-mokhnach commented 7 years ago

As you can see there is no source provided by Appium server, which means the issue has nothing to do with the inspector itself. The thing might be related to a known XCTest bug, for which Appium has added some workarounds in 1.6.4-beta release.

cpt-buzz commented 7 years ago

Ok, might appium 1.6.4-beta should be able to fix my problem?

mykola-mokhnach commented 7 years ago

you never know until you try