代码改变世界

随笔档案-2013年11月

selenium2Library无法启动chrome

2013-11-22 16:47 by glre09, 285 阅读, 收藏,
摘要: 使用其他浏览器都没有影响,唯独chrome启动不起来,去掉IE-连接-局域网设置-自动检测设置就OK了 阅读全文

robotframework+selenium2Library怎样不用手动关掉代理

2013-11-22 16:45 by glre09, 429 阅读, 收藏,
摘要: 每次跑脚本,启动浏览器都要手动关掉代理,太费劲了,发现最简单的办法就是在局域网设置里面勾上跳过本地地址的代理服务器,并且在例外里写上127.0.0.1就这么简单有没有?? 阅读全文

[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: URLError: <urlopen error [Errno 10061] Connection refused>

2013-11-21 09:52 by glre09, 1575 阅读, 收藏,
摘要: [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: URLError: 阅读全文

selenium2Library报错: Unexpected error launching Internet Explorer. Browser zoom level was set to 119%. It should be set to 100%

2013-11-20 16:44 by glre09, 1097 阅读, 收藏,
摘要: Exception in thread "main" org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. Browser zoom level was set to 119%. It should be set to 100% (WARNING: The server did not provide any stacktrace information)Command duration or timeout: 5.98 secon 阅读全文

IndentationError: unexpected indent python

2013-11-14 16:50 by glre09, 188 阅读, 收藏,
摘要: python对格式要求实在是太严格,实在是太变态了在缩进要要注意,用空格,不能是TAB也不能是空格+TAB,每次缩进是4个空格推荐用EDITPLUS工具,方便数空格其他格式要求见:http://wenku.baidu.com/link?url=mLWDwm6DTgatrsG2B6ltpHCGOvPiZSfLaJDCMLJQisSNpnIpvdl-2QLIqv4Fzu9f8eVjCcY63-DQSIM_cGg3JzTMno4G2_c-U-QPUQPsXXC 阅读全文

17个新手常见Python运行时错误

2013-11-13 14:04 by glre09, 212 阅读, 收藏,
摘要: 当初学 Python 时,想要弄懂 Python 的错误信息的含义可能有点复杂。这里列出了常见的的一些让你程序 crash 的运行时错误。 1) 忘记在 if , elif , else , for , while , class , def 声明末尾添加 :(导致 SyntaxError :invalid syntax ) 该错误将发生当初学 Python 时,想要弄懂 Python 的错误信息的含义可能有点复杂。这里列出了常见的的一些让你程序 crash 的运行时错误。1)忘记在if,elif,else,for,while,class,def声明末尾添加 :(导致 “SyntaxError 阅读全文