Selenium Tip #1 Waiting for a node to be ready in the grid

Here’s a little useful snippet I found to wait for a node to be present in the selenium grid’s console. You can change according to whatever you want it to show uo, of course…

# Wait for a chrome node
while ! (curl -sSL "http://localhost:4444/grid/console" | grep -i chrome) >/dev/null 2>&1; do echo -n "."; sleep 0.2; done

# Wait for a firefox node
while ! (curl -sSL "http://localhost:4444/grid/console" | grep -i firefox) >/dev/null 2>&1; do echo -n "."; sleep 0.2; done


Back to Top ↑


2020 What a year…

1 minute read

So what can I say that hasn’t been said about 2020? That it has been a great year so far! Wait, what? Yes, in retrospective and very selfishly it has been a ...

Game related youtube channels

2 minute read

For a month and two weeks now, I’ve been having less and less time to do much beside changing diapers. If I can squeeze a bit of time into my hobbies, I have...

Back to Top ↑


Moving to linux at work

1 minute read

So I’ve been using Linux here and there for many many years, but never used it as a daily driver. On my current work, we use Linux machines a lot, both physi...

Back to Top ↑