运行测试用例时发现以下报错

Ran 1 test in 22.505s

FAILED (errors=1)

Error
Traceback (most recent call last):
  File "D:\Program\python34\lib\unittest\case.py", line 58, in testPartExecutor
    yield
  File "D:\Program\python34\lib\unittest\case.py", line 580, in run
    testMethod()
  File "D:\python_workshop\appium_framework\TestCases\test_login.py", line 37, in test_login_success
    LoginPage(self.driver).input_phoneNumber("1868XXXX553")
TypeError: object() takes no parameters

真是醉了:def __init__函数写错了,

解决:TypeError: object() takes no parameters

改过来就好了

解决:TypeError: object() takes no parameters

 

相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2021-11-08
  • 2021-07-28
  • 2022-01-22
  • 2021-07-06
  • 2022-01-15
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案