Lurker News

Comments (106) 29 threads

Earlier comments
Middleclass#
Is Selenium less crashy nowadays?

Back in 2017 when I had a testing automation job, I wrote a test automation system using Node, Selenium WebDriver, Cucumber and Vagrant.
It worked well once I managed to set up a Vagrant box that would take Cucumber tests from a local directory and keep a Node, Selenium WebDriver and Cucumber install cached, but WebDriver never really stopped crashing unpredictably.
I had to implement very coarse retry logic. Tests would take way too much time just because each run a few of the tests would keep crashing for a minute or more, until they finally succeeded.
I parameterized the Vagrant box so that testers could run subsets of tests by running the "test" command with parameters, not because we had that many tests (just about a 100) but because they were so slow.
It wasn't even that complicated of a SPA, and the backend engineers even added nice classes and ID's to elements that were to be tested.
The binding of Cucumber to JS to WebDriver was flawless, adding new testing functions (e.g. "do something with some particular type of list of items"), it was just that the browser component kept crashing all. the. time.
I longed for a deterministic means of automating the browser then, preferably by hooking right into the browser code and integrating with it, so I would know why the thing kept crashing. That hasn't happened yet.

catchmeifyoucan1 reply#
Dragging is a command I wish existed. I’m not super sure how to test draggable components - any thoughts?
lqs469#
Inspiring ideas, Perhaps this will be useful for automated testing or accessibility, etc.
socialdemocrat#
Trying to explain to my mother what to click in a user interface over the phone is next to impossible. So much for the superiority of natural language.

What you need is the ability to point and talk.

Load more comments