Is it possible to have some kind of shortcut (probably bookmarklet) to run specific Selenium script?

While developing webapp I'd like to have a possibility to quickly run specific Selenium script to log in and navigate to specific page. I'd like to avoid having yet another (Selenium in this case) window opened just for this.

Also, it's a little surprising this hasn't been raised at http://code.google.com/p/selenium/issues/list

In Keyboard shortcut for opening Selenium IDE thread on Selenium Users group one finds this fragment:

<menuitem label="Selenium IDE" oncommand="SeleniumIDE.Loader.openRecorder();" insertbefore="sanitizeSeparator,prefSep" *accesskey="N"* />

which would suggest SeleniumIDE.Loadercould be of some use here.

  • The answer is probably 'no' but can you explain more about why you would wants this and what problem are you trying to solve ? Oct 25, 2012 at 13:59
  • So you'd like to use Selenium not so much for its automated testing, but just as a macro to navigate to common pages?
    – corsiKa
    Oct 25, 2012 at 14:32
  • @corsiKa Yes, indeed. Oct 25, 2012 at 14:34
  • @PiotrDobrogost No, usage of selenium is certainly on topic here (Selenium was merged into SQA pre beta) I just want to make sure we're on the same page as to your use-case.
    – corsiKa
    Oct 25, 2012 at 14:36
  • Have you looked at GreaseMonkey ? greasespot.net Oct 25, 2012 at 15:45

1 Answer 1


Currently (to the best of my knowledge), Selenium does not have the ability to do this in the same window as you are already in, it must spawn it's own.

You may want to look into something like WATiR (ruby), WatiN (.NET), or iMacros (firefox) (chrome)

If you just want to be able to run the navigation without the window being visible, try taking a look through this discussion thread.

  • I don't object Selenium opening its own window as long as I don't see it :) Thanks for links. I would like to use Selenium as I already use it for some tests but it looks like yet another tool is needed, indeed. Oct 25, 2012 at 15:58
  • I believe that you can. Will edit answer. Oct 25, 2012 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.