public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenSandboxPage(); //HomePageHelper.DeleteAllElementsLocally(); TourHelper.DeleteToursIfExist("webdriverTour"); #region create timeline _newTimeline = new Timeline { FromYear = -6061670000, ToYear = -5808809999, Title = "WebDriverApiTitle" }; Guid newTimelineId = ApiHelper.CreateTimelineByApi(_newTimeline); _newTimeline.Id = newTimelineId; #endregion #region create exhibit var contentItems = new Collection <ContentItem>(); var contentItem = new ContentItem() { Title = "WebDriverApi", MediaType = "image", Uri = @"http://yandex.st/www/1.609/yaru/i/logo.png", Caption = "", Order = 0, Attribution = "", MediaSource = "" }; contentItems.Add(contentItem); _newExhibit = new Exhibit() { Timeline_ID = newTimelineId, Title = "WebDriverApiExhibit", Year = -8596430000, ContentItems = contentItems }; _newExhibit.Id = new Guid(ApiHelper.CreateExhibitByApi(_newExhibit).ExhibitId); #endregion #region init new tour _newTour = new Tour(); _newTour.Name = "webdriverTour"; _newTour.Description = "webdriver description"; Bookmark exhibitBookmark = new Bookmark { Name = "WebDriverApiExhibitBookmark", Id = _newExhibit.Id, Type = "exhibit" }; Bookmark timelineBookmark = new Bookmark { Name = "WebDriverApiTimelineBookmark", Id = _newTimeline.Id, Type = "timeline" }; Collection <Chronozoom.Entities.Bookmark> bookmarks = new Collection <Chronozoom.Entities.Bookmark> { exhibitBookmark, timelineBookmark }; _newTour.Bookmarks = bookmarks; #endregion HomePageHelper.OpenSandboxPage(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); WelcomeScreenHelper.CloseWelcomePopup(); SearchHelper.InitSearchWindow(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); WelcomeScreenHelper.CloseWelcomePopup(); AuthorizationHelper.OpenLoginPage(); }
public static void ClassInitialize(TestContext testContext) { BrowserStateManager.RefreshState(); HomePageHelper.OpenSandboxPage(); HomePageHelper.DeleteAllElementsLocally(); ExhibitHelper.AddExhibitWithContentItem(Exhibit); _newExhibit = ExhibitHelper.GetNewExhibit(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); AuthorizationHelper.OpenLoginPage(); AuthorizationHelper.AuthenticateAsExistedGoogleUser(); HomePageHelper.DeleteAllElementsLocally(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); if (AuthorizationHelper.IsUserNamePresented()) { AuthorizationHelper.OpenLoginPage(); AuthorizationHelper.AuthenticateAsMicrosoftUser(); } }
public static void ClassInitialize(TestContext testContext) { BrowserStateManager.RefreshState(); HomePageHelper.OpenSandboxPage(); _timeline = new Timeline { Title = "WebdriverTitle" }; HomePageHelper.DeleteAllElementsLocally(); TimelineHelper.AddTimeline(_timeline); _newTimeline = TimelineHelper.GetLastTimeline(); }
public static void ClassInitialize(TestContext testContext) { BrowserStateManager.RefreshState(); HomePageHelper.OpenSandboxPage(); _timeline = new Timeline { Title = RandomString.GetRandomString(1, 200, isUsingSpecChars: true) }; HomePageHelper.DeleteAllElementsLocally(); TimelineHelper.AddTimeline(_timeline); _newTimeline = TimelineHelper.GetLastTimeline(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); AuthorizationHelper.OpenLoginPage(); AuthorizationHelper.AuthenticateAsMicrosoftUser(); //authenticate as existing cz user HomePageHelper.DeleteAllElementsLocally(); var exhibit = new Exhibit { Title = "WebdriverExhibitWithContent" }; ExhibitHelper.AddExhibitWithoutFormClosing(exhibit); ExhibitHelper.ClickByAddArtifact(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); #region create exhibit var contentItems = new Collection <ContentItem>(); var contentItem = new ContentItem { Title = "WebDriverApi", MediaType = "image", Uri = @"http://yandex.st/www/1.609/yaru/i/logo.png", Caption = "", Order = 0, Attribution = "AttributionApI", MediaSource = "https://trello.com/board/development/510a91105420848638003cda" }; contentItems.Add(contentItem); _newExhibit = new Exhibit { Timeline_ID = new Guid("bdc1ceff-76f8-4df4-ba72-96b353991314"), Title = "WebDriverApiExhibitAlexey", Year = -8596430000, ContentItems = contentItems }; _newExhibit.Id = new Guid(ApiHelper.CreateExhibitByApi(_newExhibit).ExhibitId); #endregion HomePageHelper.OpenSandboxPage(); }
public static void ClassInitialize(TestContext testContext) { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); _homePageTitle = HomePageHelper.GetTitle(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenSandboxPage(); HomePageHelper.DeleteAllElementsLocally(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); SearchHelper.InitSearchWindow(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); NavigationHelper.OpenHomePage(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); WelcomeScreenHelper.ResetPopupState(); HomePageHelper.OpenPage(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); HomePageHelper.OpenPage(); AuthorizationHelper.OpenLoginPage(); }
public void TestInitialize() { BrowserStateManager.RefreshState(); NavigationHelper.OpenHomePage(); WelcomeScreenHelper.CloseWelcomePopup(); }