← Back to Discord Forum

How to use a select inside of a pseudo element?

The title basically. I have a select I need to fill select values for, but its located inside a pseudo element. I know that playwright can't access pseudo elements directly, but is there a way around this? This is what I'm thinking so far, but I'm not sure how to proceed from here. page.evaluate(f"window.getComputedStyle(document.getElementById({SELECT_ID}), '::before')")

This thread is trying to answer question "How can I use a select inside of a pseudo element using Playwright?"

0 replies
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.