Closed astrumas closed 11 years ago
Don't suppose you could whip up a test for it? :)
I most definitely could, but how would you want it done? I am having trouble coming up with a method that would test it properly, especially the "withOffset" part. Even if I could figure out a way to test the moveToElement portion, how would I verify that the offset was performed correctly? Seems like I would be testing Selenium with Selenium, hah.
Pretty self-explanatory. I based this off your original implementation of moveToElement, the difference being the lack of curl_opts. I didn't see the argument in the method stub, so I didn't accommodate it. This could be easily changed if necessary.
Thanks for your hard work so far, me and a few others are using this and are loving it!