Katalon recorder try multiple selectors

Inside one of the steps I have multiple tags like

            <option>link=storage locker for ${uniqueName}</option>
            <option>//a[contains(text(),'storage locker for ${uniqueName}')]</option>

I noticed that depending on the browser OS the second version works better. Is there a way to force Katalon to try each option?

@ildarius

Do you want to pass in a list of locators and try them sequentially and use the first working one? Would something like that solve the problem?

Katalon Recorder can be extended with Javascript to add custom commands, and I think this wouldn’t be hard to achieve, but just want to clarify if the above solution is desirable.

that would be perfect!

We realized it’s a bit more complicated than that, but it’s doable. I’ll inform you when it’s available. (don’t worry we release KR regularly)

1 Like