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.
Comments
Post a Comment