CaptainBeardsEyesBeard Posted January 19, 2021 Share Posted January 19, 2021 Is this the correct way to use this function if I want to rightclick an element Sleep(4000) $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, '//*[@id="main-content"]/e3e-process/div/mat-card/e3e-process-item/div[2]/e3e-form-renderer/e3e-form/e3e-form-tabbed-view/div[1]/e3e-form-container-view/div[123]/div/e3e-bound-input/div/label/span') _WD_ElementActionEx($sSession, $sElement, "rightclick") if @Error then Msgbox(64, "", "Can't click insured name") EndIf As I'm not getting an error box Link to comment Share on other sites More sharing options...
Danp2 Posted January 19, 2021 Share Posted January 19, 2021 That looks ok (other than the lack of error checking after the call to _WD_FindElement). Have you checked the relevant output in Scite for errors? Latest Webdriver UDF Release Webdriver Wiki FAQs 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