Я пытался получить элементы из стекла 3D VR. Объекты идентифицированы, однако не выполняется требуемая операция
Детали Android:
Уровень Android SDK:
7.1.2
Уровень API:
25
def bluetooth(d):
os.system("adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE")
sleep(1)
print ("Inside bluetooth function...")
bluetooth = d(className='android.widget.Button', packageName='com.android.settings',
resourceId='android:id/button1').click()
Я получаю эту ошибку:
Запуск: Intent {act = android.bluetooth.adapter.action.REQUEST_ENABLE}
Предупреждение: действие не началось, текущее задание перенесено на фронт
Внутренняя функция Bluetooth ...
Traceback (most recent call last):
File "C:/Roshni/VR Glass Automation/VR_Automation_version1.py", line 56, in <module>
bluetooth(d)
File "C:/Roshni/VR Glass Automation/VR_Automation_version1.py", line 53, in bluetooth
resourceId='android:id/button1').click()
File "C:\Python27\lib\site-packages\uiautomator\__init__.py", line 74, in __call__
return self.func(*args, **kwargs)
File "C:\Python27\lib\site-packages\uiautomator\__init__.py", line 924, in _click
return self.jsonrpc.click(self.selector)
File "C:\Python27\lib\site-packages\uiautomator\__init__.py", line 425, in wrapper
server.start(timeout=30)
File "C:\Python27\lib\site-packages\uiautomator\__init__.py", line 481, in start
raise IOError("RPC server not started!")
IOError: RPC server not started!