_Gibson Posted June 30, 2022 Posted June 30, 2022 Hi, I'm having difficulties clicking an option from a select box, which isn't a select box in the traditional sense. The select box & options are rendered out of several span's & div's (there is no <select>). The script can find the element (_WD_FindElement), but it cannot click it (element not interactable) because the option is not visible until you scroll down. Searching the forum I found a post stating scrollIntoView(true) would scroll, but unfortunately it did not. $sDropdownOption = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='ClientComposingReportsPage']//span[contains(@class,'quick_report_plan_target')]//div[@title='Bijzonderheden gedrag']") _WD_ExecuteScript($sSession, "arguments[0].scrollIntoView(true);", $sDropdownOption) It's giving an error saying: Quote "error":"invalid argument","message":"invalid argument: missing command parameters" Did I use the _WD_ExecuteScript incorrectly, or should i use another method to scroll the available options? Please advise
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