第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

根據(jù)bounds 找控件

根據(jù)bounds 找控件

qq_慕婉清1236790 2019-05-06 10:55:32
package?mka.com; import?android.app.Instrumentation; import?android.support.test.InstrumentationRegistry; import?android.support.test.runner.AndroidJUnit4; import?android.support.test.uiautomator.By; import?android.support.test.uiautomator.UiDevice; import?android.support.test.uiautomator.UiObject2; import?org.junit.Before; import?org.junit.Test; import?org.junit.runner.RunWith; @RunWith(AndroidJUnit4.class) public?class?MKATest?{ ????Instrumentation?minstrument; ????UiDevice?Device; ????@Before ????public?void?setUp(){ ????????minstrument=?InstrumentationRegistry.getInstrumentation(); ????????Device=UiDevice.getInstance(minstrument); ????} ????@Test ????public?void?se(){ ????????UiObject2?list?=?Device.findObject(By.clazz("android.widget.LinearLayout")); ????????for?(UiObject2?child?:?list.getChildren())?{ ????????????child.getVisibleBounds().contains(118,429,143,470); ????????????if?(!child.getClassName().equals("android.widget.CompoundButton"))?{ ????????????????continue; ????????????} ????????????child.click(); ????????} ????} }請(qǐng)問老師 正常運(yùn)行 但沒點(diǎn)擊 是那出了問題加QQ群 沒回應(yīng)
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關(guān)注
  • 1012 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)