当使用替换函数a = 1234和b = 1,234时,selenium ide验证a = b

时间:2013-07-23 16:43:50

标签: selenium replace ide

我将值1234存储在变量abc中,值1,234存储在变量def中。我想用replace函数来证明a = b

<tr>
<td>storeText</td>
<td>//div[@id='messages-div']/span[22]</td>
<td>abc</td>
</tr>
<tr>
<td>storeText</td>
<td>//table[@id='keys']/tbody/tr[22]</td>
<td>def</td>
</tr>

1 个答案:

答案 0 :(得分:0)

 assert(abc.replaceAll(",","").equals(def.replaceAll(",","")));