Jump to content

Recommended Posts

Posted

I just noticed @Danp2's thread was shutdown.

Anyone have an idea what the difference is in the click command in the following 2 functions

_WD_ElementAction($sSession, $sElement, 'hover')
_WD_ElementActionEx($sSession, $sElement, 'hover')

 

Thanks

Posted

Hi... your post is confusing because you mentioned "click", but then used "hover" in the posted code. :unsure: I assume that you meant to use "click" in the code.

The click command in _WD_ElementAction performs the default click functionality as defined in the Webdriver specs. The click command in _WD_ElementActionEx differs in the following ways --

  • Uses "actions" to perform the mouse click (pointer down followed by pointer up)
  • Allows control of which button is clicked (left, middle, right)

HTH, Dan

Posted

Thanks @Danp2

I apologize, you are correct, I copied the wrong part of code.

Here is what it should have read

_WD_ElementAction($sSession, $sElement, 'click')

vs
_WD_ElementActionEx($sSession, $sElement, 'click')

Thanks i saw the extra parameters to the extended function and thanks for the clarity.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...