Skip to content

Playwright - file upload over cdp #1203

@ta-soft

Description

@ta-soft

Hi there,

What can effectively replace the below python playwright code, over a lightpanda cdp connection, to send a picture to send a picture to an element of type (example)

locator = page.locator('#input_188')
locator.set_input_files(file_path)

I have tried a few different things and none worked. I won't even detail what I've tried because I reckon I was completely off mark and have no idea how to achieve this over CDP.

Thanks in advance for any help!

Metadata

Metadata

Assignees

Labels

CDPChrome Debug Protocolweb API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions