I just switched from HtmlUnit to Selendroid, because HtmlUnit doesn't work under Android. But I really don't understand selenium/selendroid.
So I got this code:
WebDriver driver = new EdgeDriver();
driver.get("www.google.com");
And this Exception, which points on the first line:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.muco.villagedefender, PID: 10430
java.lang.NoClassDefFoundError: org.openqa.selenium.edge.EdgeDriverService
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:98)
at com.example.muco.villagedefender.MainActivity$2.onClick(MainActivity.java:85)
at android.view.View.performClick(View.java:4633)
at android.widget.CompoundButton.performClick(CompoundButton.java:104)
at android.view.View$PerformClick.run(View.java:19330)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5356)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at dalvik.system.NativeStart.main(Native Method)
On HtmlUnit I just did this and everthing was fine:
final WebClient webClient = new WebClient(BrowserVersion.EDGE);
final HtmlPage page= webClient.getPage("www.google.com");
So what is wrong?
The other question: Is there no Selenium/Selendroid doc? I can't find anything, only this.