How to Solve TypeError: object() takes no parameters

The following errors were found when running the test case

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

Really drunk: def__ init__ Wrong function

Just change it

Similar Posts: