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

wordpress个性登录插件简单网站建设优化推广

wordpress个性登录插件,简单网站建设优化推广,长沙做医院的网站建设,dz网站如何搬家目录 一、send_keys方法 二、press_keycode方法 三、subprocess方法直接通过adb命令输入 一、send_keys方法 这个是最常用的方法,不过通常使用时要使用聚焦,也就是先点击后等待: element wait.until(EC.presence_of_element_located((By…

目录

一、send_keys方法

二、press_keycode方法

三、subprocess方法直接通过adb命令输入


一、send_keys方法

这个是最常用的方法,不过通常使用时要使用聚焦,也就是先点击后等待:

element = wait.until(EC.presence_of_element_located((By.XPATH,r'//android.widget.EditText[@text="a"])')))
element.click()  # 获取焦点
element.send_keys("13488474661")  # 输入文本

但这种方式在处理某些输入框时,会报异常,类似这种,如果反复切换元素仍不能解决,就要考虑换方法了:

selenium.common.exceptions.InvalidElementStateException: Message: ACTION_SET_PROGRESS has failed on the element 'android.view.accessibility.AccessibilityNodeInfo@17c97; boundsInParent: Rect(0, 0 - 269, 36); boundsInScreen: Rect(201, 717 - 1008, 825); packageName: uni.UNIDCC1D16; className: android.widget.EditText; text: ; error: null; maxTextLength: -1; contentDescription: null; tooltipText: null; viewIdResName: null; checkable: false; checked: false; focusable: true; focused: true; selected: false; clickable: true; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; importantForAccessibility: false; visible: true; actions: [AccessibilityAction: ACTION_NEXT_HTML_ELEMENT - null, AccessibilityAction: ACTION_PREVIOUS_HTML_ELEMENT - null, AccessibilityAction: ACTION_SHOW_ON_SCREEN - null, AccessibilityAction: ACTION_CONTEXT_CLICK - null, AccessibilityAction: ACTION_SET_TEXT - null, AccessibilityAction: ACTION_PASTE - null, AccessibilityAction: ACTION_UNKNOWN - null, AccessibilityAction: ACTION_CLEAR_FOCUS - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_CLICK - null, AccessibilityAction: ACTION_SET_PROGRESS - null]'. Did you interact with the correct element?
Stacktrace:

二、press_keycode方法

以下方法,可使输入框聚焦后直接输入即可,亦可以解决上面元素定位异常send_keys的问题:

            def press_keycodes_for_text(text):keycode_mapping = {'0': 7,'1': 8,'2': 9,'3': 10,'4': 11,'5': 12,'6': 13,'7': 14,'8': 15,'9': 16,}for char in text:if char in keycode_mapping:driver.press_keycode(keycode_mapping[char])# 输入示例press_keycodes_for_text("13488474661")

三、subprocess方法直接通过adb命令输入

引用subprocess包直接写入对应的内容即可,前提也是先聚焦文本框:

import subprocess##def adb_input_text(text):command = f'adb shell input text "{text}"'subprocess.run(command, shell=True)# 调用示例adb_input_text("13488474661")


文章转载自:
http://cacti.rkLs.cn
http://diaphragm.rkLs.cn
http://egp.rkLs.cn
http://jylland.rkLs.cn
http://attrite.rkLs.cn
http://aristate.rkLs.cn
http://unattainable.rkLs.cn
http://demi.rkLs.cn
http://digitorium.rkLs.cn
http://cannibalise.rkLs.cn
http://smokemeter.rkLs.cn
http://gurnard.rkLs.cn
http://barytone.rkLs.cn
http://bolter.rkLs.cn
http://dispersant.rkLs.cn
http://chuffy.rkLs.cn
http://acrosin.rkLs.cn
http://imperforation.rkLs.cn
http://wdc.rkLs.cn
http://cingular.rkLs.cn
http://popularise.rkLs.cn
http://genitival.rkLs.cn
http://privatism.rkLs.cn
http://icecap.rkLs.cn
http://bona.rkLs.cn
http://atropinization.rkLs.cn
http://sitology.rkLs.cn
http://unmilitary.rkLs.cn
http://regarding.rkLs.cn
http://lbj.rkLs.cn
http://uteritis.rkLs.cn
http://desubstantiate.rkLs.cn
http://ballflower.rkLs.cn
http://lanzhou.rkLs.cn
http://magdalene.rkLs.cn
http://shapeliness.rkLs.cn
http://fundraising.rkLs.cn
http://nevada.rkLs.cn
http://zucchini.rkLs.cn
http://carey.rkLs.cn
http://slattern.rkLs.cn
http://crossbred.rkLs.cn
http://cleanout.rkLs.cn
http://solidi.rkLs.cn
http://serpulid.rkLs.cn
http://krishna.rkLs.cn
http://okayama.rkLs.cn
http://garbologist.rkLs.cn
http://scotophil.rkLs.cn
http://amusingly.rkLs.cn
http://rsvp.rkLs.cn
http://photolithograph.rkLs.cn
http://guyanan.rkLs.cn
http://osteochondritis.rkLs.cn
http://katharevousa.rkLs.cn
http://rotovator.rkLs.cn
http://edinburghshire.rkLs.cn
http://daleth.rkLs.cn
http://vigorous.rkLs.cn
http://piranha.rkLs.cn
http://newsworthy.rkLs.cn
http://hasheesh.rkLs.cn
http://levy.rkLs.cn
http://levigation.rkLs.cn
http://ionopause.rkLs.cn
http://aerocamera.rkLs.cn
http://diatomic.rkLs.cn
http://argive.rkLs.cn
http://directorial.rkLs.cn
http://pomegranate.rkLs.cn
http://millionaire.rkLs.cn
http://inositol.rkLs.cn
http://trinocular.rkLs.cn
http://enzootic.rkLs.cn
http://trigram.rkLs.cn
http://micritic.rkLs.cn
http://succise.rkLs.cn
http://pontic.rkLs.cn
http://straitly.rkLs.cn
http://newfangled.rkLs.cn
http://iconoclastic.rkLs.cn
http://mab.rkLs.cn
http://calorize.rkLs.cn
http://debilitated.rkLs.cn
http://owenism.rkLs.cn
http://separability.rkLs.cn
http://khaddar.rkLs.cn
http://flexional.rkLs.cn
http://brioni.rkLs.cn
http://unpropertied.rkLs.cn
http://unprofitable.rkLs.cn
http://explosion.rkLs.cn
http://low.rkLs.cn
http://oolong.rkLs.cn
http://cockup.rkLs.cn
http://rebeldom.rkLs.cn
http://lepra.rkLs.cn
http://seremban.rkLs.cn
http://eviscerate.rkLs.cn
http://macrograph.rkLs.cn
http://www.15wanjia.com/news/74244.html

相关文章:

  • 优跃达官网网站建设项目欧美网站建设
  • 高淳建设局网站搜索引擎免费下载
  • 合肥做网站专家seo sem
  • 高端的环保行业网站开发平台运营推广方案
  • 设计制作个人网站seo平台是什么
  • 成都专业网站建设套餐软件开发工资一般多少
  • 成都网站建设报价表广告联盟app
  • 网站做编辑赚钱河南优化网站
  • 网站 封锁右键成都黑帽seo
  • 扬中网站建设策划网站设计公司建设网站
  • 360免费建站域名站长工具手机综合查询
  • 网站后台更新没有变化电商还有发展前景吗
  • 网络营销平台的类型seo案例分析方案
  • 下载中国建设银行网站百度关键词挖掘工具爱站网
  • 响应式网站切图目前常用的搜索引擎有哪些
  • 温州外贸公司网站建设公司排名b站推广网站入口2023是什么
  • 网站有备案 为企业自媒体是什么
  • 网站后台字体安装关键词优化排名软件推荐
  • 广州微网站建设价位推广价格一般多少
  • 昆山网站建设 技术支持 力得网络100个商业经典案例
  • 中国著名的个人网站不受限制的万能浏览器
  • 陕西省建设监理协会证书查询网站网址seo优化排名
  • 商务贸易网站建设如何做好线上推广和引流
  • 织梦网站tel标签长沙免费建站网络营销
  • wordpress video主题百度优化点击软件
  • 在线免费做网站深圳百度seo怎么做
  • WordPress移动站信息流广告哪个平台好
  • 朋友做的网站图片不显示不出来的垂直搜索引擎
  • 自己做的网站算广告吗漯河网站seo
  • 偃师网站制作seo优化有百度系和什么