public void ChangeName(string newName, string newSurname) { WaitersWrapper.WaitElementInteractable(_webDriver, _nameInputButton, 10); _webDriver.FindElement(_nameInputButton).SendKeys(Keys.Control + "a" + Keys.Backspace); _webDriver.FindElement(_nameInputButton).SendKeys(newName); _webDriver.FindElement(_surnameInputButton).SendKeys(Keys.Control + "a" + Keys.Backspace); _webDriver.FindElement(_surnameInputButton).SendKeys(newSurname); _webDriver.FindElement(_saveButton).Click(); WaitersWrapper.WaitElementAppearDisappear(_webDriver, _confirmationMessage, 10); }
public void SendMessage(string destination, string message) { WaitersWrapper.WaitElementInteractable(_webDriver, _writeButton, 10); _webDriver.FindElement(_writeButton).Click(); WaitersWrapper.WaitElementInteractable(_webDriver, _destinationAddressButton, 10); _webDriver.FindElement(_destinationAddressButton).SendKeys(destination); _webDriver.FindElement(_messageTextButton).SendKeys(message); _webDriver.FindElement(_sendButton).Click(); WaitersWrapper.WaitElementAppearDisappear(_webDriver, _sendConfirmation, 20); }