我正在尝试测试我的代码,并且必须单击一个提交按钮,但是此提交按钮会获取动态 ID 名称。如何在不使用 ID 的情况下使用我的 selenium 脚本单击此键。
<td>
<button type="submit" value="Allow All" class="btn btnC bglb mfss touchable"
id="xhp647364382646" role="button" data-meta="0_3"
data-sigil="extra-perms-button blocking-touchable"> Allow All </button>
</td>