Skip to content

Conversation

mxschmitt
Copy link
Member

@mxschmitt mxschmitt commented Mar 3, 2022

this fixes the following test:

================================== FAILURES ===================================
______________________ test_expect_file_chooser[firefox] ______________________

page = <Page url='about:blank'>

    def test_expect_file_chooser(page: Page) -> None:
        page.set_content("<input type=file></input>")
        with page.expect_file_chooser() as fc_info:
            page.click('input[type="file"]')
        fc = fc_info.value
>       fc.set_files(
            {"name": "test.txt", "mimeType": "text/plain", "buffer": b"Hello World"}
        )
E       AttributeError: 'NoneType' object has no attribute 'set_files'

tests\sync\test_input.py:24: AttributeError

@mxschmitt mxschmitt merged commit 93c60af into microsoft:main Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants