Esempio n. 1
0
        public SignUpSteps(ScenarioContext scenarioContext)
        {
            _scenarioContext = scenarioContext;
            var webDriver = _scenarioContext.Get <IWebDriver>(Context.WebDriver);

            _companySignUpPage = new CompanySignUpPage(webDriver);
        }
 public CompanySignUpSteps(ScenarioContext scenarioContext)
 {
     _scenarioContext   = scenarioContext;
     _webDriver         = _scenarioContext.Get <IWebDriver>(Context.WebDriver);
     _companySignUpPage = new CompanySignUpPage(_webDriver);
     _signInPage        = new SignInPage(_webDriver);
 }
Esempio n. 3
0
        public new void Setup()
        {
            var user = CreateUserViaApi();

            _webDriver.Navigate().GoToUrl("https://newbookmodels.com/auth/signin");
            _js.ExecuteScript($"localStorage.setItem('access_token','{user.TokenData.Token}');");
            _companySignUpPage = new CompanySignUpPage(_webDriver);
        }