1
目标:浏览Gmail并点击收件箱中的链接。动态分配的ID
到目前为止,我有:成功登录到Gmail,并使用量角器打开第一个显示的电子邮件。
问题:我每次加载网页,并以引用电子邮件中的链接检查HTML代码,类名和ID不同。例如,上次xpath是://*[@id=":6d"]/a
,但现在是//*[@id=":ml"]/a
。
的元件: <a href= "the desired link" target="_blank" data-saferedirecturl="the desired link v2" > change Account password.</a> == $0
而且它上面的所有超类包括像以下代码:<div id=":66" class="ii gt adP ad0>
其看似动态创建的。
你会如何推荐引用链接? 在此先感谢
考虑使用[gmail.js](https://github.com/KartikTalwar/gmail.js/),它可能会有所帮助。 –