【发布时间】:2019-06-13 02:13:59
【问题描述】:
作为测试的一部分,我一直在寻找 XPath 代码来获取 HTML 元素的属性值。
<div class="gallery-list">
<figure class="figure hd" ng-class="profileGallery.css" profile-item-remove="9>
<a href="https://#" data-login="" gallery-modal="9" rel="nofollow">
<picture sl-video-preview="https://movie.mp4" sl-safe="" class="ng-isolate-scope sl-safe">
</a>
</figure>
<div>
我需要通过 xpath sl-video-preview 获取属性值 有些可以帮助我们。 谢谢
【问题讨论】:
标签: selenium xpath css-selectors webdriverwait xpath-1.0