dzharii / swd-recorder

Selenium WebDriver Page Recorder (Page Objects)
MIT License
189 stars 71 forks source link

Ability to change action for adding elements #49

Open skirge opened 8 years ago

skirge commented 8 years ago

My application is using context menu, so when I'm using Ctrl-Right Click application defined context menu is shown instead of SWD's add element dialog. Please add a possibility to change action for adding elements in browser.

dzharii commented 8 years ago

Hi @skirge,

Yes, I think that would be possible to implement a configurable hotkeys/actions. As an example, what hotkey/action would you prefer to invoke the element dialog?

skirge commented 8 years ago

What about some kind of bookmarklet (Javascript function which triggers "point & click" action) or use some other mouse button like middle click?

dzharii commented 8 years ago

I am thinking about this. In any case, I will have to implement a way to change the hotkey combination through the configuration file.

dwelsh1 commented 7 years ago

Hello,

Any change for a way to change the hotkey combination to be implemented soon? Also, any updates coming for this tool?

By the way, very useful tool!

Thanks

sergueik commented 7 years ago

Hello Dmytro, Dwelsh1,

I noticed this topic just now, and created a poc how that can be done .

In my test i first test the original page of https://github.com/madrobby/keymaster to handle key press events (I leave only 'o' key to shorten the example)

Then i do the same on a vanilla page but sending the helperSript and testScript dynamically

The client is Java atm, just wrote it 10 minutes ago,

it is in https://github.com/sergueik/selenium_java/tree/master/keymaster