public BillingOrderPage FillPhone(string phone) { CustomTestContext.WriteLine($"Fill phone - '{phone}'"); PhoneInput.SendKeys(phone); return(this); }
public PartialViewResult EditPhone(Guid id) { Phone Phone = db.Phones.Find(id); PhoneInput model = new PhoneInput(Phone.RID, Phone.Carrier.RID, Phone.AreaCode, Phone.Prefix, Phone.Line, Phone.OrderUpdates, this.Account.DefaultPhone == Phone); ViewBag.Carriers = new SelectList(db.Carriers.ToList(), "RID", "Title", Phone.Carrier); return(PartialView("_EditPhone", model)); }
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(); }
public PartialViewResult EditPhoneConfirmed(PhoneInput model) { //todo Finish Method if (ModelState.IsValid) { } else { } return(PartialView("_Contact", Account)); }
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']")); } }
void Start() { PhoneInput phoneInput = this.GetComponent <PhoneInput>(); phoneInput.onJumpCallback = this.onJumpCallback; phoneInput.onCrouchCallback = this.onCrouchCallback; PlayerCollider playerCollider = this.GetComponent <PlayerCollider>(); playerCollider.onCollideCallback = this.onCollideCallback; this.originalPosition = this.transform.position; }
void ReleaseDesignerOutlets() { if (CallMeNowButton != null) { CallMeNowButton.Dispose(); CallMeNowButton = null; } if (HelpQuestion != null) { HelpQuestion.Dispose(); HelpQuestion = null; } if (ICallButton != null) { ICallButton.Dispose(); ICallButton = null; } if (LegalLabel != null) { LegalLabel.Dispose(); LegalLabel = null; } if (LegalSwitch != null) { LegalSwitch.Dispose(); LegalSwitch = null; } if (OrLabel != null) { OrLabel.Dispose(); OrLabel = null; } if (PhoneInput != null) { PhoneInput.Dispose(); PhoneInput = null; } if (PhoneLabel != null) { PhoneLabel.Dispose(); PhoneLabel = null; } }
/// <summary> /// Función para detectar cuanto se movió verticalmente /// </summary> /// <returns>Cuanto se movió verticalmente</returns> public float GetVertical() { float vertical = 0; if (Application.isMobilePlatform) { vertical = PhoneInput.GetVertical(); } else { vertical = PcInput.GetVertical(); } return(vertical); }
/// <summary> /// Función para detectar cuanto se movió horizontalmente /// </summary> /// <returns>Cuanto se movió horizontalmente</returns> public float GetHorizontal() { float horizontal = 0; if (Application.isMobilePlatform) { horizontal = PhoneInput.GetHorizontal(); } else { horizontal = PcInput.GetHorizontal(); } return(horizontal); }
public PartialViewResult CreatePhoneConfirmed(PhoneInput model) { //todo Finish Method if (ModelState.IsValid) { Phone Phone = new Phone(db.Carriers.Find(model.CarrierID), model.AreaCode, model.Prefix, model.Line); Account.Phones.Add(Phone); if (model.defaultMethod) { Account.DefaultPhone = Phone; } db.SaveChanges(); } else { } return(PartialView("_Contact", Account)); }
/// <summary> /// Calibrates the gyroscope. Taking the current values and giving /// them to the phone input manager to use as offsets /// Called from button on Calibrate UI /// </summary> public void CalibrateGyro() { //Get current phone rotation and store it so we can apply it i //if the player chooses lastCalibrationValues = Quaternion.Euler(PhoneInput.GetDeviceRotation()); }