Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(screenshot): create directories for screenshot file #3247

Merged
merged 1 commit into from
Aug 17, 2020

Conversation

JoelEinbinder
Copy link
Contributor

Runs mkdir before writeFile for screenshots. This makes the screenshot api a bit nicer to use. I also added a test for the path argument, because it turns out it was completely untested!

fixes #2930

rwoll added a commit to rwoll/playwright that referenced this pull request Jul 31, 2020
This is to match the behavior for screenshots path added in microsoft#3247.
rwoll added a commit to rwoll/playwright that referenced this pull request Jul 31, 2020
This is to match the behavior for screenshots path added in microsoft#3247.
pavelfeldman pushed a commit that referenced this pull request Jul 31, 2020
This is to match the behavior for screenshots path added in #3247.
@rwoll
Copy link
Member

rwoll commented Jul 31, 2020

🚢 it! @JoelEinbinder I've matched the download.saveAs API to have this behavior (#3249).

Copy link
Contributor

@dgozman dgozman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do the same in readProtocolStream to cover tracing and pdf. Also, there are similar issues in rpc/client.

@JoelEinbinder
Copy link
Contributor Author

Let's do the same in readProtocolStream to cover tracing and pdf. Also, there are similar issues in rpc/client.

done.

@JoelEinbinder JoelEinbinder merged commit dfa1f10 into microsoft:master Aug 17, 2020
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.

[BUG] page.screenshot doesn't create folder if needed
3 participants