Jump to content

I want to execute javascript function in DIV using _WD_Driver (_WD_ElementAction)


Recommended Posts

 

Hi,

how can I click "more()" function using _WD_webdriver _WD_ElementAction

<div class="msc-flow-tracking-container__bar" :class="{'open': open, 'complete' : isComplete}" x-on:click="more()">
  

Link to post
Share on other sites

@Danp2

thank you so much for your reply and suggestion, problem is, x-path of the div keep on changing based on the status, that is the reason it's not able to find the correct element

I changed the _WD_FindElement as bellows and start working 

Local $oDiv = _WD_FindElement($Session, $_WD_LOCATOR_ByXPath, "//div[contains(@class,'msc-flow-tracking-container__bar')]")
If @error = False Then
    _WD_ElementAction($Session, $oDiv, 'click')
EndIf

Link to post
Share on other sites

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...