前言:15 号左右,开发和我说搞了一个高逼格的东西,亲儿子换成 QQx5 的内核了,然后我这边发现____以前可以直接定位的,现在更换 x5 内核之后 H5 页面的元素竟然 switch_to.context 切换不了!

环境:

语言 :python3.52

appium :1.6.3

pc 谷歌 :62.xxx

手机谷歌:62:xxx ()

chromedriver:2.34

print(self.driver.contexts) # 打印出来下面有多个 webview,另外腾讯的 webview 有时候打印不出来!

['NATIVE_APP', 'WEBVIEW_com.henji.yunyi.yizhibang:channel', 'WEBVIEW_com.henji.yunyi.yizhibang', 'WEBVIEW_com.henji.yunyi.yizhibang:ipc', 'WEBVIEW_io.rong.push']

启动项: 这里加了这两个

报错及问题:

目前切换 webview 的时候,会一直卡在哪里,直到报错,目前我切换的 webview 是: 'WEBVIEW_com.henji.yunyi.yizhibang'

Appium 日志如下:

[debug] [AndroidDriver] Found webviews: ["WEBVIEW_io.rong.push","WEBVIEW_com.hen

ji.yunyi.yizhibang","WEBVIEW_com.henji.yunyi.yizhibang:ipc","WEBVIEW_com.henji.y

unyi.yizhibang:channel"]

[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_io.rong.push"

,"WEBVIEW_com.henji.yunyi.yizhibang","WEBVIEW_com.henji.yunyi.yizhibang:ipc","WE

BVIEW_com.henji.yunyi.yizhibang:channel"]

[debug] [MJSONWP] Responding to client with driver.setContext() result: null

[HTTP]

954 ms - 76

[HTTP] --> GET /wd/hub/session/932489f4-c0dc-45c7-aec1-b9a5e5be4039/context {}

[debug] [MJSONWP] Calling AppiumDriver.getCurrentContext() with args: ["932489f4

-c0dc-45c7-aec1-b9a5e5be4039"]

[debug] [MJSONWP] Responding to client with driver.getCurrentContext() result: "

NATIVE_APP"

[HTTP]

5 ms - 84

[HTTP] --> POST /wd/hub/session/932489f4-c0dc-45c7-aec1-b9a5e5be4039/element {"v

alue":"com.henji.yunyi.yizhibang:id/iv_brand_preview","sessionId":"932489f4-c0dc

-45c7-aec1-b9a5e5be4039","using":"id"}

[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["id","com.henji

.yunyi.yizhibang:id/iv_brand_preview","932489f4-c0dc-45c7-aec1-b9a5e5be4039"]

[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class

name, accessibility id, -android uiautomator

[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class

name, accessibility id, -android uiautomator

[debug] [BaseDriver] Waiting up to 10000 ms for condition

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8214/w

d/hub/session/5a77cb50-d4aa-45ee-bee3-43614306b457/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/iv_brand_preview","context":"",

"multiple":false}

[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"5a77cb50-d4aa

-45ee-bee3-43614306b457","status":0,"value":{"ELEMENT":"d205a111-5fc1-4221-bf89-

96f10ba1c4af"}}

[debug] [MJSONWP] Responding to client with driver.findElement() result: {"ELEME

NT":"d205a111-5fc1-4221-bf89-96f10ba1c4af"}

[HTTP]

61 ms - 122

[HTTP] --> POST /wd/hub/session/932489f4-c0dc-45c7-aec1-b9a5e5be4039/element/d20

5a111-5fc1-4221-bf89-96f10ba1c4af/click {"id":"d205a111-5fc1-4221-bf89-96f10ba1c

4af","sessionId":"932489f4-c0dc-45c7-aec1-b9a5e5be4039"}

[debug] [MJSONWP] Calling AppiumDriver.click() with args: ["d205a111-5fc1-4221-b

f89-96f10ba1c4af","932489f4-c0dc-45c7-aec1-b9a5e5be4039"]

[debug] [JSONWP Proxy] Proxying [POST /element/d205a111-5fc1-4221-bf89-96f10ba1c

4af/click] to [POST http://localhost:8214/wd/hub/session/5a77cb50-d4aa-45ee-bee3

-43614306b457/element/d205a111-5fc1-4221-bf89-96f10ba1c4af/click] with body: {"e

lementId":"d205a111-5fc1-4221-bf89-96f10ba1c4af"}

[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"5a77cb50-d4aa

-45ee-bee3-43614306b457","status":0,"value":true}

[debug] [MJSONWP] Responding to client with driver.click() result: true

[HTTP]

5a111-5fc1-4221-bf89-96f10ba1c4af/click 200 33 ms - 76

[HTTP] --> GET /wd/hub/session/932489f4-c0dc-45c7-aec1-b9a5e5be4039/appium/devic

e/current_activity {}

[debug] [MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["932489f

4-c0dc-45c7-aec1-b9a5e5be4039"]

[debug] [ADB] Getting focused package and activity

[debug] [ADB] Getting connected devices...

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","dumpsys","window","windows

"]

[debug] [MJSONWP] Responding to client with driver.getCurrentActivity() result:

".promotion.brand.activity.PreviewBrandActivity"

[HTTP]

e/current_activity 200 287 ms - 120

[HTTP] --> GET /wd/hub/session/932489f4-c0dc-45c7-aec1-b9a5e5be4039/appium/devic

e/current_activity {}

[debug] [MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["932489f

4-c0dc-45c7-aec1-b9a5e5be4039"]

[debug] [ADB] Getting focused package and activity

[debug] [ADB] Getting connected devices...

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","dumpsys","window","windows

"]

[debug] [MJSONWP] Responding to client with driver.getCurrentActivity() result:

".promotion.brand.activity.PreviewBrandActivity"

[HTTP]

e/current_activity 200 332 ms - 120

[HTTP] --> GET /wd/hub/session/932489f4-c0dc-45c7-aec1-b9a5e5be4039/contexts {}

[debug] [MJSONWP] Calling AppiumDriver.getContexts() with args: ["932489f4-c0dc-

45c7-aec1-b9a5e5be4039"]

[debug] [AndroidDriver] Getting a list of available webviews

[debug] [ADB] Getting connected devices...

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","cat","/proc/net/unix"]

[debug] [AndroidDriver] WEBVIEW_12799 mapped to pid 12799

[debug] [AndroidDriver] Getting process name for webview

[debug] [ADB] Getting connected devices...

[debug] [AndroidDriver] WEBVIEW_12632 mapped to pid 12632

[debug] [AndroidDriver] Getting process name for webview

[debug] [ADB] Getting connected devices...

[debug] [AndroidDriver] WEBVIEW_12779 mapped to pid 12779

[debug] [AndroidDriver] Getting process name for webview

[debug] [ADB] Getting connected devices...

[debug] [AndroidDriver] WEBVIEW_13190 mapped to pid 13190

[debug] [AndroidDriver] Getting process name for webview

[debug] [ADB] Getting connected devices...

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","ps"]

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","ps"]

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","ps"]

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","ps"]

[debug] [AndroidDriver] Parsed pid: 12779 pkg: com.henji.yunyi.yizhibang:ipc!

[debug] [AndroidDriver] from: u0_a216,12779,624,1203396,129172,SyS_epoll_,000000

0000,S,com.henji.yunyi.yizhibang:ipc

[debug] [AndroidDriver] returning process name: com.henji.yunyi.yizhibang:ipc

[debug] [AndroidDriver] Parsed pid: 12632 pkg: com.henji.yunyi.yizhibang!

[debug] [AndroidDriver] from: u0_a216,12632,624,1540488,227184,SyS_epoll_,000000

0000,S,com.henji.yunyi.yizhibang

[debug] [AndroidDriver] returning process name: com.henji.yunyi.yizhibang

[debug] [AndroidDriver] Parsed pid: 12799 pkg: io.rong.push!

[debug] [AndroidDriver] from: u0_a216,12799,624,1199152,122136,SyS_epoll_,000000

0000,S,io.rong.push

[debug] [AndroidDriver] returning process name: io.rong.push

[debug] [AndroidDriver] Parsed pid: 13190 pkg: com.henji.yunyi.yizhibang:channel

!

[debug] [AndroidDriver] from: u0_a216,13190,624,1199040,120008,SyS_epoll_,000000

0000,S,com.henji.yunyi.yizhibang:channel

[debug] [AndroidDriver] returning process name: com.henji.yunyi.yizhibang:channe

l

[debug] [AndroidDriver] Found webviews: ["WEBVIEW_io.rong.push","WEBVIEW_com.hen

ji.yunyi.yizhibang","WEBVIEW_com.henji.yunyi.yizhibang:ipc","WEBVIEW_com.henji.y

unyi.yizhibang:channel"]

[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_io.rong.push"

,"WEBVIEW_com.henji.yunyi.yizhibang","WEBVIEW_com.henji.yunyi.yizhibang:ipc","WE

BVIEW_com.henji.yunyi.yizhibang:channel"]

[debug] [MJSONWP] Responding to client with driver.getContexts() result: ["NATIV

E_APP","WEBVIEW_io.rong.push","WEBVIEW_com.henji.yunyi.yizhibang","WEBVIEW_com.h

enji.yunyi.yizhibang:ipc","WEBVIEW_com.henji.yunyi.yizhibang:channel"]

[HTTP]

984 ms - 229

[HTTP] --> POST /wd/hub/session/932489f4-c0dc-45c7-aec1-b9a5e5be4039/context {"n

ame":"WEBVIEW_com.henji.yunyi.yizhibang","sessionId":"932489f4-c0dc-45c7-aec1-b9

a5e5be4039"}

[debug] [MJSONWP] Calling AppiumDriver.setContext() with args: ["WEBVIEW_com.hen

ji.yunyi.yizhibang","932489f4-c0dc-45c7-aec1-b9a5e5be4039"]

[debug] [AndroidDriver] Getting a list of available webviews

[debug] [ADB] Getting connected devices...

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","cat","/proc/net/unix"]

[debug] [AndroidDriver] WEBVIEW_12799 mapped to pid 12799

[debug] [AndroidDriver] Getting process name for webview

[debug] [ADB] Getting connected devices...

[debug] [AndroidDriver] WEBVIEW_12632 mapped to pid 12632

[debug] [AndroidDriver] Getting process name for webview

[debug] [ADB] Getting connected devices...

[debug] [AndroidDriver] WEBVIEW_12779 mapped to pid 12779

[debug] [AndroidDriver] Getting process name for webview

[debug] [ADB] Getting connected devices...

[debug] [AndroidDriver] WEBVIEW_13190 mapped to pid 13190

[debug] [AndroidDriver] Getting process name for webview

[debug] [ADB] Getting connected devices...

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","ps"]

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","ps"]

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","ps"]

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running 'C:\tools\androidSdk\android-sdk-windows\platform-tools\ad

b.exe' with args: ["-P",5037,"-s","2905bdb6","shell","ps"]

[debug] [AndroidDriver] Parsed pid: 12779 pkg: com.henji.yunyi.yizhibang:ipc!

[debug] [AndroidDriver] from: u0_a216,12779,624,1201268,123100,SyS_epoll_,000000

0000,S,com.henji.yunyi.yizhibang:ipc

[debug] [AndroidDriver] returning process name: com.henji.yunyi.yizhibang:ipc

[debug] [AndroidDriver] Parsed pid: 12632 pkg: com.henji.yunyi.yizhibang!

[debug] [AndroidDriver] from: u0_a216,12632,624,1533948,222884,SyS_epoll_,000000

0000,S,com.henji.yunyi.yizhibang

[debug] [AndroidDriver] returning process name: com.henji.yunyi.yizhibang

[debug] [AndroidDriver] Parsed pid: 12799 pkg: io.rong.push!

[debug] [AndroidDriver] from: u0_a216,12799,624,1197024,119284,SyS_epoll_,000000

0000,S,io.rong.push

[debug] [AndroidDriver] returning process name: io.rong.push

[debug] [AndroidDriver] Parsed pid: 13190 pkg: com.henji.yunyi.yizhibang:channel

!

[debug] [AndroidDriver] from: u0_a216,13190,624,1199040,120008,SyS_epoll_,000000

0000,S,com.henji.yunyi.yizhibang:channel

[debug] [AndroidDriver] returning process name: com.henji.yunyi.yizhibang:channe

l

[debug] [AndroidDriver] Found webviews: ["WEBVIEW_io.rong.push","WEBVIEW_com.hen

ji.yunyi.yizhibang","WEBVIEW_com.henji.yunyi.yizhibang:ipc","WEBVIEW_com.henji.y

unyi.yizhibang:channel"]

[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_io.rong.push"

,"WEBVIEW_com.henji.yunyi.yizhibang","WEBVIEW_com.henji.yunyi.yizhibang:ipc","WE

BVIEW_com.henji.yunyi.yizhibang:channel"]

[debug] [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com

.henji.yunyi.yizhibang'

[debug] [AndroidDriver] A port was not given, using random port: 8000

[debug] [Chromedriver] Changed state to 'starting'

[Chromedriver] Set chromedriver binary as: C:\Users\Administrator\AppData\Roamin

g\npm\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chro

medriver.exe

[Chromedriver] Killing any old chromedrivers, running: FOR /F "usebackq tokens=5

" %a in (netstat -nao ^| findstr /R /C:"8000 ") do (FOR /F "usebackq" %b in (TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe) do (IF NOT %b=="" TASK

KILL /F /PID %a))

[Chromedriver] No old chromedrivers seemed to exist

[Chromedriver] Spawning chromedriver with: C:\Users\Administrator\AppData\Roamin

g\npm\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chro

medriver.exe --url-base=wd/hub --port=8000 --adb-port=5037

[Chromedriver] [STDOUT] Starting ChromeDriver 2.34.522940 (1a76f96f66e3ca7b8e57d

503b4dd3bccfba87af1) on port 8000

Only local connections are allowed.

[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/h

ub/status] with no body

[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"\",\"stat

us\":0,\"value\":{\"build\":{\"version\":\"alpha\"},\"os\":{\"arch\":\"x86_64\",

\"name\":\"Windows NT\",\"version\":\"6.1.7601 SP1\"}}}"

[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/w

d/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPacka

ge":"com.henji.yunyi.yizhibang","androidUseRunningApp":true,"androidProcess":"co

m.tencent.mm:tools","androidDeviceSerial":"2905bdb6"}}}

[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"f1d8bf2a72135

bd363d649849dc80995","status":100,"value":{"message":"chrome not reachable\n (D

river info: chromedriver=2.34.522940 (1a76f96f66e3ca7b8e57d503b4dd3bccfba87af1),

platform=Windows NT 6.1.7601 SP1 x86_64)"}}

[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/w

d/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPacka

ge":"com.henji.yunyi.yizhibang","androidUseRunningApp":true,"androidProcess":"co

m.tencent.mm:tools","androidDeviceSerial":"2905bdb6"}}}

[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"76c5f76390d92

78d23492f81168259e7","status":100,"value":{"message":"chrome not reachable\n (D

river info: chromedriver=2.34.522940 (1a76f96f66e3ca7b8e57d503b4dd3bccfba87af1),

platform=Windows NT 6.1.7601 SP1 x86_64)"}}

[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/w

d/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPacka

ge":"com.henji.yunyi.yizhibang","androidUseRunningApp":true,"androidProcess":"co

m.tencent.mm:tools","androidDeviceSerial":"2905bdb6"}}}

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 3957 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 4494 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 5036 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 5582 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 6340 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 6885 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 7427 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 7963 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 8557 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[debug] [BaseDriver] Waited for 9508 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_tips_dialog_confirm","conte

xt":"","multiple":false}

[HTTP]

10343 ms - 164

[HTTP] --> POST /wd/hub/session/eb05cdde-12d7-4088-a211-72ab12abde60/element {"v

alue":"com.henji.yunyi.yizhibang:id/tv_back","using":"id","sessionId":"eb05cdde-

12d7-4088-a211-72ab12abde60"}

[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["id","com.henji

.yunyi.yizhibang:id/tv_back","eb05cdde-12d7-4088-a211-72ab12abde60"]

[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class

name, accessibility id, -android uiautomator

[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class

name, accessibility id, -android uiautomator

[debug] [BaseDriver] Waiting up to 10000 ms for condition

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 35 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 658 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 1201 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 1741 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 2286 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 2823 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 3490 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 4023 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 4565 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 5095 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 5666 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 6202 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 6738 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 7502 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 8041 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 8583 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 9129 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[debug] [BaseDriver] Waited for 9673 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/tv_back","context":"","multiple

":false}

[HTTP]

10220 ms - 164

[HTTP] --> POST /wd/hub/session/eb05cdde-12d7-4088-a211-72ab12abde60/element {"v

alue":"com.henji.yunyi.yizhibang:id/rl_home_mine","using":"id","sessionId":"eb05

cdde-12d7-4088-a211-72ab12abde60"}

[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["id","com.henji

.yunyi.yizhibang:id/rl_home_mine","eb05cdde-12d7-4088-a211-72ab12abde60"]

[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class

name, accessibility id, -android uiautomator

[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class

name, accessibility id, -android uiautomator

[debug] [BaseDriver] Waiting up to 10000 ms for condition

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/rl_home_mine","context":"","mul

tiple":false}

[debug] [BaseDriver] Waited for 37 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/rl_home_mine","context":"","mul

tiple":false}

[debug] [BaseDriver] Waited for 8785 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/rl_home_mine","context":"","mul

tiple":false}

[debug] [BaseDriver] Waited for 9329 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/rl_home_mine","context":"","mul

tiple":false}

[debug] [BaseDriver] Waited for 9957 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/rl_home_mine","context":"","mul

tiple":false}

[HTTP]

10519 ms - 164

[HTTP] --> POST /wd/hub/session/eb05cdde-12d7-4088-a211-72ab12abde60/element {"v

alue":"com.henji.yunyi.yizhibang:id/btn_login_submit","using":"id","sessionId":"

eb05cdde-12d7-4088-a211-72ab12abde60"}

[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["id","com.henji

.yunyi.yizhibang:id/btn_login_submit","eb05cdde-12d7-4088-a211-72ab12abde60"]

[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class

name, accessibility id, -android uiautomator

[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class

name, accessibility id, -android uiautomator

[debug] [BaseDriver] Waiting up to 10000 ms for condition

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 37 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 930 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 1762 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 2301 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 2933 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 3468 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 4009 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 4545 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 5077 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 5768 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 6301 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 6939 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 7486 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 8030 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 8568 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 9101 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[debug] [BaseDriver] Waited for 9778 ms so far

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8215/w

d/hub/session/cca71bf8-7b2b-4d2d-b234-3e9666877bb6/element] with body: {"strateg

y":"id","selector":"com.henji.yunyi.yizhibang:id/btn_login_submit","context":"",

"multiple":false}

[HTTP]

10344 ms - 164

pychram 编译器报错:

目前自己怀疑是不是 webview 的版本是 57,我这边需要更换 chromedriver 与 57 匹配!有大神能帮忙看下吗!

android x5 webview报错,appium 混合 APP,x5 内核,webview 切换报错相关推荐

  1. 毕业设计总结篇之开题篇——基于android的创意展示平台(混合app)

    话说从毕业之后,不知不觉度过了两个月,最近看到csdn某位牛人的博客,我又想起了我的毕设作品--这一年多学习前端的完整的处女作.经过多次的励志篇之后,我更加相信很多东西在于坚持,坚信以及奋斗,一切都是 ...

  2. Android移动开发-AndroidStudio调试安装时出现“Error running app: Default Activity Not Found”报错的解决方案

    如果在AndroidStudio调试安装程序时,如果程序中没有Activity的代码文件的话可能会在程序部署到手机或虚拟机上时碰到"Error running app: Default Ac ...

  3. 混合App WebView自动化测试

     大家从头看完配置,不一定你的问题在webview配置,有可能出现在了驱动,还有一个重要的点,手机不需要下载谷歌浏览器,只是需要配置appium的chromedriver驱动版本和Android Sy ...

  4. android appium 页面如何跳转,【appium实战】appium混合页面点击方法tap的使用

    原标题:[appium实战]appium混合页面点击方法tap的使用 新书 速递 文 | 夜鸣猪 原生应用开发,是在Android.IOS等移动平台上利用官方提供的开发语言.开发类库.开发工具进行Ap ...

  5. 使用appium进行app自动化测试时遇到AppActivity设置正确但报Connect Appium Server Fail.A new session could not be created

    appium 部分服务关键字如下: PlatformName=Android PlatformVersion=4.4.4 AppPackage=com.xxxxx.xxxx AppActivity=. ...

  6. app内执行apk安装报错:exposed beyond app through Intent.getData()

    文章目录 一. 问题: app内执行apk安装报错:exposed beyond app through Intent.getData() 二. 解决方法 1. AndroidManifest中增加F ...

  7. Android应用数据清理命令(adb clear)的使用执行报错问题解决

    Android应用数据清理命令(adb clear)的使用&执行报错问题解决 清理应用数据 我们在调试 Android 应用时,经常需要清理应用数据,在手机设置里找,当然也可以做到清理数据,但 ...

  8. 【Appium】基础之原生App/Web App/混合App

    简介 目前,移动APP市场非常之巨大,世界上有很多人都在用着各种不同类型的手机,装着各种类型的App,其中不乏微信QQ聊天软件,京东淘宝购物软件,爱奇艺优酷视频软件等等,那么同学们谁知道App有哪几种 ...

  9. centos在yum install报错:Another app is currently holding the yum lock解决方法

    centos在yum install报错:Another app is currently holding the yum lock解决方法 参考文章: (1)centos在yum install报错 ...

最新文章

  1. 详细介绍!Linux 上几种常用的文件传输方式
  2. HDU 4339 Query
  3. There is no database available的错误消息
  4. JavaScript学习总结(六)——JavaScript判断数据类型总结
  5. Ph.D Grind 阅读感想 By 张雄
  6. C++设计模式-Prototype原型模式
  7. alien指令 linux,使用alien命令让deb包和rpm包互相转换
  8. 1.3编程基础之算术表达式与顺序执行 19 AXB问题
  9. PostgreSQL统计信息的几个重要视图
  10. 提高办公效率的方法-工具篇
  11. STM32F103—有关SIM900A模块的使用
  12. html 轮播图左右切换代码,js实现左右轮播图
  13. 怎么恢复误删的重要文件,电脑误删重要文件怎么恢复
  14. Windows10下设置电脑屏幕仅显示黑白
  15. CAD中插入外部参照字体会变繁体_知道这些技巧-轻松攻克CAD所有困难
  16. 智能驾驶安全专题 | 功能安全与SOTIF如何融合实施
  17. 阿里云云栖大会2020----云游戏平台发布(记录)
  18. vant2-上拉加载、下拉刷新
  19. Mysql数据库服务
  20. 基于SpringBoot的小说网站

热门文章

  1. GT21L16S2Y点阵数据的读取显示
  2. 协同过滤推荐算法及应用
  3. 马云坦然不懂计算机,来自马云的绝望:三角函数让我彻底失去学数学的信心
  4. php如何连接数据库 甲骨文,Windows PHP/phpStudy 连接 甲骨文Oracle 数据库 oci8 – 让我们荡起双桨的博客 – CSDN博客...
  5. python饮料购买_Python实现的一个自动售饮料程序代码分享
  6. 非常精妙的主副电源自动切换电路,并且“零”压降
  7. 6款炫酷的HTML5 3D特效源码
  8. 为什么那么多公司都选择灵活用工?
  9. 【英语】动词时态与语态
  10. 导入sql报错:1273 - Unknown collation: ‘utf8mb4_0900_ai_ci‘