|
<body onunload="isCheck()">
<p:resources></p:resources>
<div id="mainSizeControlBox" style="overflow: auto; height: 300px; width: 1506px;">
<div class="headCla">
<div class="localCla">
<div class="global-error-message">
<span class="toolbar">
<div class="search-panel-container">
<form id="selectForm" enctype="application/x-www-form-urlencoded" action="/receive/asnList.xhtml" method="post" name="selectForm">
<input type="hidden" value="selectForm" name="selectForm" autocomplete="off">
<div id="selectForm:resultList" class="rich-panel panelCla">
<div id="selectForm:resultList_body" class="rich-panel-body panelBody">
<div id="selectForm:dataDiv" class="tableContainer" style="height: 90px;">
<table id="selectForm:j_id360" class="rich-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<colgroup span="20"></colgroup>
<thead class="rich-table-thead">
<tbody id="selectForm:j_id360:tb">
<tr class="rich-table-row rich-table-firstrow listTableSingular" oncontextmenu="Richfaces.componentControl.performOperation(event,'onRowContextMenu','#menu','show',function(){return{'itemId': 1321581}},true)">
<td id="selectForm:j_id360:0:j_id361" class="rich-table-cell">
我想获取最后那个td,请问xpath怎么写?
selenium.click("//table[@class='rich-table']/tbody/tr[1]/td[2]");
我是这样写的,但是运行后报错,不知何故,请大虾指导
com.thoughtworks.selenium.SeleniumException: ERROR: Element /body/div/form/div/div/div/table/tbody/tr[1]/td[2] not found |
|