← Back to Discord Forum

Set value for input tag with type="color"

Hi there, I have a challenge with inputting a value through the color picker. I have an input with type = "color". Is there any way to set the color for such input?

This thread is trying to answer question "How to set a color value for an input tag with type='color'?"

1 reply
await page.locator('selector').filter({ hasText: 'someText' }).getByLabel('', { exact: true }).fill('#ae8989');
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.