python
小阿小火苗
我是小火苗,我怕水
展开
-
Encoding Convert py
import os import sys def convert(filename, in_enc="GBK", out_enc="UTF8"): try: print "convert " + filename, content = open(filename).read() new_content = content.decode(i原创 2016-06-05 16:53:01 · 394 阅读 · 0 评论 -
Python使用Selenium测试WebApp在定位元素和使用元素属性报的莫名其妙错误的终极解决方法
1 selenium.common.exceptions.ElementNotVisibleException: Message: Element is not currently visible and so may not be interacted with... 2 selenium.common.exceptions.StaleElementReferenceException原创 2016-07-06 15:53:28 · 4033 阅读 · 0 评论