> Now let's navigate to the website with the URL of
http://www.cnblogs.com,
> and click the button with the name of "登录".
There is no 登录 button (*).
That page is in UTF-8, so as long as your casper script is also in
UTF-8, I believe it should work - there should be nothing ascii or
English-specific in CasperJS.
However, as the other replies are hinting, it is more reliable to use
class names and ids, as sites might tweak their text copy, but they will
change their html structure less often.
Darren
*: I notice other's are saying to click #span_userinfo.
Here is what I see at that point:
<div id="cnts">
<div id="site_nav_top">代码改变世界</div>
<div id="login_area"><span id="span_userinfo"></span></div>
<div class="clear"></div>
</div>
Perhaps it uses the IP address to decide what buttons to show? So people
inside China see a sign-up button, while those of us outside are not
offered the chance?