//Here we have Initialized driver as AppiumDriver
driver.findElement(By.id(“doc.saulmm.notification:id/simple_notification”)).click();
Code Snippet:========================================TouchAction touch = new TouchAction(driver);
Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Message message = Message.creator(new PhoneNumber(“+91 77##########”),new PhoneNumber(“+170#########”), “your otp is 123456”).create();
Reference: (Click Here)
((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.HOME);
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);
Answer:
Code Snippet:==========================================str ===> Which text contains by the elementdriver.findElementsByAndroidUIAutomator(“new UiScrollable(new…
((PressesKeyCode) driver).pressKeyCode(AndroidKeyCode.BACK);