I am new in automation and Appium. I am going to test hybrid mobile applications (app and apk). Is it possible to go to a specific url after lunching the application?
For example, I start the driver using capabilities:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“device-type”, “iPhone”);
capabilities.setCapability(“platformName”, “iOS”);
capabilities.setCapability(“platform”, “Mac”);
capabilities.setCapability(CapabilityType.BROWSER_NAME, “”);
capabilities.setCapability(“newCommandTimeout”, “3600”);
In a test case, is it possible load a webpage as webView by passing the url to appium without tapping anything on the app? I tried driver.get(“http://someurl”) and got empty value from appium response.
in app a browser page is equivalent to an activity
launch app as a browser instance using cap browser.type=“browser”
driver.get(“web-url”);
driver.findElement(By.xpath(“uname”)).sendKeys(“uname”);
driver.findElement(By.xpath(“pwd”)).sendKeys(“pwd”);
driver.findElement(By.xpath(“login-button”)).click();
driver.get (" go to order page post login");
launch app as app using browser.type=“browser” and appPackage= " package name" and appActivity=’’ acitivity name";
// perform login
driver.startAcvitity(“app Package Name”,“Login page activity name”);
Open web browser and open mobile version of web site and perform testing
Open app with webview which internally opens a chrome less / safari browser session.
-> we do not pass app activity/package as it opens a browser and run more or less like a browser automation of web
2.-> we pass app package and app activity or app absolutte path and it launches app