Basically we have link using span
$('#desc').click() {
//do somehting
}
<span id="desc"> This is Link </span>
And this <span>
is made to look like link with style.
now, In selenium i have code which clicks link.
But, due to some javascript, which gets loaded at page load, It takes time for making those link clickable.
So click fails, but selenium does not report that. (I mean it won't it just clicked on element.)
How do i make sure that onclick event was bound before clicking on tht link in selenium ?