Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!