RohanM 0 Posted July 1 Share Posted July 1 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 1,277 Posted July 1 Share Posted July 1 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. WebDriver UDF [GH&S] Latest version Wiki FAQs Link to post Share on other sites
RohanM 0 Posted July 2 Author Share Posted July 2 @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
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