woohaaha
Wallaby + Chromedriver acting weird. What's changed? Anyone else? How can I debug?
Something seems to have changed with Wallaby or Chromedriver. After my test suite runs there are orphaned chrome instances present. During test execution I cannot run with the browser, only headless. When tests fail they no longer take a screenshot.
I am not sure what’s changed nor how to debug it. There is a recently opened issue Chrome zombie processes · Issue #544 · elixir-wallaby/wallaby · GitHub
My chromedriver already matches my browser’s version. I have tried downgrading to 0.25 but no change in behavior.
This isn’t the first time there have been rogue processes left after a test. I wasn’t able to investigate them previously and I’m not sure how to investigate them now.
Direction is greatly appreciated.
Marked As Solved
mhanberg
Hi,
To take screenshots on failure, you must configure :screenshot_on_failure to be true, and this only works when using the feature macro.
You must pass the log: true option to take_screenshot for it to print to the terminal.
Also Liked
mhanberg
You are likely starting a session manually in addition to using use Wallaby.Feature in your test.
If you are already using your own ExUnit.CaseTemplate, you probably want to replace use Wallaby.Feature with import Wallaby.Feature
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









