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

Enable downloading files to the default directory for Chrome Headless (closes #3127) #4043

Merged
merged 4 commits into from
Jul 22, 2019

Conversation

AndreyBelym
Copy link
Contributor

Closes #3127.


return tab;
return tabs.filter(t => t.type === 'page' && t.url.indexOf(browserId) > -1)[0];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of string.indexOf(subString) > -1 it's possible to use string.includes(subString).
It is a little readable and shorter.

@@ -72,7 +120,7 @@ export async function createClient (runtimeInfo) {
runtimeInfo.client = client;

await client.Page.enable();
await client.Network.enable();
await client.Network.enable({});
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is {} argument necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's required by type definitions:

https://github.com/ChromeDevTools/devtools-protocol/blob/master/types/protocol-proxy-api.d.ts#L1944

As you can see params is not optional.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@AndreyBelym AndreyBelym merged commit cef05a4 into DevExpress:master Jul 22, 2019
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this pull request Dec 18, 2019
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.

Download file works in chromium but fails with chromium:headless (linux)
4 participants