public void SetUp() { mainPage = new MainPage(WebDriver); yandexMusicPage = new YandexMusicPage(WebDriver); loginPage = new LoginPage(WebDriver); mailIncomingMessagesPage = new MailPage(WebDriver); mainPage.MailLoginClick(); windowActions.SwitchBetweenWindows(WebDriver, 1); loginPage.SignIn(TestData.validLogin, TestData.validPassword); mailIncomingMessagesPage.YandexHeaderClick(); }