Closed thbar closed 1 year ago
I believe you can use Application.put_env instead of passing the config into Mix.install
You are right - in some cases I believe I had issues with that, so didn't try, but it works perfectly for wallaby! Thanks.
Mix.install([
{:wallaby, "~> 0.30.6"}
])
Application.put_env(:wallaby, :chromedriver, [headless: false])
I am using Wallaby via
Mix.install/2
like this:I quite often need to switch to
headless: false
, which causes a re-compilation in that case.What is the recommended way to configure this at runtime? Should I pass "capabilities" (with the headless flag) to the Chrome driver, or is there something doable at the session level?
Thanks!