Closed aaltat closed 7 years ago
When I have this code:
from mockito import mock, when from appium import webdriver url = 'localhost' desired_capabilites = {'key1': 'value1'} mock_driver = mock() when(webdriver).Remote(url, desired_capabilites).thenReturn(mock_driver) driver = webdriver.Remote(url, desired_capabilites)
Then in mockito 1.0.7 it works fine, but in 1.0.8 and 1.0,9 it fails with error:
Traceback (most recent call last): File "C:\tmp\foo.py", line 8, in <module> driver = webdriver.Remote(url, desired_capabilites) TypeError: 'staticmethod' object is not callable
If needed appium can be installed with: pip install Appium-Python-Client==0.24
pip install Appium-Python-Client==0.24
Released as 1.0.11.
Thanks for the report. Stupid mistake I made. Hope it works.
Thank you from support.
Tried the new version and works like a charm.
Good to hear!
When I have this code:
Then in mockito 1.0.7 it works fine, but in 1.0.8 and 1.0,9 it fails with error:
If needed appium can be installed with:
pip install Appium-Python-Client==0.24