-
Notifications
You must be signed in to change notification settings - Fork 571
AttributeError: 'WebDriver' object has no attribute 'get_device_time' #483
Copy link
Copy link
Closed
Labels
Description
The problem
When I tried to use driver.get_device_time() method, it threw this error:
AttributeError: 'WebDriver' object has no attribute 'get_device_time'
Environment
- Appium version (or git revision) that exhibits the issue: 1.16.0
- Last Appium version that did not exhibit the issue (if applicable): N/A
- Desktop OS/version used to run Appium: Windows 10
- Node.js version (unless using Appium.app|exe): v8.11.3
- Npm or Yarn package manager: npm
- Mobile platform/version under test: android 9
- Real device or emulator/simulator: real device
- Appium CLI or Appium.app|exe: Appium CLI
Details
-
I start appium service by using this command(before that I updated appium to 1.16.0 by using
npm -g update appium):appium -p 4723 -
I set up the driver on my python script:
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) -
I am trying to get device time by using:
driver.get_device_time("YYYY-MM-DD HH") -
I ran the python script and it threw the following error:
AttributeError: 'WebDriver' object has no attribute 'get_device_time'
However, if I use the appium desktop app(1.16.0) instead of starting appium on cmd line, it worked fine.
Reactions are currently unavailable