Стек: Python, Appium.
Импортировал библиотеку WebDriver
Не могу понять, почему нет функции .click , беру элемент по ID.
from appium import webdriver
from selenium.webdriver.common.by import By
desired_cap = {
"appium:deviceName": "Android Emulator",
"appium:platformName": "Android",
"appium:app": "C:\\APK\\Calculator.apk",
"appium:appPackage": "com.google.android.calculator",
"appium:appWaitActivity": "com.android.calculator2.Calculator"
}
driver = webdriver.Remote('http://127.0.0.1:4808/wd/hub', desired_cap)
driver.implicitly_wait(15)
driver.find_element_by_id('com.google.android.calculator:id/dec_point').click()
Ошибка:
Traceback (most recent call last):
File "C:\Users\79646\PycharmProjects\pythonProject2\The first test.py", line 16, in <module>
driver.find_element_by_id('com.google.android.calculator:id/dec_point').click()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'click'