public void ValidarLabels() { 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); Assert.AreEqual("Default Form", pageObject.TituloCard.Text); Assert.AreEqual("Basic form layout", pageObject.DescricaoCard.Text); Assert.AreEqual("Email", pageObject.LabelEmail.Text); Assert.AreEqual("Password", pageObject.LabelPassword.Text); }
public void VerificarCamposHabilitados() { 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); Assert.AreEqual(true, pageObject.CampoEmail.Enabled); Assert.AreEqual(true, pageObject.CampoPassword.Enabled); Assert.AreEqual(true, pageObject.BotaoSubmit.Enabled); Assert.AreEqual(true, pageObject.BotaoCancel.Enabled); }
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); }