@Test
  public void F_more() {

    // List<WebElement> editBox=driver.findElements(By.className("android.widget.TextView"));
    // editBox.get(3).click();

    // driver.findElement(By.name("Collections")).click();

    // driver.findElement(By.name("COOL!")).click();

    List<WebElement> collection1 =
        driver.findElements(By.className("android.view.View")); // Taping on Collection folder
    collection1.get(5).click();

    TouchAction tActionn = new TouchAction(driver); // Tap function
    tActionn.tap(150, 301).release().perform();

    // driver.findElement(By.xpath("//*[@class='android.view.View' and @index='5']")).click();

    driver.findElementByAccessibilityId("More").click();
    driver.findElementByName("Info").click();
    driver.findElement(By.id("com.mimedia.gallery:id/gallery_action_bar_nav_icon")).click();

    driver.findElementByAccessibilityId("More").click();
    driver.findElementByName("Add to Collection").click();
    driver.findElement(By.id("com.mimedia.gallery:id/merged_collection_cover")).click();
    driver.findElementByName("Add to Collection").click();

    driver.findElementByAccessibilityId("More").click();

    driver.findElementByName("Add to MiDrive").click();
    List<WebElement> midrive = driver.findElements(By.className("android.widget.FrameLayout"));
    midrive.get(0).click();
    // driver.findElement(By.xpath("//*[@class='android.widget.FrameLayout' and
    // @index='0']")).click();
    driver.findElementByName("Add to MiDrive").click();

    driver.findElementByAccessibilityId("More").click();
    driver.findElementByName("Delete").click();
    driver.findElementByName("Cancel").click();

    driver.findElementByAccessibilityId("More").click();
    driver.findElementByName("Delete").click();
    driver.findElementByName("Delete").click();
    driver.findElement(By.id("com.mimedia.gallery:id/gallery_action_bar_nav_icon")).click();

    TouchAction tActionn1 = new TouchAction(driver); // Tap function
    tActionn1.tap(150, 301).release().perform();
    WebDriver augmentedDriver = new Augmenter().augment(driver); // Landscape orientation
    ((Rotatable) augmentedDriver).rotate(ScreenOrientation.LANDSCAPE); // Landscape orientation
    WebDriver augmentedDriver1 = new Augmenter().augment(driver); // Landscape orientation
    ((Rotatable) augmentedDriver1).rotate(ScreenOrientation.PORTRAIT);
    for (int i = 0; i <= 0; i++) {
      driver
          .findElement(By.id("com.mimedia.gallery:id/gallery_action_bar_nav_icon"))
          .click(); // Back key twice
    }
  }
  @Test
  public void G_sharing() {
    // driver.findElement(By.name("Gallery")).click();
    // List<WebElement> editBox=driver.findElements(By.className("android.widget.TextView"));
    // editBox.get(3).click();
    List<WebElement> collection1 =
        driver.findElements(By.className("android.view.View")); // Taping on Collection folder
    collection1.get(5).click();
    driver.findElement(By.xpath("//*[@class='android.view.View' and @index='2']")).click();

    // TouchAction tActionn=new TouchAction(driver); //Tap function
    // tActionn.tap(150,301).release().perform();
    driver.findElementByAccessibilityId("Share").click();
    driver.navigate().back();
    driver.findElement(By.id("com.mimedia.gallery:id/gallery_action_bar_nav_icon")).click();
  }
  @Test
  public void D_camera() {

    // driver.findElement(By.name("Gallery")).click();

    driver.findElementByAccessibilityId("Camera").click();
    WebDriver augmentedDriver = new Augmenter().augment(driver); // Landscape orientation
    ((Rotatable) augmentedDriver).rotate(ScreenOrientation.LANDSCAPE); // Landscape orientation

    driver.findElement(By.id("com.android.camera2:id/second_shutter_button")).click();

    driver.findElement(By.id("com.android.camera2:id/third_shutter_button")).click();
    driver.findElement(By.id("com.android.camera2:id/third_shutter_button")).click();

    WebDriver augmentedDriver1 = new Augmenter().augment(driver); // Landscape orientation
    ((Rotatable) augmentedDriver1).rotate(ScreenOrientation.PORTRAIT);
    {
      driver.findElement(By.id("com.android.camera2:id/second_shutter_button")).click();
    }
    driver.findElement(By.id("com.android.camera2:id/third_shutter_button")).click();
    driver.findElement(By.id("com.android.camera2:id/third_shutter_button")).click();
    driver.navigate().back();
  }