Пример #1
0
        public BillingOrderPage FillPhone(string phone)
        {
            CustomTestContext.WriteLine($"Fill phone - '{phone}'");
            PhoneInput.SendKeys(phone);

            return(this);
        }
 private void FillAddressInfoInternal(Data.ClientPurchaseInfo clientInfo)
 {
     CountryDropDown.SelectByText(clientInfo.ShippingInfo.Country);
     FullNameInput.SendKeys(clientInfo.ShippingInfo.FullName);
     Address1Input.SendKeys(clientInfo.ShippingInfo.Address1);
     CityInput.SendKeys(clientInfo.ShippingInfo.City);
     ZipInput.SendKeys(clientInfo.ShippingInfo.Zip);
     PhoneInput.SendKeys(clientInfo.ShippingInfo.Phone);
     ShipToThisAddress.Click();
 }
Пример #3
0
        public void SendTexts(List <string> phones)
        {
            foreach (var phone in phones)
            {
                OpenNewMessage();
                PhoneInput.SendKeys(phone + Keys.Enter);

                MessageInput.SendKeys(Message);
                SendButton.Click();
                DriverManager.Driver.WaitForElementToDisappear(By.XPath("//div[@class = 'composeNewMessageWrapper']"));
            }
        }