banner=driver.find_element_by_id('com.huawei.appmarket:id/banner_item_image')
ele_size=banner.size
#元素的高度和宽度
ele_height=ele_size['height']
ele_width=ele_size['width']
#获取元素左上角坐标
loc=banner.location
python/appium实现华为应用商城app界面上下滑动打开关闭通知栏等功能
最新推荐文章于 2024-05-16 15:53:28 发布