没有html id的表中按钮的Xpath



正在查找附加代码的xpath。以下是表的代码片段

<table id="ManualPageButtonRowTop" cellspacing="0" cellpadding="2" width="100%" role="presentation">
<tbody><tr>
<td width="40%">
&nbsp;
</td>
<td width="20%" align="center">
<input type="button" value="Save" class="ButtonReq" tabindex="120" onclick="saveManualPage(); this.style.display = 'none'; showElementById('ButtonWithPleaseWait_MessageId_128'); setTimeout(function() { Dom.addClass('ButtonWithPleaseWait_MessageId_128', 'AjaxLoadingMessage') }, 100)"><span style="padding:4px; display:none" id="ButtonWithPleaseWait_MessageId_128">Processing request. Please wait...</span>
</td>
<td>
&nbsp;
</td>
</tr>

您可以尝试使用属性类或值,例如:

//table//input[@type='button'][@value='Save'][@class='ButtonReq']

最新更新