fmsouza / ionic3-seed-protractor

Ionic 3 + Karma + Protractor + Appium
Apache License 2.0
20 stars 7 forks source link

Cannot reproduce #2

Closed sydtpt closed 6 years ago

sydtpt commented 6 years ago

Hey @fmsouza ,

Do you have any ideia why I'm getting this error when running e2e:

1) Home default screen should have a title saying Home Message: Failed: io.selendroid.server.common.exceptions.SelendroidException: SyntaxError: Missing catch or finally after try at io.selendroid.server.handler.script.ExecuteAsyncScript.safeHandle(ExecuteAsyncScript.java:38) at io.selendroid.server.handler.SafeRequestHandler.handle(SafeRequestHandler.java:86) at io.selendroid.server.AndroidServlet.handleRequest(AndroidServlet.java:264) at io.selendroid.server.common.BaseServlet.handleHttpRequest(BaseServlet.java:67) at io.selendroid.server.common.http.ServerHandler.channelRead(ServerHandler.java:53) ...

Thanks

fmsouza commented 6 years ago

Hi @sydtpt, Can't tell you because I don't see your code and it does not say much. As the tests are Javascript and this error is a Selenium's Java exception, possibly this is something about your environment setup.

ZooLeeCoding commented 6 years ago

I have the same problem - tried running the example and this error makes the e2e tests fail every time. Probably an issue with the selenium-server-standalone-jar?

fmsouza commented 6 years ago

@ZooLeeCoding what are you Java JRE/JDK and Node.js versions?

ZooLeeCoding commented 6 years ago

JDK: 1.8, NodeJS: 8.11

I have managed to get it running since then. I changed the selendroid automation to 'uiautomator2', then manually downloaded the latest, 2 days old appium-uiautomator2-driver release, which contained bugfixes for the hybrid app / webview related bugs.