ingo
ingo

Reputation: 856

List browsers with TestCafe

Is there a documentation about how to call command-line functions from testcafe with the API? Like

testcafe -b

A link or sample script will really help.

Upvotes: 2

Views: 357

Answers (2)

Paolo Tozzo
Paolo Tozzo

Reputation: 41

Late on this, but you can get the supported browsers via API as follows

const browserTools = require('testcafe-browser-tools');
const installedBrowsers = browserTools.getInstallations(); // return a promise

Upvotes: 0

mlosev
mlosev

Reputation: 5227

At present, it's possible to get a browser list only via a command-line API. I've created a suggestion for this case in the TestCafe repository - https://github.com/DevExpress/testcafe/issues/3919. Track it to be informed about our progress.

Upvotes: 2

Related Questions