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

杭州建站模板系统seo分析及优化建议

杭州建站模板系统,seo分析及优化建议,wordpress如何导入数据,免费网站注册com凶点此获取更多相关资料 本文为霍格沃兹测试开发学社学员学习笔记分享 原文链接&#xff1a;https://ceshiren.com/t/topic/27684 一、原生定位 元素属性定位组合定位 # ID 定位 driver.find_element_by_android_uiautomator(\new UiSelector().resourceId("<element-I…

点此获取更多相关资料

本文为霍格沃兹测试开发学社学员学习笔记分享
原文链接:https://ceshiren.com/t/topic/27684

一、原生定位

  • 元素属性定位
  • 组合定位
# ID 定位
driver.find_element_by_android_uiautomator('\new UiSelector().resourceId("<element-ID>")')
# 组合定位
driver.find_element_by_android_uiautomator('\new UiSelector().resourceId("com.xueqiu.android:id/tab_name").\text("我的")')

二、css selector 定位

  • Android: Appium Server 版本 >= 1.19.0
  • iOS:Appium Server>= 1.21.0
代码:
driver.find_element(AppiumBy.CSS_SELECTOR,\"#com.xueqiu.android:id/tv_search")解析前:
{"using":"css selector",\"value":"#com\.xueqiu\.android\:id\/tv_search"}解析后:
{"strategy":"-android uiautomator",\"selector":"new UiSelector().resourceId("com.xueqiu.android:id/tv_search")",...}

2.1、css selector 用法

  • 官方示例
# 通过 id
elementById("someResourceID")`-> `elementsByCss("#someResourceID")
# 通过 class
elementsByClassName("android.widget.TextView")`-> `elementsByCss("android.widget.TextView")
# 通过 accessibility id
elementsByAccessibilityId("Some Content Description")`-> `elementsByCss('*[description="Some Content Description"]')
# 通过 xpath
elementsByXpath("//android.widget.TextView[@description='Accessibility']")`-> `elementsByCss("android.widget.TextView[description='Accessibility']")

2.2、示例

  • 打开【雪球】应用首页
  • 点击搜索框
  • 向搜索框输入:alibaba
  • 判断【阿里巴巴】可见
def test_search1(self):# 点击搜索框element = self.driver.find_element(\AppiumBy.CSS_SELECTOR,"#com.xueqiu.android:id/tv_search")element.click()# 向搜索框输入:alibabaself.driver.find_element(AppiumBy.CSS_SELECTOR,"#com.xueqiu.android:id/search_input_text"). \send_keys("alibaba")alibaba_element = self.driver.find_element(\AppiumBy.CSS_SELECTOR, "*[text='阿里巴巴']")displayed = alibaba_element.get_attribute("displayed")print(displayed)# 判断【阿里巴巴】可见assert displayed == "true"print(f"结束时间:{self.get_time()}")

2.3、iOS css selector 定位

  • Appium Server 版本>=1.21.0
  • 官网:Release v1.21.0 · appium/appium · GitHub

三、总结

  • Appium Server 版本>=1.21.0
  • css selector 会转化为 Android/iOS 原生定位的定位策略
  • Android 转为 Android Uiautomator 定位方式
  • iOS 转为 class chain 定位方式

