r/softwaretesting • u/HyenaOk3114 • Mar 10 '26
Has somebody experience with no code automation
hi
The question is that a low code sw: testsprite
use xpathes:elem = frame.locator('xpath=/html/body/app-root/app-dashboard/div/app-empty-state/div/a').nth(0)
although i have data-testid-s but this shit does not read that
0
Upvotes
4
u/NightSkyNavigator Mar 10 '26
Finding good locators is difficult, and there is no good software to do that in all cases.
Although if the element has data-testid and the software doesn't identify and uses it, that's quite bad.
2
u/HyenaOk3114 Mar 10 '26
I know just tried no code tool but it shit
3
u/Useful_Calendar_6274 Mar 10 '26
this is not a we do your work subreddit
1
u/nathan123uk Mar 10 '26
XPath should be a last resort because they’re so brittle - if something on a page moves then you may have to change all of them
1
u/latnGemin616 Mar 10 '26
Definitely STOP doing this.
I frames have identifiers outside of
data-test-id-sthat you should be using (like "name" or "class"). What could be part of the problem is your test not actually shifting focus to the iFrame. Script should be something like: