public void given_valid_logged_in_user_when_adding_task_should_add_task() { Threaded <Session> .With <Chrome>() .NavigateTo <LoggedOutPage>(Url) .Username.EnterText(ValidUsername) .Password.EnterText(Password) .Login.Click <UpgradePromptPage>() .NotNow.Click(); var taskInfo = new { Name = string.Format("Task {0}", Guid.NewGuid()), Note = "This is a note." }; Threaded <Session> .CurrentBlock <LoggedInPage>() .ToolBar .NewTask.Click() .Name.EnterText(taskInfo.Name) .Note.EnterText(taskInfo.Note) .Save.Click() .TaskLists.First(list => list.Name == "Actions") .TaskRows.First(row => row.Name == taskInfo.Name) .VerifyThat(row => row.Should().NotBeNull()) .Delete(); Threaded <Session> .End(); }
public void BeforeEach() { Threaded <Session> .End(); Threaded <DerivedSession> .End(); Threaded <DerivedSessionWithWrongArgs> .End(); }
public void given_session_has_been_loaded_with_driver_when_ending_should_end_session() { Threaded <Session> .With <LocalPhantomEnvironment>(); Threaded <Session> .End(); }
public void Given_session_has_been_loaded_with_driver_When_ending_THen_should_end_session() { Threaded <Session> .With <PhantomJS>(); Threaded <Session> .End(); }
public void Given_session_has_been_loaded_with_driver_When_ending_Then_should_end_session() { Threaded <Session> .With <HeadlessChrome>(); Threaded <Session> .End(); }
public override void Dispose() { After(); Threaded <Session> .End(); base.Dispose(); }
public void Test() { //Act searchPageUnderTest.SearchInput.AppendText("Selenium"); searchPageUnderTest.SearchButton.Tag.Submit(); var firstResultAddress = searchPageUnderTest.FirstResultAddress.Tag.Text; //Assert Assert.Equal("www.seleniumhq.org/", firstResultAddress); Threaded <Session> .End(); }
public static void TearDownScenario() { // write any cleanup which you want to apply once for every scenario try { ScenarioContext.Current.Get <Cleaner>().Clean(); Threaded <Session> .End(); } catch (Exception e) { Console.Write(e); } }
public void Dispose() { Threaded <Session> .End(); }
public void TestTearDown() { Threaded <Session> .End(); }
public void Cleanup() { Threaded <Session> .End(); }
public void AfterEach() { Threaded <Session> .End(); }
public void AfterScenario() { Threaded <Session> .End(); }
public void OneTimeTearDown() { Threaded <Session> .End(); }
public void after_each() { Threaded <Session> .End(); }