Element-34 / php-webdriver

thin php client for webdriver.
122 stars 55 forks source link

Action - moveToElementWithOffset #25

Closed astrumas closed 11 years ago

astrumas commented 12 years ago

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!

adamgoucher commented 12 years ago

Don't suppose you could whip up a test for it? :)

astrumas commented 12 years ago

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.