dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

initial attempt to add right click action #88

Closed jzelenkov closed 10 years ago

jzelenkov commented 10 years ago

I am trying to add a right click action to DalekJS. Current commit doesn't perform a right click action.

I am trying to send a {button = 2} parameter to a WebDriver API according to the W3C documentation

I tried the following options with no result:

var rightButton = {'button': '2'};
var rightButton = 'right';
var rightButton = '2';

I am guessing that this line doesn't call WebDriver API directly, does it? What shall I do in order to pass {button = 2} parameter further to the WebDriver API?

P.S. traling spaces are removed as specified in the .editorconfig file.

jzelenkov commented 10 years ago

@asciidisco or somebody(?), could you please give me a clue about what's actually happening in this.driver[driverMethod].apply(this.driver, opts); in Actions.prototype._addToActionQueue. Where can I find more info? driver.js doesn't contain the actual actions defined by the WebDriverjs API

asciidisco commented 10 years ago

Sorry, I'm on the road atm. Trying to get a deeper explanation to you on Monday. Hope thats okay.

jzelenkov commented 10 years ago

@asciidisco cool! Yeah, take your time.

asciidisco commented 10 years ago

@jzelenkov Hey, sorry for being such a non responsive douchebag ;) I suspect that we meet tomorrow, should we then go & check if we can get this together when physically in the same room?! ;)

jzelenkov commented 10 years ago

@asciidisco that would be awesome! Thanks for your late reply :)

jzelenkov commented 10 years ago

not relevant anymore