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);
 }
        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);
        }
 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();
 }
 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));
 }