Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set --no-sandbox for headless portable chrome

I want to run TestCafe on headless portable chrome with --no-sandbox flag

How can I do this?

I can run it without a flag

testcafe chrome:path/to/portable/chrome:headless test.js

But when I try set flag it doesn't work

testcafe chrome:path/to/portable/chrome:headless --no-sandbox test.js
like image 333
Нияз Ахметов Avatar asked Jan 27 '26 10:01

Нияз Ахметов


1 Answers

Running with quotes '' helps

testcafe 'chrome:path/to/portable/chrome:headless --no-sandbox' test.js

I've closed my question

like image 126
Нияз Ахметов Avatar answered Jan 28 '26 22:01

Нияз Ахметов



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!