Cant select element in virtual-scroll-content-wrapper

helloi have this box, katalon seems to find the element fine but does not click them, yet still passes

ive tried clicking the top div and then selecting by id with error = nothing selectable

please help


In your HTML above, you show us the top level <div> but your pathway above indicates there is at least another <div> below. Is it possible that you can show us one of the divs, such as “permissionSelect-ADMIN”, opened up so we may see if your pathway is complete?

Also, do you wait enough time to ensure the list is completely ready for you?

1 Like

like this?

1 Like

ive added this to wait for it also storing it as an object :


You “store” the pathway to the “Admin” word, but you “click” on the parent <div> rather than on the one that has your text. So, if you change the “click” to be on the text instead of the parent <div>, does that highlight your selection?

1 Like

From this error, it appears you are not using the “click” keyword, but rather one of the WebUI.selectOptionBy___() methods. Is this correct? If so, we’ll need to change your approach. This keyword only works for select elements specifically, whereas the widget you are trying to interact with is more of a “multi-select” widget. With these types of fields, you need to do it in 2 steps:

1.) Click the “option(s)” you want:‘path/to/option/object’))

b.) Click the “right arrow” button:‘path/to/arrow/button/object’))

1 Like

brandon, since ive tried to click on the element with no success, i also attempted to treat it like a dropdown which i click on the parent DIV and then attempt to select it by ID. with no success…its seem to me these elements are hidden till click, so the system cant find them…i even had the dev team give them specific ID as you see above

1 Like

yep i tried that as well, with no luck…the prob i believe is these element are basically grayed
(unavailable) out till user click, so system clicks on them with no results…ive tried to even force sendkey {tab}S{Down}${Enter} to get it to activate and no luck as well


“Grayed out” to me indicates the items are read-only or disabled, yet I don’t see that on your HTML above. When you do the process manually, are the items grayed out and then you do something to enable them. If that is the case, then you have to automate the same procedure. Perhaps you need to “wait” (pause) even more?

I would definitely be targeting the @class=“line-item” div’s personally, they seem like the best candidate element that represents an “option”.

Another thing to try is to click using JavaScript:

WebElement element = WebUiCommonHelper.findWebElement(findTestObject('your/object'),30)
WebUI.executeJavaScript("arguments[0].click()", Arrays.asList(element))```
1 Like

can u share a screenshot by expanding the Div tags? check it has a span tag with some text

you are correct… i was running out of ideas,and i tried to treat it like a combox as you see above, since the click method passes yet doesnt actually select the element

1 Like

would i add this to katalon recorder using extension script?

So i sat with a developer to debug, and we notice that katalon was correctly clicking on the element, however the code itself was skipping the selection of it, so we will look at why this is occurring and ill update with what we find out

Apologies, I missed that this was on the recorder and not in Katalon Studio. I’m not sure how if/how you can use JavaScript in the recorder. I’d also recommend trying to send the “Enter” key in place of clicking the element. Sometimes this can act like a click.

Try with Xpath //Div[contains(text(),‘your option text here’)]