要素の XPath をたどり、セレンで verifyText() コマンドを使用してテキストを抽出したいと考えています。
完全な XPATH: html/body/table[2]/tbody/tr/td[3]/table/tbody/tr[4]/td/table/tbody/tr[2]/td/table/tbody/tr[2 ]/td
HTMLの一部を以下に示します。セレンのverifyText()コマンドを使用して、「ロード中のアイコンが表示されると...」というテキストを取得する方法は?
このテキストは動的で、変更できます。
<table width="730" cellspacing="0" cellpadding="0" border="0" align="center">
<tbody>
<tr>
<tr>
<td height="30" colspan="2">
<strong>A Loading icon will appear when you click "Login" button.</strong>
In case you do not see such icon, it would mean that you are not using a compatible browser
</td>
</tr>
<form id="form1" method="post" autocomplete="off" action="/Login/Password"/>
<tr>
<tr>
<tr>
<tr>
</tbody>
</table>