Beispiel #1
0
        public CadastroPessoasPage(IWebDriver driver)
        {
            gerador     = new Geradores();
            this.driver = driver;

            txtCPF         = By.Id("txtCPF");
            abaDocumentos  = By.Id("ui-id-1");
            txtRG          = By.Id("txtRG");
            cmbOrgaoExp    = By.Id("cmbOrgaoExp");
            edtDataEmissao = By.Id("edtDataEmissao");
            cmbVinculo     = By.Id("cmbVinculo");

            txtNrDoc         = By.Id("txtNrDoc");
            txtNrReg         = By.Id("txtNrReg");
            cmbUF            = By.Id("cmbUF");
            edtEmissaoHab    = By.Id("edtEmissaoHab");
            edtVencimentoHab = By.Id("edtVencimentoHab");
            cmbCategoria     = By.Id("cmbCategoria");

            abaReferencias        = By.Id("ui-id-2");
            txtNomeReferencia     = By.Id("txtNomeReferencia");
            cmbTipoRelacionamento = By.Id("cmbTipoRelacionamento");
            txtCidRef             = By.Id("txtCidRef");
            selecCidRef           = By.LinkText("PORTO ALEGRE/RS");
            txtDDDFone1           = By.Id("txtDDDFone1");
            txtTelefoneReferencia = By.Id("txtTelefoneReferencia");
            btnAddReferencia      = By.Id("tlbEspecialidade_tlbEspecialidadeBtnAppendImg");

            abaDadosPessoais = By.Id("ui-id-3");
            txtNome          = By.Id("txtNome");
            txtNat           = By.Id("txtNat");
            selecNat         = By.LinkText("PORTO ALEGRE/RS");
            txtNascimento    = By.Id("txtNascimento");
            cmbSexo          = By.Id("cmbSexo");
            txtPai           = By.Id("txtPai");
            txtMae           = By.Id("txtMae");

            txtLogradouro       = By.Id("txtLogradouro");
            txtNumero           = By.Id("txtNumero");
            txtBairro           = By.Id("txtBairro");
            txtCidade           = By.Id("txtCid");
            selecCidadeEndereco = By.LinkText("PORTO ALEGRE/RS");
            txtDDDFixo          = By.Id("txtDDDFixo");
            txtTelefone         = By.Id("txtTelefone");

            btnSalvar         = By.Id("tlbPrincipal_btnSalvarImg");
            btnEnviarPesquisa = By.XPath("/html/body/div[6]/div[3]/div/button[1]");

            btnConfirmaOptin = By.Id("btnEnviar");
            btnCancelaOptin  = By.Id("btnCancelar");
            btnFechaAviso    = By.XPath("/html/body/div[3]/div[3]/div/button/span");
            btnFechaOptin    = By.XPath("//*[@id='OpenPopup_ctl00_HCB1']/img");
        }
Beispiel #2
0
 public string GerarSenha()
 {
     return(Geradores.GerarSenha());
 }
 public void GerarCodigoESenha()
 {
     Codigo = Geradores.GerarCodigoValido();
     Senha  = Geradores.GerarSenha();
 }
Beispiel #4
0
        public int GerarCodigoValido(Random random = null)
        {
            int randNum = Geradores.GerarCodigo(random);

            return((_usuarioRepositorio.ObterPeloCodigo(randNum) == null) ? randNum : GerarCodigoValido(random));
        }