woohaaha

woohaaha

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.

Showing Posts 1 to 7

michallepicki

michallepicki

Did you try downgrading chrome and chromedriver versions used as well, just for the time being?

woohaaha

woohaaha OP

I’m not sure what are the risks involved in downgrading Chrome. Since there are other projects on this computer I’d rather not mess with it. Seems like Google does not encourage downgrading Chrome versions.

woohaaha

woohaaha OP

Update:

I was looking at my screenshots directory and saw that the last screenshot was taken a day before my upgrade from 0.23 to 0.25. I then noticed that I had to change:

chrome: [headless: false],

# to

chromedriver: [headless: false]

Ok, great, now browser appears. :+1:

However, screenshots are:

  1. Still not being taken on failure.
  2. When a screenshot is manually taken via take_screenshot(session) the directory isn’t displayed in the terminal’s output.

I double checked these settings but they seem to have stayed the same. Any ideas? I have also upgraded to 26.2 with no luck.

:thinking:

mhanberg

mhanberg

Expert LSP Core Team

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.

woohaaha

woohaaha OP

Thank you so much! :clap: :bowing_man:

I got screenshots working on failure but now if I test with chromedriver: [headless: false] it may be opening two browsers. The second browser appears to be doing the testing and is then closed while the first one is left open but blank.

There are two screenshots taken on a failure. One is blank, the second is the accurate page where the failure happened.

Am I still misconfigured?

Thank you so much for your great work on Wallaby! :bowing_man::bowing_man:

mhanberg

mhanberg

Expert LSP Core Team

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

woohaaha

woohaaha OP

you’re on fire! :fire: :bowing_man: :boom:

thank you so much!!!

we’re back in business :smile: :rocket: :raised_hands:

— All posts loaded —

Where Next? Top

Trending in Questions Top

itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
yarrichar
I’m very new to Elixir, so sorry if this is a silly question: I am wondering what happens to the mailbox of a process when the machine i...
New
Hellowman
Hello everyone! I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++. Does anyone ...
New
pragdave
How do I tell Hologram not to escape HTML when substituting into templates? {Textile.render(@product.long_description)} escapes the HTM...
New
Fl4m3Ph03n1x
Background When trying to execute mix release on a Windows 11 machine for a Phoenix project I get the following error: * assembling mark...
New
rlipscombe
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
saleyn
Is there a way to import record definitions in the iex shell for pretty printing (similar to the rr command in the erl shell)? This woul...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews