Selenium with Python-unittest - Test returns Process finished with exit code 0 and no action is performed

前端 未结 1 931
情深已故
情深已故 2021-01-22 00:54

Could someone helping me to understand why the following code is executed, but no action is performed?

Returned code is 0 but browser is not opened or no action is perfo

相关标签:
1条回答
  • 2021-01-22 01:07

    Are you calling your unittest with:

    if __name__ == '__main__':
        unittest.main()
    

    If you do not, then you are just defining the test, not actually executing anything.

    0 讨论(0)
提交回复
热议问题