我有以下表格:
<div id="PaymentInfoDivContainer" class="checkout-section-container complete">
<div class="checkout-section">
<h3 class="sheen">
<span class="step">2</span>
Payment Information
</h3>
<a class="sc-button-white edit-button" onclick="SC.Checkout.Edit(this);"
href="javascript:;">Edit</a>
<div class="checkout-section-content">
</div>
使用 Ruby 和 selenium webdriver,我如何获得(并单击)“编辑按钮”类?据我了解,我必须获取并存储在变量 id="PaymentInfoDivContainer" 中,然后使用它来查找正确的类。有什么想法/想法吗?
谢谢