国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

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

電商網(wǎng)站設(shè)計(jì)方案大全建立網(wǎng)站需要多少錢

電商網(wǎng)站設(shè)計(jì)方案大全,建立網(wǎng)站需要多少錢,室內(nèi)設(shè)計(jì)多久能學(xué)出來,做網(wǎng)站都注意哪些東西點(diǎn)此獲取更多相關(guān)資料 本文為霍格沃茲測試開發(fā)學(xué)社學(xué)員學(xué)習(xí)筆記分享 原文鏈接&#xff1a;https://ceshiren.com/t/topic/27684 一、原生定位 元素屬性定位組合定位 # ID 定位 driver.find_element_by_android_uiautomator(\new UiSelector().resourceId("<element-I…

點(diǎn)此獲取更多相關(guān)資料

本文為霍格沃茲測試開發(fā)學(xué)社學(xué)員學(xué)習(xí)筆記分享
原文鏈接: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、示例

  • 打開【雪球】應(yīng)用首頁
  • 點(diǎn)擊搜索框
  • 向搜索框輸入:alibaba
  • 判斷【阿里巴巴】可見
def test_search1(self):# 點(diǎn)擊搜索框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"結(jié)束時(shí)間:{self.get_time()}")

2.3、iOS css selector 定位

  • Appium Server 版本>=1.21.0
  • 官網(wǎng):Release v1.21.0 · appium/appium · GitHub

三、總結(jié)

  • Appium Server 版本>=1.21.0
  • css selector 會轉(zhuǎn)化為 Android/iOS 原生定位的定位策略
  • Android 轉(zhuǎn)為 Android Uiautomator 定位方式
  • iOS 轉(zhuǎn)為 class chain 定位方式
http://aloenet.com.cn/news/29634.html

相關(guān)文章:

  • 寧波建設(shè)監(jiān)理管理協(xié)會網(wǎng)站營銷的手段和方法
  • 有edi證書可以做網(wǎng)站運(yùn)營么巧克力軟文范例200字
  • 網(wǎng)站描述多個(gè)詞怎么分隔互聯(lián)網(wǎng)推廣銷售是做什么的
  • 傳奇怎么建設(shè)自己的網(wǎng)站怎樣在百度上建立網(wǎng)站
  • 長沙做網(wǎng)站推廣哪家好惠州網(wǎng)站制作推廣
  • 湛江網(wǎng)站建設(shè)外包網(wǎng)絡(luò)推廣技巧
  • 鄭州艾特網(wǎng)站建設(shè)營銷咨詢服務(wù)
  • 商標(biāo)設(shè)計(jì)logo網(wǎng)站廣州seo優(yōu)化推廣
  • 2018年的網(wǎng)站制作免費(fèi)的行情軟件app網(wǎng)站
  • 網(wǎng)站編程學(xué)習(xí)百度關(guān)鍵詞排名優(yōu)化
  • 滄州建設(shè)網(wǎng)站ip反查域名網(wǎng)站
  • 安徽網(wǎng)站設(shè)計(jì)百度做個(gè)人簡介多少錢
  • 網(wǎng)站開發(fā)技術(shù)實(shí)驗(yàn)報(bào)告主流搜索引擎有哪些
  • 服裝公司 網(wǎng)站怎么做站長之家ppt素材
  • 用.net做視頻網(wǎng)站的案例淄博網(wǎng)站推廣
  • 做網(wǎng)站費(fèi)用 優(yōu)幫云網(wǎng)站友情鏈接
  • 做網(wǎng)站要用到什么軟件外貿(mào)seo是啥
  • 我的家鄉(xiāng)網(wǎng)頁制作代碼寧波seo外包推廣公司
  • 武漢做網(wǎng)站價(jià)格公關(guān)團(tuán)隊(duì)
  • asp網(wǎng)站圖片不顯示附近的教育培訓(xùn)機(jī)構(gòu)有哪些
  • 珠海網(wǎng)站建設(shè)陳玉銘千萬不要做手游推廣員
  • wordpress 導(dǎo)購主題網(wǎng)絡(luò)推廣seo怎么弄
  • 長沙網(wǎng)站搜索引擎優(yōu)化鞍山seo優(yōu)化
  • 網(wǎng)站單頁在線制作軟件網(wǎng)絡(luò)營銷與直播電商就業(yè)前景
  • 常州酒店網(wǎng)站建設(shè)代運(yùn)營公司排行榜
  • 天柱建設(shè)局網(wǎng)站河南網(wǎng)站關(guān)鍵詞優(yōu)化
  • 訂閱號怎么做免費(fèi)的視頻網(wǎng)站青島網(wǎng)站seo服務(wù)
  • 瀘縣手機(jī)網(wǎng)站建設(shè)搜搜
  • 江西南昌網(wǎng)站制作seo排名軟件價(jià)格
  • 怎么做挖礦網(wǎng)站google網(wǎng)站登錄入口