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

Export Chromium BrowserType implementation directly #515

Merged
merged 2 commits into from
Aug 31, 2022

Conversation

imiric
Copy link
Contributor

@imiric imiric commented Aug 31, 2022

Closes #485

This also exposes the xk6-browser version to JS scripts, which is useful for troubleshooting user scripts until grafana/k6#1741 is implemented.

Ivan Mirić added 2 commits August 31, 2022 11:08
The 'v' is redundant, and this way it's consistent with
browser.version(), which also doesn't include it.
@imiric imiric requested a review from ankur22 August 31, 2022 09:13
@imiric imiric merged commit b157f21 into main Aug 31, 2022
@imiric imiric deleted the refactor/485-browsertype-launch branch August 31, 2022 10:36
@imiric
Copy link
Contributor Author

imiric commented Aug 31, 2022

FYI There was a regression introduced by this change, where chromium.launch() fails after the first iteration with a (context) canceled error.

I'm looking into it and will push a PR shortly.

imiric pushed a commit that referenced this pull request Aug 31, 2022
This was a regression introduced by #515, caused by the fact the VU
context changes after each iteration[1], so our context initialization
needs to happen on each iteration (launch() call) as well.

[1]: https://github.com/grafana/k6/blob/e09bb87277865d668586429eee97158fbbfc58e5/js/runner.go#L710
imiric pushed a commit that referenced this pull request Sep 1, 2022
This was a regression introduced by #515, caused by the fact the VU
context changes after each iteration[1], so our context initialization
needs to happen on each iteration (launch() call) as well.

[1]: https://github.com/grafana/k6/blob/e09bb87277865d668586429eee97158fbbfc58e5/js/runner.go#L710
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.

Export Chromium BrowserType implementation directly
2 participants