Reputation: 14959
I'm sure this is documented somewhere obvious, but I just can't find it.
I'm currently switching back and forth between Firefox and Selenium using a toolbar button, but it's annoyingly slow to keep having to use the mouse.
Upvotes: 6
Views: 9086
Reputation: 719
I was able to hack one into existence, so you can do this if you are comfortable with it.
In the version I'm using (1.4.1) open "chrome\content\selenium-ide-overlay.xul" Near the bottom there is this code:
<!--
<keyset id="mainKeyset">
<key id="key_viewSeleniumIDESidebar" command="viewSeleniumIDESidebar"
key="S" modifiers="alt,accel"/>
</keyset>
-->
Which means it already is there, they've just commented it out for some reason. I took out the comments and replaced the sidebar command with one from above so it has its own window like normal
<keyset id="mainKeyset">
<key id="key_viewSeleniumIDESidebar" oncommand="SeleniumIDE.Loader.openRecorder();"
keycode="VK_F11" modifiers="alt,accel"/>
</keyset>
Once I've refreshed the browser I can use ctrl-alt-F11 to bring up selenium. (the change from 'key' to 'keycode' lets you use non-printable keys, so keep it 'key' if you want it to br a printable character; you can get the keycodes from:
https://developer.mozilla.org/en/XUL_Tutorial/Keyboard_Shortcuts#Keycode_attribute
Note the 'accel' key differs from platform to platform (also explained in the link above)
Upvotes: 0
Reputation: 8573
I don't know if there's a default keyboard shortcut but i press the following sequence
Alt - t - n
Which opens the tools sub menu, and then "n" opens or switches to selenium
Upvotes: 3