我想測試我的代碼,並有一個提交按鈕,我必須單擊,但此提交按鈕獲取動態ID名稱。如何在不使用ID的情況下使用我的硒腳本點擊此鍵。點擊沒有ID的提交鍵?
<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>
提交怎麼樣,如果有兩個提交表單上!? –
您可以發佈該表單的HTML - 至少兩個提交按鈕的行嗎? –