-
Notifications
You must be signed in to change notification settings - Fork 808
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
Change browser from Chrome to ChromeHeadless #700
Conversation
Hi @diasbruno Please have a look at the PR. If any more information required for it, let me know, it will be a delight to see the chrome headless support. Thanks, |
@ossdev07 Sorry for the delay. I'll have a look on all PRs this weekend. Thanks! |
@ossdev07 There are no changes to the Maybe we can change the browser using environment variables. The default browser can be
What do you think? |
Thanks, @diasbruno for your suggestion, Yes, there are no changes in the package.json file, so we can remove the changes from the package-lock.json. As per your guidance, I tried to change the browser using environment variables, but I am getting the same error, which I have previously mentioned.
Please correct me if I am missing something, I have tried to set the envirnoment variable for chromeheadless in package.json file, and via terminal too. But, every time i am getting same error. As, I have mentioned in the PR, if we change the browser from
Please share your views reagrding it. |
Ping @diasbruno |
One way we can do this: $ # shell part
$ USE_BROWSER=firefox,chrome npm run tests let browsers = ['ChromeHeadless'];
if (process.env.USE_BROWSER) {
browsers = process.env.USE_BROWSER.split(',');
} |
Hi @diasbruno Yes, I think it LGTM. If you want I can update this PR accordingly, or can you handle this at your end? |
You can add to this patch. |
@diasbruno As per our discussion, I have updated the patch. |
To rollback those changes to
then you can amend to the commit. |
Hi @diasbruno Thanks, for your reply. Please, consider it. |
Ping @diasbruno Hey! Sorry to bother you again. |
No problem, @ossdev07. 👍 The last thing for this PR is to remove the changes to Let me know if I can provide an assistance. |
Change frome chrome to chromeheadless Signed-off-by: ossdev <ossdev@puresoftware.com>
a65ffa4
to
68560e2
Compare
Hi @diasbruno I have reverted the changes. |
Looks good. Thank you for your patience with this issue and good job. |
@diasbruno Thanks, 😃 Any update on the merge.? |
Thanks @diasbruno for accepting the PR 😃 |
Changing the browser from Chrome to ChromeHeadless
As when using chromium binary to launch chrome then getting issues
But, if using chromeHeadless in place of Chrome then the browser launches
Headless browsers provide automated control of a web page in an environment similar to popular web browsers, but are executed via a command-line interface or using network communication
Signed-off-by: ossdev ossdev@puresoftware.com
Fixes #[issue number].
Changes proposed:
Changing browser from chrome to chrome headless
Upgrade Path (for changed or removed APIs):
Acceptance Checklist:
CONTRIBUTING.md
.