Can I use Selenium IDE and have it use XPath instead of ID by default?

Viewed 234

I have a situation where the IDs of all elements are unique GUIDs, regenerated on each page load.

So I can't use IDs, although Selenium IDE defaults to IDs for obvious reasons.

My workaround is to record with Selenium IDE, then go back and manually edit the IDs to replace them with the right XPath, but this is really time-consuming.

Is there a way it can be set to use XPaths instead of IDs, by default?

Or is there another similar application/extension which can do this?

1 Answers

Selenium IDE/Katalon... recordings can be an OK starting point, depending on who you ask, but you need to go over them.

XPath expressions are specially tricky and often need to be worked on after a recording tool obtains them.

There is no way around this even if you can get the tool you are using to use xpath by default somehow.

Related