Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
access css color property of an element

im trying to verify that a

is displayed in red i cant access the css color property and when i try to use ele.getCSSProperty("color") the value is [object object] for some reason

                let alert = await $("#newPass-help-block");
                let alertExist = await alert.isExisting();
                let sAlert = await $("#serverError");
                let sAlertExist = await sAlert.isExisting();

                    if (sAlertExist == true) {
                        const sAlertColor = await sAlert.getCSSProperty("color")
                        console.log("Your password either is the same as your username");
                        console.log("or is the same as your last 5 passwords");
                        console.log(sAlertColor);

                    }
                    else if (alertExist == true) {
                        const alertColor = await alert.getCSSProperty("color")
                        console.log("Invalid Password");
                        console.log(alertColor);
                        
                        if (invalidPass.length<8) {
                            console.log("Password length  is not meeting the requirements");
                        }
                        else{
                            console.log("Password most contain letters numbers and symbols");
                        }
                    

                    }

the rgba color property do appear on the terminal but not by the console log

[0-0] 2022-05-27T15:24:03.965Z INFO webdriver: RESULT rgba(255, 12, 62, 1)
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda