Katalon is unable to deselect options in
1 Like
Please post the source code of the html page. In some cases, basic selenium deselects wont work. you might have to use click to uncheck the options
Here’s the source for the select element. It’s a very standard select menu. I can’t post the full page source code for IP reasons.
<select multiple="" id="selectId" class="form-control">
<option id="123">option1</option>
<option id="456">option2</option>
<option id="789">option3</option>
<option id="012">option4</option>
</select>
Deselecting options manually requires holding the “Ctrl” key while clicking.
I was able to workaround the immediate issue by using the following to clear all selections:
WebUI.executeJavaScript(“document.getElementById("selectId").selectedIndex = -1”, null)
seems like a basic select. Anyways, you have found the solution. Great
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.