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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -