摘要: 写python+selenium自动化脚本免不了要用到js,练习执行js命令,excute_script(js_command),但是在robotframework中使用相同方法执行报错,调整后执行通过,记录一下O(∩_∩)O~ 阅读全文
posted @ 2015-06-05 17:12 清风2014 阅读(1153) 评论(0) 推荐(0) 编辑
摘要: 一般采用显示关闭文件:f = open('./weibo.py','r')print f.read()f.close()with open('./weibo.py') as f: for line in f: print line退出with代码块时文件自动关闭,不需显示关闭。 阅读全文
posted @ 2015-06-05 14:39 清风2014 阅读(1294) 评论(0) 推荐(0) 编辑