java - The 'import org.openqa.selenium.android.AndroidDriver' cannot be resolved -


i trying automate android application,

i have taken following code,

import org.openqa.selenium.by; import org.openqa.selenium.webelement; import org.openqa.selenium.webdriver; import org.openqa.selenium.android.androiddriver;  public class launchelgiftoandroid { public static void main(string args[])throws exception  {     androiddriver ad=new androiddriver();     system.out.println("started");     ad.get("http://www.gmail.com");     system.out.println("application title"+ ad.gettitle());     thread.sleep(2000);     ad.findelement(by.name("email")).sendkeys("testing");     ad.findelement(by.name("passwd")).sendkeys("type password");     ad.findelement(by.name("signin")).click();     system.out.println("opened");     ad.close();  }  } 

i have installed web driver apk properly.

i getting problem following import statement.

import org.openqa.selenium.android.androiddriver;

i believe using old androiddriver.

you should using selendroid in case.

http://selendroid.io/mobileweb.html


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -