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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -