We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用 Selenium IDE / UI.Vision / SideeX 录制的自动化脚本会优先使用 id 选择器,生成的 selector 如下:
//ul[@id='rc-menu-uuid-82370-17-business-page-popup']/li[2]/span[1]/a[1]
其中 "82370-17" 是随机生成的数字,录制的脚本运行时会重新打开页面,生成不同的随机数,导致录制的脚本找不到对应的元素,测试脚本运行失败。
请问下为什么会考虑在 id 属性里添加 uuid 随机数呢?可以换成使用 data-* 的自定义属性吗?
data-*
The text was updated successfully, but these errors were encountered:
No branches or pull requests
用 Selenium IDE / UI.Vision / SideeX 录制的自动化脚本会优先使用 id 选择器,生成的 selector 如下:
//ul[@id='rc-menu-uuid-82370-17-business-page-popup']/li[2]/span[1]/a[1]
其中 "82370-17" 是随机生成的数字,录制的脚本运行时会重新打开页面,生成不同的随机数,导致录制的脚本找不到对应的元素,测试脚本运行失败。
请问下为什么会考虑在 id 属性里添加 uuid 随机数呢?可以换成使用
data-*
的自定义属性吗?The text was updated successfully, but these errors were encountered: