안녕하세요 셀레늄 IDE에서 테스트하는 시나리오가 있는데, 테이블의 특정 요소에 '툴팁'텍스트가 맞습니까? 이것은 표에있는 유일한 툴팁이 아닙니다. http://seleniumatmindfire.blogspot.co.uk/2012/06/verify-tool-tip-text-in-selenium.html#comment-form 에 대한 답변을 찾았지만 툴팁의 "add note"텍스트를 가져올 수 없습니다. 첨부 파일은 '툴팁'이 '메모 추가'로 표시되어 올바르지 않다는 것을 보여주는 스크린 인쇄입니다 (문제가 제기되었습니다). 나는 이러한 유형의 테스트에 아주 새로운 그리고 난 붙어있을 때 답을 발견하지만 올바른 저장 명령 및 대상을 얻기 위해 고군분투 - 내가 가진 가장 가까운 '거짓'으로셀레늄 IDE 테이블에서 툴팁의 텍스트를 확인하는 방법
<tr>
<td>storeElementPresent</td>
<td>.//*[@id='opportunities-table']/tbody/tr[1]/td[5]/[email protected]</td>
<td>tooltip</td>
</tr>
<tr>
<td>echo</td>
<td>${tooltip}</td>
<td></td>
</tr>
에코 인쇄입니다 - 필자는 비교하고 검증 할 툴팁 제목을 인쇄해야합니다.
코드의 사본 : 나는 확실히 프로그래머에게이 작업을 수행하는 간단한 방법이야로 사전에
<div class="container-fluid" style="background-color: transparent;">
<div id="portal_service_dialog" class="jqmWindow jqmID1">
<div id="csi_dialog" class="jqmWindowCSI jqmID2">
<script type="text/javascript"> jQuery(function() { // initialising a Widget object starts .live listening for dialog_link clicks var $Widget = new Widgets({ }); }) ; </script>
<div id="subMenuSection">
<div class="pageContent">
<div id="csi_opportunities" class="row-fluid">
<div>
<div style="height: 25px;">
<div id="edit-custom-table-view-container" class="hide"/>
<div id="search_results" style="">
<div id="opportunities-table_wrapper" class="dataTables_wrapper">
<div class="dataTables_table_paging_div">
<table id="opportunities-table" class="table table-condensed dataTable" style="">
<thead>
<tbody>
<tr class="cs_details_value">
<td class=""/>
<td>
<td/>
<td class=""/>
<td class=" sorting_1">
<a class="external_link" target="_blank" title="add note"![enter image description here][1] href="/cgi-bin/index.cgi/CustomerService/Opportunities/view/e62f3cb8-791a-4ae4-1c5e-5388b0dd72a1" style="background-color: transparent;">3</a>
</td>
<td>
<td class="text align right">100</td>
<td class="text align right">0</td>
<td>
<td>New</td>
<td class="text align right">50%</td>
<td/>
<td>
<td>
<td>
</tr>
<tr class="cs_details_value">
<tr class="cs_details_value">
<tr class="cs_details_value">
<tr class="cs_details_value">
<tr class="cs_details_value">
<tr class="cs_details_value">
</tbody>
</table>
<div class="bottom_pagination">
</div>
</div>
</div>
감사, 필요한 다른 정보가 있으면 알려 주시기 바랍니다. 제프
감사합니다. @Hai Lu. – user3820225