Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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.

share|improve this question
    
The answer is probably 'no' but can you explain more about why you would wants this and what problem are you trying to solve ? –  Phil Kirkham Oct 25 '12 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 '12 at 14:32
    
@corsiKa Yes, indeed. –  Piotr Dobrogost Oct 25 '12 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 '12 at 14:36
    
Have you looked at GreaseMonkey ? greasespot.net –  Phil Kirkham Oct 25 '12 at 15:45
show 1 more comment

1 Answer

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.

share|improve this answer
    
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. –  Piotr Dobrogost Oct 25 '12 at 15:58
    
I believe that you can. Will edit answer. –  Lyndon Vrooman Oct 25 '12 at 16:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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