求解:Encountered internal error running command: TypeError: Cannot read property ‘toLowerCase’ of undefined
使用appium自动化测试,代码如下:
from selenium import webdriver
import time
启动参数
desired_caps = {}
设备信息
desired_caps[“platformName”] = " Android"
desired_caps[“platformVersion”] = “6.0.1”
desired_caps[“deviceName”] = “2018120600347”
app信息
desired_caps[“appPackage”] = “com.gt.magicbox.shop”
desired_caps[“appActivity”] = “com.gt.magic.shop.proxy.SplashActivity”
声明手机驱动对象
driver = webdriver.Remote(‘http://localhost:4723/wd/hub’, desired_caps)
time.sleep(5)
driver.quit()
最后报错:Encountered internal error running command: TypeError: Cannot read property ‘toLowerCase’ of undefined