ICode9

精准搜索请尝试: 精确搜索
  • Appium-python自动化(四) 定位元素(一)2022-05-27 22:32:11

    常见的定位工具: 1)android sdk自带的:uiautomatorviewer 2)appium desktop中的inspect 3)weditor(需要和uiautomator2配合使用,单独用weditor进行定位元素也可以,但是只能进行android原生的定位) 需要注意:在app中DOM对象是没有CSS的所以不能使用CSS定位来进行定位元素 =================

  • 移动端UI自动化测试DEMO之环境部署(基于uiautomator2)2022-01-26 10:32:54

      近期,由于没有项目不是很忙,所以动手研究起关于移动端APP的自动化测试的功能。原本已经找到了Appium来做移动端的自动化测试,但是后面看到有人推荐用uiautomator2。因此,我也就尝试一下,看看效果如何。 1、安装adb,具体操作,可以百度一下      2、安装uiautomator2; 因为我使用的

  • ATX3-环境准备2021-12-08 04:00:07

    安装 1.Install uiautomator2 # Since uiautomator2 is still under development, you have to add --pre to install the development version pip install --upgrade --pre uiautomator2 # Or you can install directly from github source git clone https://github.com/ope

  • 【愚公系列】2021年12月 python爬虫自动化-WEditor自动化APP测试工具安装和使用2021-12-07 22:00:58

    文章目录 一、WEditor是什么?二、使用步骤1.安装2.运行3.安卓设备连接 总结 一、WEditor是什么? WEditor是基于python的查看APP元素的工具,能够提供辅助编写脚本,定位元素,调试代码等功能。 二、使用步骤 1.安装 pip install weditor 2.运行 python -m weditor 会自动打开

  • python+uiautomator2连接设备后weditor无法稳定识别小程序内的所有元素的解决方法2021-09-17 17:04:51

    之前写UI脚本时存在无法识别微信小程序,为此查询了很多文章,有些大佬表示可以通过降低微信的版本号,就可以识别到小程序内的元素,我实验了下,确实可以识别到微信小程序内的元素,但是不稳定,有时候小程序一删除,第二天调试就识别不到元素了,我试验了很多遍,查看怎么才能再次识别,最终找到了一

  • 搭建手机UI自动化2021-08-27 17:31:23

    1准备工作 1、 准备工作,工具包platform-tools(可以FQ安装),下载后解压,位置随意。然后配置环境变量,将工具所在位置加入path, 2、准备测试机,目前安卓版本8及前置版本页面元素可识别。 3、安装python,自行百度 4、安装Pycharm ,安装weditor 模块 2操作步骤(本机调试) 1、 测试机打开开发者模

  • 页面滚动,打包,appium工具2021-07-08 23:03:50

    ''' 移动到元素element对象的“底端”,与当前窗口的“底部”对齐: 我们需要将页面下拉一个滑轮 ''' for y in range(3): js = 'window.scrollBy(0,100)' driver.execute_script(js) time.sleep(0.5) 打包.exe pip install pyinstaller pyinstaller -D index0py

  • App自动化元素定位总结2021-06-04 21:59:56

    一、核心逻辑 1、定位元素 2、操作元素 点击、输入、获取元素信息(文本、属性) 3、逻辑处理 二、元素定位工具 1、weditor 2、UIautomatorviewer 3、Appium-inspector 三、元素定位方法 1、根据 XPATH 定位 2、根据 resource-id、content-desc 定位

  • APP自动化测试系列之3种元素定位工具2021-06-02 09:53:52

                    上一篇Appium自动化系列文章:APP自动化测试系列之appium-desktop配置及录制脚本,主要介绍appium-desktop如何配置SDK、JDK、Desired Capabilities及录制脚本。本文主要介绍Appium定位元素的三种工具:uiAutormatorViewer、inspector、weditor。每一种工具定

  • mac +iphone+appium-wda+weditor:2021-05-06 13:36:43

    步骤: 1,使用xcode12.4给iOS14.4安装appium-wda 2,tidevice wdaproxy -B com.apple.test.WebDriverAgentRunner-Runner --port 8100#启动wda 3,Python3 -m weditor #启动weditor,浏览器自动打开weditor 4,在weditor页面,选择IOS,输入地址:http://localhost:8100,点击【Connect】连接,出现

  • APP 元素定位总结(未完待补充)2021-04-05 18:34:07

    背景 个人记录,团队分享使用,好记性不如烂笔头~ 定位工具 推荐使用顺序:weditor > uiautomatorviewer > Appium inspector 三种定位工具 Python uiautomator2 中的 weditor Android SDK 自带的 uiautomatorviewer Appium inspector 三种工具异同点 Appium inspector 需要配置启动

  • 关于WEditor使用-自我总结小白向2021-02-27 16:31:23

    关于WEditor使用-自我总结小白向 关于WEditor的安装以及种种安装WEditor通过adb连接手机或者模拟器后记 关于WEditor的安装以及种种 这里是一只鳖在折腾路上的个人心得感悟,如果正好能帮助到你那是我最大荣幸了~ 当然了,看我这可怜的码龄也知道我就一小白就是了,所以有什么

  • 解决weditor启动后,报错ValueError: not enough values to unpack (expected 2, got 1)2021-02-24 14:02:57

    在控制台输入python -m weditor后,报错: [E 210224 12:04:57 web:1789] Uncaught exception GET /api/v2/devices/-/hierarchy (::1) HTTPServerRequest(protocol='http', host='localhost:17310', method='GET', uri='/api/v2/devices/-/hierar

  • APP元素定位工具之——Weditor2019-11-10 22:57:26

    1、weditor的说明     WEditor可以理解为在浏览器中打开的uiautomatorviewer,个人使用起来比uiautomatorviewer更好用,不会像uiautomatorviewer那样由于安卓系统的不同,会出现各种情况,还支持安卓、ios、Neco(beta); 如果在使用uiautomatorviewer遇到问题时,可以采用WEditor试试(个人更偏

  • APP元素定位工具weditor2019-09-26 17:03:18

    github地址https://github.com/openatx/weditor python -m weditor --shortcut adb devices 在页面上输入手机设备号,点Connet按钮,看到出现一个小草的图标,就是连接成功了 Coding调试 可以在页面的右边调试运行代码,这点比appium强很多,可以编写代码边调试,还是非常方便的 Ctr+Enter运

  • Weditor使用2019-09-11 11:35:40

    安装界面版weditor pip install --pre -U weditor 手机和PC连接,打开开发者模式,初始化手机 uiautomator2 init -s LKX0218307002557 运行weditor python -m weditor

  • 【原创】Python3 + Red + PyDev + Eclipse + Subversion + RobotFramework + UI Automator2 + Weditor 构建Web+Mo2019-08-22 21:08:01

    环境搭建步骤: 1. 下载安装Oracle JDK; 2. 下载安装Eclipse; 3. 下载安装Python3; 4. 配置Java环境变量; 5. 配置Python环境变量; 6. 安装Python Libraries(RobotFramework-Selenium2Library,Weditor); 7. 安装配置Eclipse插件(RED,PyDev,Subversion); 8. 启动Eclipse环境,初始化Robot项目结构; 9.

  • 使用UI automator viewer或者WEditor获取元素出错2019-07-24 18:03:43

    1、使用UI automator viewer或者WEditor获取元素出现没有这个元素的error提示,原因可能获取的这个元素clickable为false,也就是不能点击,所以要观察该元素的上一个或者下一个元素的clickable是否为true,只有是true才可以点击  

  • WEditor使用方法2019-06-04 11:03:21

    APP的定位方式有: 1. Appium Desktop工具里的Inspector 2. /tools/bin/uiautomatorviewer.bat 最近发现在一个更好用的定位工具: Weditor. 简单介绍一下它的使用方法. 1. 终端中输入 pip install weditor安装weditor 2. 终端输入: python -m uiautomator2 init, 它会在虚拟机中

  • python-uiautomator2(001)2019-01-30 18:40:41

    介绍: uiautomator2 是一个可以使用Python对Android设备进行UI自动化的库。 python-uiautomator2主要分为两个部分:python端、移动设备 python端:运行脚本,并向移动设备发送HTTP请求 移动设备 :移动设备上运行封装了uiautomator2的HTTP服务,解析收到的请求,并转化成uiautomator2的代码 安

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有