摘要: 问题:要js的话,需要用webelment,此时元素已经是不可见了 1 ((JavascriptExecutor) this.driver).executeScript("arguments[0].style.height='auto';arguments[0].style.width='auto' 阅读全文
posted @ 2017-07-05 19:18 彩笔杀手 阅读(311) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-07-05 18:26 彩笔杀手 阅读(3213) 评论(0) 推荐(0)
摘要: import sys reload(sys) sys.setdefaultencoding('utf 8') 阅读全文
posted @ 2017-07-05 17:26 彩笔杀手 阅读(154) 评论(0) 推荐(0)
摘要: 直接上代码吧。 1 #coding:utf-8 2 #__author__ = 'carry' 3 import unittest,HTMLTestRunner 4 5 class Hello(unittest.TestCase): 6 def setUp(self): 7 pass 8 9 def 阅读全文
posted @ 2017-07-05 13:42 彩笔杀手 阅读(176) 评论(0) 推荐(0)