selenium - Click on a Span element -
i want click on span element ,dom structure
<td > <a > </a> </td>
once click on td element dom changing to
<td > <input id=" "> <span id=" "></span> </td>
since there anchor tag ,every time when perform click on td element , drilling down , navigating next page , how handle scenario, using selenium ios driver
if have this:
<td > <a > sometext </a> </td>
and after clicking want this:
<td > <input id=" "> <span id=" "></span> </td>
i using jquery:
html
<td id="someid"> sometext </td>
jquery
$("#someid").click(function(){ $("#someid").html(""); $("#someid").append("<input id=" "> <span id=" "></span>"); });
this not best solution can want.
Comments
Post a Comment