Skip to content

[Bug]: The arguments for setInputFiles() generated by codegen do not include the file path. #40855

@yusuke-noda

Description

@yusuke-noda

Version

1.60.0

Steps to reproduce

  1. Run playwright codegen.
  2. Open page which includes element.
  3. Click and select file(s).

Expected behavior

The argument to setInputFiles() generated by codegen includes the full path of the file.

Actual behavior

The argument to setInputFiles() generated by codegen contains only filenames without path information.

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
    Memory: 17.80 GB / 31.78 GB
  Binaries:
    Node: 22.20.0 - C:\Program Files\nodejs\node.EXE
    npm: 11.7.0 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    VSCode: 1.120.0 - C:\Users\10383037\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  npmPackages:
    @playwright/test: ^1.60.0 => 1.60.0

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