TL;DR: Jenkins supports pipelines from code. Make your build, test and deploy pipeline in code and you are not dependent on a specific CD tool. If you can do it from the command line and with API's you can combine and chain any tool or test-step. Use Pipelines as Code!
Is it possible to automate this complete process?
Probably, but not out of the box with ...
You can use your config.js to set window size:
specs: [ ... ],