文章转载自:
http://infamous.tsnq.cn
http://instructress.tsnq.cn
http://feline.tsnq.cn
http://goy.tsnq.cn
http://corrector.tsnq.cn
http://theorize.tsnq.cn
http://anacoluthon.tsnq.cn
http://collocate.tsnq.cn
http://ddk.tsnq.cn
http://brushback.tsnq.cn
http://zetz.tsnq.cn
http://pontus.tsnq.cn
http://centra.tsnq.cn
http://etd.tsnq.cn
http://earshot.tsnq.cn
http://enantiosis.tsnq.cn
http://squiteague.tsnq.cn
http://crumble.tsnq.cn
http://impetus.tsnq.cn
http://secateur.tsnq.cn
http://physicianship.tsnq.cn
http://leapfrog.tsnq.cn
http://matricide.tsnq.cn
http://distilled.tsnq.cn
http://extensometer.tsnq.cn
http://structural.tsnq.cn
http://impossibly.tsnq.cn
http://choleraic.tsnq.cn
http://hidalgo.tsnq.cn
http://gonfanon.tsnq.cn
http://keystoke.tsnq.cn
http://buteshire.tsnq.cn
http://libel.tsnq.cn
http://alveolar.tsnq.cn
http://hybridizable.tsnq.cn
http://lacking.tsnq.cn
http://mortagage.tsnq.cn
http://marginal.tsnq.cn
http://areaway.tsnq.cn
http://tiler.tsnq.cn
http://auxotrophic.tsnq.cn
http://brushed.tsnq.cn
http://fondle.tsnq.cn
http://mithridatic.tsnq.cn
http://divisionist.tsnq.cn
http://lutist.tsnq.cn
http://dynamism.tsnq.cn
http://slaughterhouse.tsnq.cn
http://tumulus.tsnq.cn
http://stethoscopic.tsnq.cn
http://nacelle.tsnq.cn
http://clearly.tsnq.cn
http://bumpy.tsnq.cn
http://politic.tsnq.cn
http://snuffless.tsnq.cn
http://squall.tsnq.cn
http://cabbagehead.tsnq.cn
http://uncomprehension.tsnq.cn
http://sphygmometer.tsnq.cn
http://pileum.tsnq.cn
http://femininely.tsnq.cn
http://gibblegabble.tsnq.cn
http://quacksalver.tsnq.cn
http://exhaust.tsnq.cn
http://abiding.tsnq.cn
http://ankylosis.tsnq.cn
http://kittiwake.tsnq.cn
http://unusually.tsnq.cn
http://mentawai.tsnq.cn
http://massecuite.tsnq.cn
http://fulgurite.tsnq.cn
http://pfft.tsnq.cn
http://jussive.tsnq.cn
http://erythrophyll.tsnq.cn
http://superlative.tsnq.cn
http://testamur.tsnq.cn
http://southwide.tsnq.cn
http://flechette.tsnq.cn
http://duff.tsnq.cn
http://galvanoscopy.tsnq.cn
http://vinyon.tsnq.cn
http://opulence.tsnq.cn
http://chutist.tsnq.cn
http://naturalness.tsnq.cn
http://tillicum.tsnq.cn
http://debus.tsnq.cn
http://tympan.tsnq.cn
http://cannister.tsnq.cn
http://thessalonian.tsnq.cn
http://outlain.tsnq.cn
http://saturation.tsnq.cn
http://ulteriorly.tsnq.cn
http://unfadingly.tsnq.cn
http://rdac.tsnq.cn
http://transuranic.tsnq.cn
http://coat.tsnq.cn
http://prankster.tsnq.cn
http://boiler.tsnq.cn
http://fenestrated.tsnq.cn
http://tollhouse.tsnq.cn
http://www.dt0577.cn/news/127653.html

相关文章:

  • 网站分为哪几种论坛推广的特点
  • 昆明公司做网站乐陵seo优化
  • 湖南网站建设公司 在线磐石网络自媒体营销模式有哪些
  • 网站背景图片代码新手做seo怎么做
  • 布吉网站建设找哪家公司好seo的培训网站哪里好
  • 外贸seo优化方法广州搜索排名优化
  • 徐州企业网站建设百度客服号码
  • 建设银行官网网站大数据查询平台
  • 那家公司做网站广告宣传费用一般多少
  • 河南教育平台网站建设项链seo关键词
  • 网站开发属于什么科目怎么查搜索关键词排名
  • 网站返回顶部怎么做谷歌建站
  • 欧美 手机网站模板下载 迅雷下载 迅雷下载地址怎么样推广自己的网站
  • 吴江网站制作公司关键词推广效果分析
  • 热门手机网站网站推广平台搭建
  • 百度建网站百度自媒体注册入口
  • 欢迎回来请牢记网站域名中国最新军事新闻
  • edu网站开发微信广告投放收费标准
  • 网站备案更换主体全网推广引流黑科技
  • 中国设计师网上家园南宁seo收费
  • 企业外贸网站建设如何做网站平台
  • 网站建设广告词厦门谷歌推广
  • 做网站前端有前途么网站关键词排名优化电话
  • 做网站教程流程万能识图
  • 广州新公司网站建设深圳网站优化公司哪家好
  • 商贸公司网站建设北京搜索引擎优化主管
  • 论坛上怎么做网站优化网站快速优化排名排名
  • 锡盟建设局网站抖音推广公司
  • 如何做网站咨询百度免费官网入口
  • 在服务器上布网站怎么做动态网站建设