module Playwright::FileChooser

Overview

FileChooser objects are dispatched by the page in the page.on('filechooser') event.

Defined in:

playwright/filechooser.cr

Instance Method Summary

Instance Method Detail

abstract def element : ElementHandle #

Returns input element associated with this file chooser.


[View source]
abstract def is_multiple : Bool #

Returns whether this file chooser accepts multiple files.


[View source]
abstract def page : Page #

Returns page this file chooser belongs to.


[View source]
def set_files(file : Path, options : SetFilesOptions?) #

[View source]
abstract def set_files(file : Array(Path), options : SetFilesOptions?) #

[View source]
def set_files(file : FileChooser::FilePayload, options : SetFilesOptions?) #

[View source]
abstract def set_files(file : Array(FileChooser::FilePayload), options : SetFilesOptions?) #

Sets the value of the file input this chooser is associated with. If some of the filePaths are relative paths, then they are resolved relative to the the current working directory. For empty array, clears the selected files.


[View source]
def set_files(file : Path) #

[View source]
def set_files(files : Array(Path)) #

[View source]
def set_files(file : FileChooser::FilePayload) #

[View source]
def set_files(files : Array(FileChooser::FilePayload)) #

[View source]