Пример #1
0
 private void RunTest()
 {
     _browser.LaunchBrowser();
     _browser.NavigateToPage(_config.Url);
     Thread.Sleep(TimeSpan.FromSeconds(4));
     _browser.Driver.Title.Should().Contain("Sign in to your account");
 }
        public void GivenANewBrowserIsOpenForAUser(string userTypeString)
        {
            var userType = GetUserType(userTypeString);

            AllocateUser(userType);

            _browser = _browser
                       .SetBaseUrl(_c.Config.Services.TestWebUrl)
                       .SetTargetBrowser(_c.Config.TestSettings.TargetBrowser)
                       .SetTargetDevice(_c.Config.TestSettings.TargetDevice)
                       .SetDriver(_c.Driver);

            _browser.LaunchBrowser();
            _browser.NavigateToPage();
        }