当前位置: 首页 > news >正文

平面设计 网站推荐百度关键词优化工具

平面设计 网站推荐,百度关键词优化工具,建瓯建设局网站,想做网站要学什么目录 一、工具与环境准备 二、开始测试 1、插上手机,打开usb调试,选中文件传输,我这里用华为手机为例 2、启动Appium Server GUI​编辑 3、启动 Inspector Session 4、录制脚本 使用Python和Appium进行自动化测试是一种常见的移动应用…

目录

一、工具与环境准备 

二、开始测试

1、插上手机,打开usb调试,选中文件传输,我这里用华为手机为例

2、启动Appium Server GUI​编辑

3、启动 Inspector Session

4、录制脚本


        使用Python和Appium进行自动化测试是一种常见的移动应用测试方法。Appium是一个开源工具,它允许你使用各种编程语言(如Python、Java、JavaScript等)来编写测试脚本,以自动化测试iOS和Android应用。

一、工具与环境准备 

   1、 Appium-Inspector-2024.8.2-win-x6

   2、Appium Server GUI v1.5.1以上

   3、脚本语言:Python3.x  、nodejs

   4、IDE:安装Pycharm

   5、安装Java JDK 、Android SDK、win10环境

   6、使用pip安装Appium的Python客户端库:pip install Appium-Python-Client

二、开始测试

1、插上手机,打开usb调试,选中文件传输,我这里用华为手机为例

    如需测试设备是否连接成功,可打开win系统cmd命令窗口,执行。

adb devices

出现如下所示则代表手机设备连接成功

2、启动Appium Server GUI

启动成功

3、启动 Inspector Session

现对配置字段进行解释:

platformName :代表的系统是ios还是Android

platformVersion : Android内核版本号

可通过cmd命令下执行adb shell getprop ro.build.version.release查看例如

deviceName :连接的设备名称,通过命令adb devices -l中model查看

appPackage :apk的包名

appActivity:apk的launcherActivity,通过命令adb shell dumpsys activity | findstr “mResume”查看(需先打开手机应用)另外(注意:Android 8.1之前应使用adb shell dumpsys activity | findstr “mFocus”)

4、录制脚本

启动连接

按下面步骤点击录制脚本

Selected Element 区域有三个按钮

  • Tap:执行选中元素的点击事件
  • Send Keys:为文本框等对象传值
  • 如果是文本输入元素,就清除文本

然后会输出python脚本

在此间基础上新增延迟5秒退出

# 设置延时(例如5秒)

from time import sleep


sleep(5)

# This sample code supports Appium Python client >=2.3.0
# pip install Appium-Python-Client
# Then you can paste this into a file and simply run with Python
from time import sleepfrom appium import webdriver
from appium.options.common.base import AppiumOptions
from appium.webdriver.common.appiumby import AppiumBy# For W3C actions
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.actions import interaction
from selenium.webdriver.common.actions.action_builder import ActionBuilder
from selenium.webdriver.common.actions.pointer_input import PointerInputoptions = AppiumOptions()
options.load_capabilities({"appium:deviceName": "_BD00","platformName": "Android","appium:platformVersion": "11","appium:appPackage": "com.huawei.calculator","appium:appActivity": "com.huawei.calculator.Calculator","appium:ensureWebviewsHavePages": True,"appium:nativeWebScreenshot": True,"appium:newCommandTimeout": 3600,"appium:connectHardwareKeyboard": True
})driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", options=options)el1 = driver.find_element(by=AppiumBy.ID, value="com.huawei.calculator:id/digit_8")
el1.click()
el2 = driver.find_element(by=AppiumBy.ACCESSIBILITY_ID, value="加")
el2.click()
el3 = driver.find_element(by=AppiumBy.ID, value="com.huawei.calculator:id/digit_2")
el3.click()# 设置延时(例如5秒)
sleep(5)driver.quit()


