public void GivenIAmSignedInWithEmailAndPasswordEndToEnd(string email, string password) { _signInPage = SignInPage.NavigateTo(_driver, _settingsUtility); _signInPage.EnterDataIntoField(_signInPage.EmailInput, email); _signInPage.EnterDataIntoField(_signInPage.PasswordInput, password); _signInPage.SignInButton.Click(); var expectedHomePageUrl = $"{_settingsUtility.BaseUrl}/"; new WebDriverWait(_driver, TimeSpan.FromSeconds(2)).Until(ExpectedConditions.UrlToBe(expectedHomePageUrl)); }
public void WhenIEnterForEmail(string email) { _signInPage.EnterDataIntoField(_signInPage.EmailInput, email); }