-
Notifications
You must be signed in to change notification settings - Fork 172
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
Add Header #59
Comments
Kind of have the same problem with the setCookie i can confirm the test runs as a scripted test but besides the fact that it takes forever to run the test, it does also discard the header/cookie information var script = wpt.scriptToString([
{setCookie: [ 'example-url.com', 'cookie_name=cookie_value']},
{navigate: 'http://example-url.com'}
]);
wpt.runTest( script, options_wpt, function( err, data ) {
... |
@7Ds7 does it work if you include the scheme, e.g.:
|
@jfsiii that seems to be exactly it ohhh my, thanks a lot :) |
same issue here, and the customHeaders param allowed in the UI is not supported here as well (i couldn't find it between the mapping). @marcelduran any idea on why? |
I just tried to use Referenced: |
Hello from 2024. This is still actual. I console logged the result of |
I've been using the Lighthouse node program from Google directly and it works great, it's what WPT uses under the covers, so I think better to just bypass WPT anyway. Unless there is some extraordinary feature you need from WPT? |
Thanks @danwfreeman. I think I will start using Lighthouse as well. Just push HTML report to S3 and reference it inside the reports. Nice to know, I will save some $$. Shame on WPT team lol. Losing clients over 9-year-old-still-open-issues |
Hello there! Merry Christmas! Maybe Santa can bring us the solution for this ticket? I need it for add headers to the lighthouse tests. Thanks! |
When using the WPT web UI the addHeader method works great.
When using the node wrapper program I cannot get it to work.
This is the syntax I use in the WPT UI which works:
addHeader X-header: someheader
navigate https://some.url.com
In the node program it looks like this:
var script = wpt.scriptToString([
{addHeader:[‘X-Header:’, ‘someheader’]},
{navigate: "https://some.url.com"}
])
wpt.runTest(script, {"location": "us-west-2", "connectivity": "Cable"}, function(err, data) {
...
});
The headers do not show up in the requests when viewing the results on the WPT web UI
Is this disabled from the wrapper program, how can I get it to work?
Thanks,
Dan
The text was updated successfully, but these errors were encountered: