public void InsereEVerificaTextoNosInputs() { AbreUrl("https://www.bootstrapdash.com/demo/star-admin-pro-vue/demo_1/#/basicFormElements/"); BasicInputGroupsElementsPgo pageObject = new BasicInputGroupsElementsPgo(driver); Esperas espera = new Esperas(driver); espera.EsperaElementoSerClicavel(pageObject.Campo1); DadosParaInputs dados = new DadosParaInputs(); pageObject.Campo1.SendKeys(dados.UserName); pageObject.Campo2.SendKeys(dados.UserName); pageObject.Campo3.SendKeys(dados.Valor.ToString()); Assert.AreEqual(dados.UserName, BuscaValorDoElementoParaInputs(driver, pageObject.Campo1)); Assert.AreEqual(dados.UserName, BuscaValorDoElementoParaInputs(driver, pageObject.Campo2)); Assert.AreEqual(dados.Valor.ToString(), BuscaValorDoElementoParaInputs(driver, pageObject.Campo3)); Assert.AreEqual("00.0", pageObject.Campo4.Text); }
public void InsereEVerificaTextoNosInputs() { AbreUrl("https://www.bootstrapdash.com/demo/star-admin-pro-vue/demo_1/#/basicFormElements/"); DefaultFormElementsPgo pageObject = new DefaultFormElementsPgo(driver); Esperas espera = new Esperas(driver); espera.EsperaElementoSerClicavel(pageObject.CampoEmail); DadosParaInputs dados = new DadosParaInputs(); pageObject.CampoEmail.SendKeys(dados.Email); pageObject.CampoPassword.SendKeys(dados.Password); var valorAtualEmail = BuscaValorDoElementoParaInputs(driver, pageObject.CampoEmail); var valorAtualPassword = BuscaValorDoElementoParaInputs(driver, pageObject.CampoPassword); Assert.AreEqual(dados.Email, valorAtualEmail); Assert.AreEqual(dados.Password, valorAtualPassword); }
public void InsereEVerificaTextoNosInputs() { AbreUrl("https://www.bootstrapdash.com/demo/star-admin-pro-vue/demo_1/#/basicFormElements/"); InputSizeElementsPgo pageObject = new InputSizeElementsPgo(driver); Esperas espera = new Esperas(driver); espera.EsperaElementoSerClicavel(pageObject.CampoSmallInput); DadosParaInputs dados = new DadosParaInputs(); pageObject.CampoLargeInput.SendKeys(dados.Email); pageObject.CampoDefaultInput.SendKeys(dados.Email); pageObject.CampoSmallInput.SendKeys(dados.Email); pageObject.ComboSmallInput.Click(); pageObject.OptionSmallInput.Click(); pageObject.ComboDefaultInput.Click(); pageObject.OptionDefaultInput.Click(); pageObject.CampoLargeInput.Click(); pageObject.OptionLargeInput.Click(); Assert.AreEqual(dados.Email, BuscaValorDoElementoParaInputs(driver, pageObject.CampoLargeInput)); Assert.AreEqual(dados.Email, BuscaValorDoElementoParaInputs(driver, pageObject.CampoDefaultInput)); Assert.AreEqual(dados.Email, BuscaValorDoElementoParaInputs(driver, pageObject.CampoSmallInput)); Assert.AreEqual("This is First option", BuscaValorDoElementoParaDropDowns(driver, pageObject.ComboSmallInput)); Assert.AreEqual("Selected Option", BuscaValorDoElementoParaDropDowns(driver, pageObject.ComboDefaultInput)); Assert.AreEqual("This is an option with object value", BuscaValorDoElementoParaDropDowns(driver, pageObject.ComboLargeInput)); }
public void InsereEVerificaTextoNosInputs() { AbreUrl("https://www.bootstrapdash.com/demo/star-admin-pro-vue/demo_1/#/basicFormElements/"); BasicFormElementsPgo pageObject = new BasicFormElementsPgo(driver); Esperas espera = new Esperas(driver); espera.EsperaElementoSerClicavel(pageObject.CampoEmail); DadosParaInputs dados = new DadosParaInputs(); pageObject.CampoName.SendKeys(dados.Name); pageObject.CampoEmail.SendKeys(dados.Email); pageObject.CampoPassword.SendKeys(dados.Password); pageObject.CampoUpload.SendKeys(dados.Arquivo); pageObject.CampoCity.SendKeys(dados.City); pageObject.CampoMessage.SendKeys(dados.Message); Assert.AreEqual(dados.Name, BuscaValorDoElementoParaInputs(driver, pageObject.CampoName)); Assert.AreEqual(dados.Email, BuscaValorDoElementoParaInputs(driver, pageObject.CampoEmail)); Assert.AreEqual(dados.Password, BuscaValorDoElementoParaInputs(driver, pageObject.CampoPassword)); Assert.AreEqual("C:\\fakepath\\Arquivo.docx", BuscaValorDoElementoParaInputs(driver, pageObject.CampoUpload)); Assert.AreEqual(dados.City, BuscaValorDoElementoParaInputs(driver, pageObject.CampoCity)); Assert.AreEqual(dados.Message, BuscaValorDoElementoParaInputs(driver, pageObject.CampoMessage)); }
public void InsereEVerificaTextoNosInputs() { AbreUrl("https://www.bootstrapdash.com/demo/star-admin-pro-vue/demo_1/#/basicFormElements/"); HorizontalTwoColumnElementsPgo pageObject = new HorizontalTwoColumnElementsPgo(driver); Esperas espera = new Esperas(driver); espera.EsperaElementoSerClicavel(pageObject.CampoFirstName); DadosParaInputs dados = new DadosParaInputs(); pageObject.CampoFirstName.SendKeys(dados.Name); pageObject.CampoLastName.SendKeys(dados.UserName); pageObject.ComboGender.Click(); pageObject.OptionGender.Click(); pageObject.ComboCategory.Click(); pageObject.OptionCategory.Click(); pageObject.CampoAddress1.SendKeys(dados.Addrress1); pageObject.CampoAddress2.SendKeys(dados.Address2); pageObject.CampoCity.SendKeys(dados.City); pageObject.CampoDateOfBirth.SendKeys(dados.DateOfBirth.ToString()); pageObject.LabelMembership.Click(); pageObject.CampoState.SendKeys(dados.State); pageObject.CampoPincode.SendKeys(dados.Pincode); pageObject.ComboCountry.Click(); pageObject.OptionCountry.Click(); Assert.AreEqual(dados.Name, BuscaValorDoElementoParaInputs(driver, pageObject.CampoFirstName)); Assert.AreEqual(dados.UserName, BuscaValorDoElementoParaInputs(driver, pageObject.CampoLastName)); Assert.AreEqual("Male", BuscaValorDoElementoParaDropDowns(driver, pageObject.ComboGender)); Assert.AreEqual("Category 1", BuscaValorDoElementoParaDropDowns(driver, pageObject.ComboCategory)); Assert.AreEqual(dados.Addrress1, BuscaValorDoElementoParaInputs(driver, pageObject.CampoAddress1)); Assert.AreEqual(dados.Address2, BuscaValorDoElementoParaInputs(driver, pageObject.CampoAddress2)); Assert.AreEqual(dados.City, BuscaValorDoElementoParaInputs(driver, pageObject.CampoCity)); Assert.AreEqual(dados.DateOfBirth.ToString(), BuscaValorDoElementoParaInputs(driver, pageObject.CampoDateOfBirth)); Assert.AreEqual(true, pageObject.RadioMembership.Selected); Assert.AreEqual(dados.State, BuscaValorDoElementoParaInputs(driver, pageObject.CampoState)); Assert.AreEqual(dados.Pincode, BuscaValorDoElementoParaInputs(driver, pageObject.CampoPincode)); Assert.AreEqual("Britain", BuscaValorDoElementoParaDropDowns(driver, pageObject.ComboCountry)); }