Is there a way to delete elements?

I have been working around highlighting specific li`s when they match with the filters from a search.
I’d like to delete elements (other li’s) which don’t match with a secondary filter (which I define on katalon). In other words, the website filter already return me a bunch of results, but I still need to refine a bit more with a filter using Katalon. I just noticed that would be better deleting elements instead highlighting the ones what I want in fact.

Hope someone can help with that. Thanks in advance.

You can use JS:

var element = document.getElementById("element-id");

I would strongly advise against doing that.

1 Like