Exemplo n.º 1
0
 public void SalvarFoto()
 {
     BtnSalvar.EsperarElemento(Browser);
     if (BtnSalvar.IsElementVisible(Browser))
     {
         MouseActions.ClickATM(Browser, BtnSalvar);
     }
 }
Exemplo n.º 2
0
 private void SalvarStatus()
 {
     BtnSalvar.EsperarElemento(Browser);
     if (BtnSalvar.IsElementVisible(Browser))
     {
         MouseActions.ClickATM(Browser, BtnSalvar);
     }
 }
Exemplo n.º 3
0
        public void SalvarSequenciaCenica()
        {
            BtnSalvar.EsperarElemento(Browser);
            BtnSalvar.Esperar(Browser, 2000);
            BtnSalvar.IsElementVisible(Browser);
            MouseActions.ClickATM(Browser, BtnSalvar);

            ListaInseridaSucesso();
        }
Exemplo n.º 4
0
        public void GerarAlbumPorPagina(string numeroPagina)
        {
            Browser.Abrir(FotosUrl);
            BtnSalvar.Esperar(Browser, 1000);
            Browser.RefreshPage();

            SelecionarAllFotos();
            ImprimirAlbum();
            SelecionarQTAlbum(numeroPagina);
            BtnSalvar.Esperar(Browser, 500);
        }
 public void Salvar(ConsumidorDTO dto)
 {
     if (!String.IsNullOrWhiteSpace(dto.Nome))
     {
         Nome.Limpar().PreencherCampo(dto.Nome);
     }
     if (dto.Sexo > 0)
     {
         Sexo.Find(el => el.ObterValor() == dto.Sexo.ToString()).Clicar();
     }
     if (!String.IsNullOrWhiteSpace(dto.NomeSocial))
     {
         NomeSocial.PreencherCampo(dto.NomeSocial);
     }
     if (!String.IsNullOrWhiteSpace(dto.DataNascimento))
     {
         DataNascimento.PreencherCampo(dto.DataNascimento);
     }
     if (!String.IsNullOrWhiteSpace(dto.CPF))
     {
         CPF.PreencherCampo(dto.CPF);
     }
     if (!String.IsNullOrWhiteSpace(dto.RG))
     {
         RG.PreencherCampo(dto.RG);
     }
     if (!String.IsNullOrWhiteSpace(dto.OrgaoEmissorUF))
     {
         OrgaoEmissorUF.SelecionarItemDropDown(dto.OrgaoEmissorUF);
     }
     if (!String.IsNullOrWhiteSpace(dto.OrgaoEmissor))
     {
         OrgaoEmissor.PreencherCampo(dto.OrgaoEmissor);
     }
     if (dto.TemDeficiencia)
     {
         ChkDeficiencia.PreencherCampo(1);
         if (!String.IsNullOrWhiteSpace(dto.IdTipoDeficiencia))
         {
             IdTipoDeficiencia.PreencherCampo(dto.IdTipoDeficiencia);
         }
         if (!String.IsNullOrWhiteSpace(dto.OutroTipoDeficiencia))
         {
             OutroTipoDeficiencia.PreencherCampo(dto.OutroTipoDeficiencia);
         }
     }
     if (!String.IsNullOrWhiteSpace(dto.CEP))
     {
         CEP.PreencherCampo(dto.CEP);
         Complemento.ClicarEAguardar(tempoEspera);
     }
     if (!String.IsNullOrWhiteSpace(dto.Logradouro))
     {
         Logradouro.PreencherCampo(dto.Logradouro);
     }
     if (!String.IsNullOrWhiteSpace(dto.Numero))
     {
         Numero.PreencherCampo(dto.Numero);
     }
     if (!String.IsNullOrWhiteSpace(dto.Cidade))
     {
         Cidade.PreencherCampo(dto.Cidade);
     }
     if (!String.IsNullOrWhiteSpace(dto.Estado))
     {
         Estado.PreencherCampo(dto.Estado);
     }
     if (!String.IsNullOrWhiteSpace(dto.Telefone))
     {
         Telefone.PreencherCampo(dto.Telefone);
     }
     if (!String.IsNullOrWhiteSpace(dto.Celular))
     {
         Celular.PreencherCampo(dto.Celular);
     }
     if (!String.IsNullOrWhiteSpace(dto.Preferencias_TipoNotificacao))
     {
         Preferencias_TipoNotificacao.PreencherCampo(dto.Preferencias_TipoNotificacao);
     }
     CapturarTela();
     BtnSalvar.Clicar();
 }
Exemplo n.º 6
0
 public void AlterarDadosImagem(string numeroCapitulo, string nomePersonagem, string nomeRoupa, string nomeCenario, string nomeAmbiente)
 {
     BtnSalvar.EsperarElemento(Browser);
     AlterarInformacoes(numeroCapitulo, nomePersonagem, nomeRoupa, nomeCenario, nomeAmbiente);
 }