I'm testing a radiology application which assigns different meaning to mousedrag vs shift+mousedrag.
Currently that requires dropping all the way down from capybara to node.native.browser.page.command("Input.dispatchMouseEvent", to add the modifiers bitfield to the mousemove call.
Would a PR be accepted adding support for this?
My first thought is extending mouse.rb so you could call
Ferrum::Mouse.with_modifier_key(:shift) do
# within this block, all mouse events have the shift modifier added
end
I'm testing a radiology application which assigns different meaning to mousedrag vs shift+mousedrag.
Currently that requires dropping all the way down from capybara to
node.native.browser.page.command("Input.dispatchMouseEvent",to add themodifiersbitfield to the mousemove call.Would a PR be accepted adding support for this?
My first thought is extending
mouse.rbso you could call