中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

中山哪里做網(wǎng)站seo職業(yè)培訓(xùn)班

中山哪里做網(wǎng)站,seo職業(yè)培訓(xùn)班,網(wǎng)站設(shè)計一個版塊,六安市公司網(wǎng)站建設(shè)app爬蟲中的Airtest元素存在或等待 一. poco等待 等待無錯誤 等待元素10秒。如果它沒有出現(xiàn),則不會引發(fā)任何錯誤。 poco(xxx).wait(timeout10)您還可以在.wait()之后執(zhí)行一些操作,如click或long_click poco(xxx).wait(timeout10).click() poco(xxx).…

app爬蟲中的Airtest元素存在或等待

一. poco等待

等待無錯誤
等待元素10秒。如果它沒有出現(xiàn),則不會引發(fā)任何錯誤。

poco('xxx').wait(timeout=10)

您還可以在.wait()之后執(zhí)行一些操作,如click或long_click

poco('xxx').wait(timeout=10).click()
poco('xxx').wait(timeout=10).long_click()

等待錯誤
等待元素10秒。如果元素未出現(xiàn),將引發(fā)PocoTargetTimeout錯誤。

poco('xxx').wait_for_appearance(20)
poco('xxx').wait_for_disappearance(20) # wait for disappearance of the element

常見的使用:

from poco.exceptions import PocoTargetTimeouttry:poco('xxx').wait_for_appearance(20)
except PocoTargetTimeout:# logging...# raise ...

等待元素(沒有時間設(shè)置)
Wait_for_all()將等待所有元素出現(xiàn)。Wait_for_any()將等待,直到任何一個元素出現(xiàn)。

yellow = poco("yellow")
blue = poco("blue")
black = poco("black")poco.wait_for_all([yellow,blue,black])
# poco.wait_for_any([yellow,blue,black])
poco('xxx').click()  # if the elements above not appeared, this click will not be operated

檢查是否存在,不要等待
poco(‘xxx’).exists() 將返回True或False來告訴你元素的當(dāng)前狀態(tài)(不會引發(fā)錯誤)。

if poco('xxx').exists():# some operations if find the element
else:# some operations if not find the element

二. Airtest wait

from airtest.core.api import *
# exist
exists(some_element)  # return True or False
# wait - if not appear, TargetNotFoundError will be raised
wait(some_element, timeout=5)
# wait - the default value of timeout is set by ST.FIND_TIMEOUT
wait(some_element)
http://www.risenshineclean.com/news/58617.html

相關(guān)文章:

  • 邯鄲網(wǎng)站設(shè)計招聘最新域名查詢
  • 公眾號視頻網(wǎng)站開發(fā)微博營銷成功案例8個
  • 怎么讓網(wǎng)站欄目頁收錄廣州公司關(guān)鍵詞網(wǎng)絡(luò)推廣
  • 企業(yè)商務(wù)網(wǎng)站建設(shè)策劃書優(yōu)化網(wǎng)站首頁
  • 播視頻網(wǎng)站開發(fā)網(wǎng)站外鏈查詢
  • 做網(wǎng)站找哪家好熊掌號英文關(guān)鍵詞seo
  • 做視頻網(wǎng)站需要什么空間視頻號直播推廣二維碼
  • 微信如何做積分商城網(wǎng)站網(wǎng)站seo關(guān)鍵詞優(yōu)化排名
  • 番禺seo培訓(xùn)如何優(yōu)化關(guān)鍵詞的排名
  • wordpress交互主題揭陽seo快速排名
  • 設(shè)計門戶網(wǎng)百度seo競價推廣是什么
  • 做b2b比較好的網(wǎng)站seo零基礎(chǔ)入門教程
  • axure做網(wǎng)站教學(xué)視頻寧海關(guān)鍵詞優(yōu)化怎么優(yōu)化
  • 杭州做企業(yè)網(wǎng)站公司seo前線
  • 織夢網(wǎng)站需要付費嗎百度搜首頁
  • 許昌那有做網(wǎng)站網(wǎng)頁點擊量統(tǒng)計
  • 廣州做網(wǎng)站最好的公司深圳seo公司排名
  • php 建設(shè)網(wǎng)站網(wǎng)站老域名跳轉(zhuǎn)到新域名
  • 哪有做企業(yè)網(wǎng)站seo關(guān)鍵詞排名優(yōu)化品牌
  • 南岸網(wǎng)站建設(shè)百度搜索引擎怎么做
  • 企業(yè)h5網(wǎng)站建設(shè)百度推廣平臺收費標(biāo)準(zhǔn)
  • vuejs做視頻網(wǎng)站免費加精準(zhǔn)客源
  • 濟南做網(wǎng)站優(yōu)化網(wǎng)站制作方案
  • 馬鞍山網(wǎng)站建設(shè)咨詢電艾滋病多長時間能查出來
  • 網(wǎng)站的層次怎么優(yōu)化自己網(wǎng)站
  • 一簾幽夢紫菱做的網(wǎng)站網(wǎng)站策劃方案案例
  • 做網(wǎng)站賺錢廣州seo團隊
  • php和織夢那個做網(wǎng)站好網(wǎng)絡(luò)推廣營銷策劃方案
  • 做淘寶客網(wǎng)站需要多大的數(shù)據(jù)庫核心關(guān)鍵詞舉例
  • 小型網(wǎng)站運營推廣學(xué)院seo教程