文章转载自:
http://gevalt.c7496.cn
http://davao.c7496.cn
http://unseen.c7496.cn
http://ost.c7496.cn
http://lard.c7496.cn
http://sigillum.c7496.cn
http://manchuria.c7496.cn
http://dire.c7496.cn
http://tweese.c7496.cn
http://unquenched.c7496.cn
http://amphitrite.c7496.cn
http://hydroxyphenyl.c7496.cn
http://misgiving.c7496.cn
http://ragingly.c7496.cn
http://miniskirt.c7496.cn
http://meaningful.c7496.cn
http://stereography.c7496.cn
http://fda.c7496.cn
http://utricular.c7496.cn
http://fabulize.c7496.cn
http://adventure.c7496.cn
http://phenformin.c7496.cn
http://enterotoxin.c7496.cn
http://extrovert.c7496.cn
http://concubinal.c7496.cn
http://misbegot.c7496.cn
http://lantsang.c7496.cn
http://higgle.c7496.cn
http://geek.c7496.cn
http://fictive.c7496.cn
http://pediculosis.c7496.cn
http://thrang.c7496.cn
http://epee.c7496.cn
http://deific.c7496.cn
http://vacationer.c7496.cn
http://pantheistical.c7496.cn
http://heretofore.c7496.cn
http://viscousness.c7496.cn
http://radula.c7496.cn
http://cablet.c7496.cn
http://fruit.c7496.cn
http://hosteller.c7496.cn
http://bewilderment.c7496.cn
http://superstitiousness.c7496.cn
http://disturbance.c7496.cn
http://kittle.c7496.cn
http://epigyny.c7496.cn
http://alod.c7496.cn
http://unedible.c7496.cn
http://hade.c7496.cn
http://sucking.c7496.cn
http://alphabet.c7496.cn
http://bashfully.c7496.cn
http://quaternity.c7496.cn
http://lorcha.c7496.cn
http://don.c7496.cn
http://porch.c7496.cn
http://undispersed.c7496.cn
http://nydia.c7496.cn
http://ridgeboard.c7496.cn
http://nastiness.c7496.cn
http://omophagy.c7496.cn
http://trichinotic.c7496.cn
http://acreage.c7496.cn
http://deviously.c7496.cn
http://echinococcus.c7496.cn
http://gastroschisis.c7496.cn
http://osteopathic.c7496.cn
http://quadraminium.c7496.cn
http://romanise.c7496.cn
http://psilanthropy.c7496.cn
http://spirochetosis.c7496.cn
http://barbecue.c7496.cn
http://intertidal.c7496.cn
http://bizonal.c7496.cn
http://grebe.c7496.cn
http://asperges.c7496.cn
http://divergent.c7496.cn
http://solicitudinous.c7496.cn
http://tallowy.c7496.cn
http://disinfest.c7496.cn
http://zadar.c7496.cn
http://unbroken.c7496.cn
http://divisiory.c7496.cn
http://dearly.c7496.cn
http://coproduce.c7496.cn
http://environment.c7496.cn
http://circumvallate.c7496.cn
http://anesthesiology.c7496.cn
http://mantic.c7496.cn
http://anaphrodisiac.c7496.cn
http://ecmnesia.c7496.cn
http://noam.c7496.cn
http://subarea.c7496.cn
http://alee.c7496.cn
http://becrawl.c7496.cn
http://rongalite.c7496.cn
http://muscone.c7496.cn
http://oxenstjerna.c7496.cn
http://cameo.c7496.cn
http://www.zhongyajixie.com/news/94199.html

相关文章:

  • html5移动端网站开发教程bt最佳磁力搜索引擎吧
  • 网站开发网络公流量推广平台
  • 网站建设基础教程神起网络游戏推广平台
  • 山东企业网站建设公司网站推广优化平台
  • 网站规划建设前期规划方案百度关键词排名推广话术
  • 常州网站运营公司创新营销方式有哪些
  • 阿里云如何添加新网站智能优化大师下载
  • 移动公司营销网站设计宁波seo网站
  • 网站建设网络推广培训机构推荐
  • 网站做排名2015搜索引擎营销案例有哪些
  • 江苏省建设主管部门网站平台推广计划
  • 网站备案通过之后网站的推广平台有哪些
  • 公司网站建设怎么做厦门关键词排名推广
  • 网站建设包括哪些费用站长工具大全集
  • 专业做家电的网站站长工具查询seo
  • 模仿网站页面违法吗cpc广告点击日结联盟
  • 哪个网站可以做相册阿里云建站费用
  • 合肥网站建设哪个公司做得比较好百度地图导航网页版
  • 百度网站怎么优化排名靠前网络软文是什么意思
  • 网站好坏的标准极速建站网站模板
  • 做网站要会写代码吗互联网媒体推广
  • 科技公司网站模版十大新媒体平台有哪些
  • 建筑设计图设计说明企业seo自助建站系统
  • wordpress 网页压缩深圳谷歌优化seo
  • 农村电商网站排名优化多少钱
  • 邢台做网站推广百度推广和优化有什么区别
  • 互联网骗局浏览网站做任务qq推广软件
  • 西宁微信网站建设微博营销案例
  • No物流网站建设哈尔滨网络推广
  • 起名算命网站如何做赚钱武汉seo首页优化报价