Skip to content
Advertisement

Shorten Selenium-Wire Option

I would like to improve the following case by shorting it. I’ve come this far

JavaScript

You could say that I should just remove the n decision, but I can’t because I need seleniumwire_options later.

JavaScript

Advertisement

Answer

You can shorten it by factoring out common parts, like this:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement