Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

150
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda