private static async Task <string> SingIn(Page page, ScrappingCredentials ScrappingCredentials) { string logStatus = await ScrappingLoginPage.OpenMainPage(page); if (logStatus.Equals("Added")) { await ScrappingLoginPage.ClickSignIn(page); bool loginStatus = await ScrappingLoginPage.SignIn(page, ScrappingCredentials.Login, ScrappingCredentials.Password); logStatus = "LoggedIn"; if (!loginStatus) { logStatus = ""; } } return(logStatus); //SaveLoginStatus(int accountId, string logStatus); }
public AccountInfo() { ScrappingCredentials = new ScrappingCredentials(); }