public void RemoveDocument() { Page.Authentication.LogIn(); Page.Passport.OpenYaDisk(); Page.Disk.CreateNewDoc(docname); WebDriverFactory.CloseWindow(); WebDriverFactory.SwitchToFirstWindow(); Page.Disk.RemoveDoc(docname); WebDriverFactory.ReloadThePage(); bool isNewDocExist = Page.Disk.IsDocExist(docname); Assert.IsFalse(isNewDocExist); }
public void UpdateDocument() { Page.Authentication.LogIn(); Page.Passport.OpenYaDisk(); Page.Disk.CreateNewDoc(docname); WebDriverFactory.CloseWindow(); WebDriverFactory.SwitchToFirstWindow(); Page.Disk.UpdateDoc(updatedcontent); WebDriverFactory.CloseWindow(); WebDriverFactory.SwitchToFirstWindow(); string updatedDocContent = Page.Disk.GetUpdatedDoc(); Assert.AreEqual(OtherConstants.updatedcontent, updatedDocContent); }
public void MoveDocument() { Page.Authentication.LogIn(); Page.Passport.OpenYaDisk(); Page.Disk.CreateSecondFolder(); Page.Disk.CreateNewFolder(); Page.Disk.NavigateNewFolder(); Page.Disk.CreateNewDoc(docname); WebDriverFactory.CloseWindow(); WebDriverFactory.SwitchToFirstWindow(); Page.Disk.MoveDoc(); Page.Disk.NavigateSecondFolder(); bool isNewDocExist = Page.Disk.IsDocExist(docname); Assert.IsTrue(isNewDocExist); }