public void Save(string email, string name, string lastname, string phone, string address) { BtnCreate.Click(); TxtEmail.EnterText(email); TxtFirstName.EnterText(name); TxtLastName.EnterText(lastname); TxtPhone.EnterText(phone); TxtAddress.EnterText(address); BtnSave.Click(); }
//click save button public PropertyOwnerPage ClickSave() { while (!BtnSave.Displayed && BtnSave.Enabled) { Thread.Sleep(100); } BtnSave.Click(); while (!Driver.driver.Url.Contains("Home/Index")) { Thread.Sleep(100); } return(new PropertyOwnerPage()); }
/// <summary> /// Save and accept /// </summary> /// <returns></returns> public RentalPropertiesPage ClickSaveAndAcceptListRental() { while (!BtnSave.Displayed && BtnSave.Enabled) { Thread.Sleep(100); } BtnSave.Click(); Driver.driver.SwitchTo().Alert().Accept(); while (!Driver.driver.Url.Contains("RentalProperties")) { Thread.Sleep(100); } return(new RentalPropertiesPage()); }
public void FillUserForm(string initial, string middleName, string firstName) { TxtInitial.EnterText(initial); TxtFirstName.EnterText(firstName); TxtMiddleName.EnterText(middleName); BtnSave.Click(); SeleniumSetMethods.EnterText(TxtInitial, initial); SeleniumSetMethods.EnterText(TxtFirstName, firstName); SeleniumSetMethods.EnterText(TxtMiddleName, middleName); SeleniumSetMethods.Click(BtnSave); //TxtInitial.SendKeys(initial); //TxtFirstName.SendKeys(firstName); //TxtMiddleName.SendKeys(middleName); //BtnSave.Click(); }
public string Run(string script) { NavigateTo(); if (SelScript.SelectedOption.Contains(ScriptName)) { SelScript.SelectOption(ScriptName); WaitForPageLoad(); } else { BtnNew.Click(); TxtScriptName.Value = ScriptName; BtnSave.Click(); } TxtScript.Value = script; BtnRun.Click(); WaitForPageLoad(); return(TxtResult.Value); }
public void Save(CandidateViewModel candidate) { FillCandidate(candidate); _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5); BtnSave.Click(); }