java - How to work with mobile chrome and testing app by Appium -


I'm an automationg mobile application, but in some cases I need to click on the link and check that the browser has access to the link Was opened. For example the terms of the link on the signup page of my application So the question is to switch between the test app and the browser. Here is my code

  file apk = new file ("src / exam / resource / myapp.apk"); Desired capabilities AppCapabilities = new desired capabilities (); DesiredCapabilities chromeCapabilities = new desired capabilities (); AppCapabilities.setCapability ("app", apk.etabaseolitepath ()); AppCapabilities.setCapability ("Forum Name", "Android"); AppCapabilities.setCapability ("automation name", "epium"); AppCapabilities.setCapability ("deviceName", "MyDevice"); AppCapabilities.setCapability ("Forum Details", "4.3"); //capabilities.setCapability (key, value); AppCapabilities.setCapability ("New Commute Timeout", 400); AndroidDriver = new appium driver (new url ("http://127.0.0.1:4723/wd/hub"), app capabilities);   

But something like adroidDriver.getCurrentURL () does not work.

You are missing some capabilities.

Please refer to the server flag and capabilities for anything related to "Chrome"

And then take a look at the documentation for automation using the ChromDriver with the API.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -