Running selenium IDE .side file in selenium-side-runner with a plugin

815 views
Skip to first unread message

Raigo Aljand

unread,
Dec 22, 2019, 9:56:49 AM12/22/19
to Selenium Users

Hi,

I will first explain my initial problem and then explain my understanding of what I need to do and finally my current obstacle. I would like feedback if I was thinking correctly and how to solve that last obstacle.

I have Selenium IDE .side project. I need to add to add a command or some capability to automatically make screenshots while the tests are running.

As Selenium IDE itself does not seem to support this functionality, the solution I cam up with, is create a plugin. The documentation wasn't clear on this part, but it seemed I needed to create a browser plugin (Firefox and Chrome) that communicates with the selenium browser plugin through messages. Either way, this is what I did. The plugin supplies a screenshot command to the selenium IDE and I was able to take screenshots following the rest of the plugin documentation. In that part, it seemed I was correct. So far, so good.

Now, another requirement was that the tests should be able to run in the selenium-side-runner. What I discovered, is that the selenium-side-runner runs the tests in a new browser that won't have my screenshot plugin. Now, this makes sense, as plugins can make the tests fragile or wrong. But now the tests do not recognize the new screenshot command and fail.

So this is where I am. I am not sure how to make selenium-side-runner pull in my plugin. I have seen the plugins key in the .side project file, but I have found no documentation about it. I did a cursory search through the selenium IDE project source code for plugins word, but didn't find anything that seemed relevant.

There is also this paragraph: https://selenium.dev/selenium-ide/docs/en/introduction/command-line-runner#additional-params I have seen no information about plugin parameters and it makes me think that perhaps the plugin is not supposed to be a browser plugin.

In summary, how do I include the plugin to be run with selenium-side-runner? I would be happy to supply extra details.

Dave Haeffner

unread,
Dec 29, 2019, 2:31:37 AM12/29/19
to Selenium Users
Plugins can emit code to be used in the command-line runner. So you can have your command emit the Selenium WebDriver code to take a screenshot.

https://selenium.dev/selenium-ide/docs/en/plugins/adding-commands#emitting-a-command


Cheers,
Dave H

X xx

unread,
Aug 6, 2020, 10:00:02 AM8/6/20
to Selenium Users
Sorry, I know that my reply this time is of no help to you. But I still want to ask if there are plugins or other things that allow selenium-side-runner to complete the automatic screenshot function?

PC Aide

unread,
Jul 16, 2025, 10:54:40 PMJul 16
to Selenium Users
how can you take screenshot seleniumIDE 3.17 or selenium-side-runner ?
Reply all
Reply to author
Forward
0 new messages