RohanM Posted July 1, 2022 Share Posted July 1, 2022 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 comment Share on other sites More sharing options...
Danp2 Posted July 1, 2022 Share Posted July 1, 2022 You can't click the "more" function. You can click the DIV element using _WD_ElementAction. Alternatively, you can execute the Javascript directly using _WD_Execute. P.S. If you need more assistance, then I recommend that you post some code showing us what you have tried thus far. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
RohanM Posted July 2, 2022 Author Share Posted July 2, 2022 @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 comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now