Thanks for the clarification, we have one more query on this.
While exporting the cssSelector and rxpath using Ranorex Selocity, the element is getting generated in the code, but it is expressed using the text from webpage instead of ClassName or ID.
Since we are testing in multiple languages, the generated elements can’t be used in Non-English environments because the text varies for each language. So, it would be really helpful if it picks ID or ClassName instead of text.
I see, so that seems to be more of a different topic related to the Extension itself. Could you give us an example page where you’ve been trying to do so and the exact element you’ve been expecting (screenshot would help).
We are currently heavily focused on the app but for sure want to add features for the Extension as well as soon as we are approaching the end of the Beta.
alright, so lets focus on the first screenshot. Ranorex Selocity tries to build the most performant and minimal selector out of the box. Given first example, it’s sufficient to only take the add-device class. Now I agree that the software can’t always 100% know what your use case is. This is why we added the playground to the extension. With this you can manually create selectors and evaluate them. Please take a look at the following video:
So a feature we’d like to introduce that you can, after creating the selector inside the playground, send it directly to the app from there. Meanwhile you’d have to copy the selector manually and override the element in Webtestit.
We’re also evaluating other features like generating multiple variants of CSS selectors, like you described, one always preferring IDs, another one always classes and so on.
With regards to the second screenshot. RxPaths aren’t currently supported with Webtestit. Please fall back to using XPaths instead.