Skip to content

How to upload file (send file to input) #241

Closed
@mrthevinh

Description

@mrthevinh

Hi Botasaurus team,

I am trying to automate a process that involves uploading a file using Botasaurus. Specifically, I need to interact with an HTML element like <input type="file"> to select a local file and submit it.

I'm currently facing difficulties figuring out the correct way to send the file path to this input element within a Botasaurus task.

What I'm trying to do:
[Describe briefly what website or type of form you are automating. - Mô tả ngắn gọn trang web hoặc loại biểu mẫu bạn đang tự động hóa.]
Example: "I need to upload a profile picture on a settings page."

The HTML element looks like this (example):

<input type="file" id="file-upload" name="myFile">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions