Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        //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());
        }
Esempio n. 3
0
        /// <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();
        }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 public void Save(CandidateViewModel candidate)
 {
     FillCandidate(candidate);
     _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
     BtnSave.Click();
 }