Reputation: 6109
We have a set of Selenium tests in c# project with xunit. We use headless chrome and tests are running just fine on PCs with Chrome installed.
However, on build agents we don't have Chrome, so we receive an exception cannot find Chrome binary
.
Is there any way to ship Chrome within test project as a standalone exe, so we don't have to install it on the servers? Any other suggestions?
Upvotes: 0
Views: 1435
Reputation: 6950
There is an option to achieve what you are after, via portable Chromium bundle
within test project as a standalone exe
Basic steps are:
download desired version from their page
unzip
run chrome.exe
Main advantages of the portable browser are that you can carry it with your projects anywhere, avoiding installation and dabbling with the windows registry.
It is true that Chromium is the open-source version of Chrome itself, but is efficient enough just like Chrome. Keep in mind that there are some functionality differences, when it comes to flash and PDF.
Upvotes: 1