Locating elements with dynamic attributes

。 测试交流1 94字数 217阅读模式
摘要I ve been running some tests using selenium java and after every run element attributes in...

I ve been running some tests using selenium java and after every run element attributes in HTML change. I am testing a full web app from intellij ide using selenium 4.1.2 and mvn 3.8.5 while the web app .NET and Angular 13.
Any idea what is the cause of this problem ? 文章源自玩技e族-https://www.playezu.com/179291.html

玩技站长微信
添加好友自动发送入群邀请
weinxin
rainbow-shownow
玩技官方公众号
官方微信公众号
weinxin
PLAYEZU
 
  • 版权提示:本站仅供存储任何法律责任由作者承担▷诈骗举报◁▷新闻不符◁▷我要投稿◁
    风险通知:非原创文章均为网络投稿真实性无法判断,侵权联系2523030730
    免责声明:内容来自用户上传发布或新闻客户端自媒体,切勿!切勿!切勿!添加联系方式以免受骗。
  • 原创转载:https://www.playezu.com/179291.html
    转载说明: 点我前往阅读>>>
    • Bâlà
      Bâlà 9

      您可以通过两种方法定位它1)如果属性值的一部分是静态的,其余的值是动态的,比如id=ABC123,123是动态的,ABC是静态的,请尝试使用xpath和contains(@id,’ABC’),或者尝试定位前一个静态元素,并使用以下方法遍历和定位此元素

    匿名

    发表评论

    匿名网友
    确定