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

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

無法使用 java 客戶端 7.0 使用 appium 滾動(dòng) android 本機(jī)應(yīng)用程序

無法使用 java 客戶端 7.0 使用 appium 滾動(dòng) android 本機(jī)應(yīng)用程序

寶慕林4294392 2023-05-10 17:32:30
我無法使用 Appium 垂直滾動(dòng) android 應(yīng)用程序。我正在使用java-client 7.0.0 API。 Action.press不管用(new TouchAction(driver))   .press({x: 600, y: 2408})   .moveTo({x: 348: y: 615})   .release()   .perform()
查看完整描述

1 回答

?
慕村225694

TA貢獻(xiàn)1880條經(jīng)驗(yàn) 獲得超4個(gè)贊

嘗試使用以下示例:


/**

 * This method scrolls based upon the passed parameters

 * @author Bill Hileman

 * @param int startx - the starting x position

 * @param int starty - the starting y position

 * @param int endx - the ending x position

 * @param int endy - the ending y position

 */

@SuppressWarnings("rawtypes")

public void scroll(int startx, int starty, int endx, int endy) {


    TouchAction touchAction = new TouchAction(driver);


    touchAction.longPress(PointOption.point(startx, starty))

               .moveTo(PointOption.point(endx, endy))

               .release()

               .perform();


}


查看完整回答
反對(duì) 回復(fù) 2023-05-10
  • 1 回答
  • 0 關(guān)注
  • 139 瀏覽

添加回答

舉報(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)