Selenium IDE not detecting the id -
i trying run test recorded using selenium ide. following html generated ide
<tr> <td>clickandwait</td> <td>css=span.blt-txt</td> <td></td> </tr> <tr> <td>click</td> <td>id=pt1:svmenu:np1:6:cni1::disclosureanchor</td> <td></td> </tr> <tr> <td>click</td> <td>id=pt1:r5:0:mr1:gts1:gts_pc1:itfilterfieldvalue::content</td> <td></td> </tr> <tr> <td>click</td> <td>id=pt1:r5:0:mr1:gts1:gts_pc1:cil1::icon</td> <td></td> </tr> <tr> <td>click</td> <td>id=pt1:r5:0:mr1:gts1:gts_pc1:tt1:0::di</td> <td></td> </tr> <tr> <td>click</td> <td>id=pt1:r5:0:mr1:gts1:gts_pc1:tt1:1:asttreesno</td> <td></td> </tr> <tr> <td>click</td> <td>id=pt1:r1:0:rastdtl:0:cb4</td> <td></td> </tr> <tr> <td>click</td> <td>id('pt1:ptgeneric:ot1::_afrttxt')/x:div/x:h1</td> <td></td> </tr>
when run test/execute command error saying [error] element id=pt1:r5:0:mr1:gts1:gts_pc1:tt1:0::di not found
any ideas how can fix this?
- the id seems generated try not use id or use contain (try use other xpath)
- i use last word of id (you need check it) 3.you can highlight see
example contain ./li[contains(.,'model')]]
Comments
Post a Comment