Patches attached:
1. Mini-patch to "go" that was required to get it working on one of
my machines; otherwise it tried to allocate more RAM than the
machine had.
2. Added mousedown and mouseup events to dispatcher. Added support
for non-native mousemove, and new code for mousedown and mouseup
I explicitely release this code to the selenium and webdriver
committers to do whatever they want with, including claim it as
their own work, although I'd certainly prefer attribution.
Note that when I say "hover", I just mean mouse movement that
happens to activate mouseover and mouseout; I haven't tried to put
back the deprecated hover bits.
Example of how I'm using this, via the Ruby bindings:
e=@driver.find_element(:xpath, "//span[text()='IL-4']")
@driver.action.click_and_hold(e).perform;
@driver.action.move_to(e, 0, 10).perform;
@driver.action.move_to(e, 0, 10).perform;
@driver.action.release(e).perform;
My apologies if the code stinks, but I just needed something that
works, and I seriously spent 20+ hours on this over the weekend (I
had no previous experience with FF extensions) so I do request that
if it's awful you not be *too* mean about it :), and that even if
you don't use this code, that the next release have *some* way of
doing these things, because I really can't test without it.
-Robin
--
http://singinst.org/ : Our last, best hope for a fantastic future.
Lojban (http://www.lojban.org/): The language in which "this parrot
is dead" is "ti poi spitaki cu morsi", but "this sentence is false"
is "na nei". My personal page: http://www.digitalkingdom.org/rlp/
Just a quick tip. The idea of the ActionBuilder is that you can chain
actions, so you only need to call perform() once:
https://gist.github.com/963429
(I wasn't sure why you were calling move_to twice, but you could
easily keep that without adding another perform() call.)
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
Simon