- 博客(2)
- 收藏
- 关注
原创 Selenium切换窗口报错:Expected “handle“ to be a string, got [object Undefined] undefined
Firefox:80 geckodriver:0.24 selenium切换窗口时报错: 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
1566
原创 PyCharm中no tests were found
PyCharm中no tests were found Run后显示0条,特别奇怪。我在其他编辑器Geanys上运行是OK的。查找半天才发现要把unittest.main()换成以下代码就ok了 unittest.main 或者 if __name__ == '__main__': unittest
2020-08-15 16:36:56
177
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人