browser
Overrides browser helper config from the command line. Works for all browser helpers
(Playwright, Puppeteer, WebDriver, Appium) without touching codecept.conf.
Enable it via -p option with one or more colon-chained args:
npx codeceptjs run -p browser:shownpx codeceptjs run -p browser:hidenpx codeceptjs run -p browser:browser=firefoxnpx codeceptjs run -p browser:windowSize=1024x768:video=falsenpx codeceptjs run -p browser:hide:browser=webkit:windowSize=800x600- show — force visible browser
- hide — force headless (also injects
--headlessinto WebDriver chrome/firefox capability args) <key>=<value>— sethelpers.<eachBrowserHelper>.<key> = <value>. Three keys get per-helper translation viasetBrowserConfig:browser=<name>— Puppeteer receivesproduct, Playwright receivesbrowserwindowSize=WxH— also adds--window-size=W,Hchromium/chrome argsshow=true|false— togglesshowon Playwright/Puppeteer; injects/strips--headlessin WebDriver chrome/firefox capability args
Values stay as strings. true / false are coerced to booleans.
Requires @codeceptjs/configure to be installed; if missing, the plugin
logs a hint and skips the override.
Parameters
Section titled “Parameters”config