コード例 #1
0
 private void SetTheTransferFromAndTo(string transferFrom, string transferTo)
 {
     _browser.Clear(EventsPage.ParticipantTransferFromTextfield(_participantId));
     _browser.Driver.WaitUntilVisible(EventsPage.ParticipantTransferFromTextfield(_participantId)).SendKeys(transferFrom);
     _browser.Clear(EventsPage.ParticipantTransferToTextfield(_participantId));
     _browser.Driver.WaitUntilVisible(EventsPage.ParticipantTransferToTextfield(_participantId)).SendKeys(transferTo);
 }
コード例 #2
0
        private void ClearTheTransferFromAndToTextFields()
        {
            var transferFromText = _browser.Driver.WaitUntilVisible(EventsPage.ParticipantTransferFromTextfield(_participantId)).GetAttribute("value");

            DeleteTextFromTextField.Delete(_browser, EventsPage.ParticipantTransferFromTextfield(_participantId), transferFromText.Length);
            var transferToText = _browser.Driver.WaitUntilVisible(EventsPage.ParticipantTransferToTextfield(_participantId)).GetAttribute("value");

            DeleteTextFromTextField.Delete(_browser, EventsPage.ParticipantTransferToTextfield(_participantId), transferToText.Length);
        }
コード例 #3
0
 public void WhenTheUserAttemptsToSendATransferEventWithABlankTransferFromAndTo()
 {
     SelectAConference();
     GetTheConferenceDetailsById();
     VerifyHearingDetails();
     VerifyParticipantDetails();
     _participantId = GetParticipantId();
     _participantId.Should().NotBeEmpty();
     _participantState = ParticipantState.InHearing;
     _commonSharedSteps.WhenTheUserSelectsTheOptionFromTheDropdown(_browser.Driver, EventsPage.ParticipantEventDropdown(_participantId), "Transfer");
     _browser.Driver.WaitUntilVisible(EventsPage.ParticipantTransferFromTextfield(_participantId)).Displayed.Should().BeTrue();
     ClearTheTransferFromAndToTextFields();
 }
コード例 #4
0
 public void WhenTheUserSendsAParticipantEvent()
 {
     SelectAConference();
     GetTheConferenceDetailsById();
     VerifyHearingDetails();
     VerifyParticipantDetails();
     _participantId = GetParticipantId();
     _participantId.Should().NotBeEmpty();
     _participantState = ParticipantState.InHearing;
     _commonSharedSteps.WhenTheUserSelectsTheOptionFromTheDropdown(_browser.Driver, EventsPage.ParticipantEventDropdown(_participantId), "Transfer");
     _browser.Driver.WaitUntilVisible(EventsPage.ParticipantTransferFromTextfield(_participantId)).Displayed.Should().BeTrue();
     SetTheTransferFromAndTo("WaitingRoom", "HearingRoom");
     _browser.Click(EventsPage.ParticipantSendEventButton(_participantId));
 }