## Meta -
OS: Ubuntu
Selenium Version: Any
Browser: Any
This is not quite an issue, but... help.
Since there is virtually no documentation on the javascript/node side of the story, I am self-documenting things and making node from the code.
dragAndDrop(element, location) {
return this.mouseDown(element).mouseMove(location).mouseUp();
}
And:
click(opt_elementOrButton, opt_button) {
return this.scheduleMouseAction_('click',
command.Name.LEGACY_ACTION_CLICK, opt_elementOrButton, opt_button);
}
What I don't quite get, is the API. The actions.js file has methods like `mouseUp`, `mouseDown`, `mouseMove`, `click`, `keyUp`, `keyDown`, `sendKeys` .
Can somebody please explain:
* The relationship between the three files
* Why the inconsistency in naming and parameter (e.g. `mouseMove(location, opt_offset)` in actions.js vs `move({x = 0, y = 0, duration = 100, origin = Origin.VIEWPORT})` in input.js
* How to do things like `dragAndDrop()` _without_ using an action
Thanks in advance, and sorry about the noise. 1 hour on this, and I just don't get it...