The following is HTML:
<div class="graph_tit" id="graph_tit">
<a href="/jsp/home/contents/climateData/smart/smartStatisticsSearch.do" class="on" onclick="return false;">관측자료</a>
<a href="/jsp/home/contents/climateData/smart/smartStatisticsSearch.do" onclick="return false;" class="">통계자료</a>
</div>
I want to select the second a
element in CasperJS.
But, <a>
nodes are similar.
The following is tried code in CasperJS.
$('div[id="graph_tit"] a[class=""]').click();
$('div[id="graph_tit"] a[text()="통계자료"]').click();