How To Get CSS Value | Playwright Tutorial Part 65

preview_player
Показать описание
How to get element color or any CSS value using playwright.

---------------------------------------------------------------------
😊Just in case if you want to support me,

--------------------------Thank you---------------------------

Thanks for watching, if you like the video, give it a thumbs up 👆.
Sharing is caring, kindly share the video with your friends and colleagues.
Don't forget to subscribe and hit the bell 🔔 notification.

--------------------------------SOCIAL--------------------------------

Join our WhatsApp group (Only for Channel Members)

#letcode #playwright
Рекомендации по теме
Комментарии
Автор

I'm using Java so i can't write the code ..u mention above comment but i did get what u say...so konja purira maathiri sonna help full ha irrukum..

sjbhaskar
Автор

Hi, sorry 😒 i didn't saw the documentation properly. There is inbuilt function to do this in expect tohavecss.
Got few comments on that but unfortunately YouTube has removed those.
I'll update the same in next playwright video.

letcode
Автор

evaluate doesn't work for me I am using Playwright C#? Any way to this with C#?

sandeepbhadgaonkar
Автор

Hi Koushik, I am writing scripts in java language. How can i get window.getComputedStyle to fetch the css value. or how exactly i can use javascript code in my java file to get css values. Please comment.

shaheryarkhawar
Автор

Could you share the same situation for the hex color, like #d71920? I need it to be returned from getPropertyValue()

humeniukoleksandr