//Here we have Initialized driver as AppiumDriver
driver.findElement(By.id(“doc.saulmm.notification:id/simple_notification”)).click();
Answer :
driver.installApp(“/UpgradeAPPVersion/TheApp-v1.7.0.apk”);Activity activity = new Activity(“io.cloudgrey.the_app”,”io.cloudgrey.the_app.MainActivity”);driver.startActivity(activity);
//All Connection Removed
Reference: (Click Here)
Dimension size = driver.manage().window().getSize()//Find swipe start and end point from screen’s with and height.//Find startx point…
((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.HOME);
MobileElement keyboard = (MobileElement)driver.findElement(MobileBy.className(“UIAKeyboard”));
keyboard.findElements(By.name(“Return”)).get(0).click();
Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Message message = Message.creator(new PhoneNumber(“+91 77##########”),new PhoneNumber(“+170#########”), “your otp is 123456”).create();
Code Snippet:========================================TouchAction touch = new TouchAction(driver);
As we all know that Appium is the most preferred test automation tool for mobile applications. It is the first choice of the testers…