/** * This method provides the user to login into edit google docs page through google authorization. * * @param drone WebDrone * @return EditInGoogleDocsPage */ public static EditInGoogleDocsPage signIntoEditGoogleDocFromDetailsPage(WebDrone drone) throws InterruptedException { DocumentDetailsPage detailsPage = ShareUser.getSharePage(drone).render(); detailsPage.render(); GoogleDocsAuthorisation googleAuthorisationPage = detailsPage.editInGoogleDocs().render(); return signInGoogleDocs(drone, googleAuthorisationPage).render(); }
/** * This method provides edit google docs page. * * @param drone WebDrone * @return EditInGoogleDocsPage */ public static EditInGoogleDocsPage openEditGoogleDocFromDetailsPage(WebDrone drone) { DocumentDetailsPage detailsPage = ShareUser.getSharePage(drone).render(); detailsPage.render(); EditInGoogleDocsPage googleDocsPage = detailsPage.editInGoogleDocs().render(); if (isGoogleDocsV3) { googleDocsPage = switchToGoogleWindow(drone).render(); } return googleDocsPage.render(); }