封装脚本: #encoding=utf-8import timefrom datetime import timedelta,date def date_time_chinese(): print u"returns the current time string,format for YYYY年mm月dd日HH时MM分SS秒" return time.strftime("%Y年%m月%d日 %H时%M分%S秒".decode('utf-8').enco…
1 selenium定位方法 Selenium提供了8种定位方式. · id · name · class name · tag name · link text · partial link text · xpath · css selector 这8种定位方式在Python selenium中所对应的方法为: · find_element_by…