- 博客(2)
- 收藏
- 关注
原创 Selenium切换窗口报错:Expected “handle“ to be a string, got [object Undefined] undefined
Firefox:80geckodriver:0.24selenium切换窗口时报错:driver.switch_to.window(driver.window_handles[-1])selenium.common.exceptions.InvalidArgumentException: Message: Expected “handle” to be a string, got [object Undefined] undefined查找后发现是geckodriver版本不匹配,下载了最新的0
2020-09-19 15:00:06
1703
原创 PyCharm中no tests were found
PyCharm中no tests were foundRun后显示0条,特别奇怪。我在其他编辑器Geanys上运行是OK的。查找半天才发现要把unittest.main()换成以下代码就ok了unittest.main或者if __name__ == '__main__': unittest
2020-08-15 16:36:56
239
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