□やろうとしていること
appium inspectorを使ってiOSアプリケーションの要素等の情報を取得する
□困っていること
iOSシミュレータが表示している画面がappium inspectorに表示されない
□環境
Appium Server GUI v1.22.3
Appium Inspector v2022.4.1
□事象
appium serverを起動し、appium inspectorで「セッションを開始する」ボタンを押した後、
画面上部に「Native App Mode」「Select Elements」「Refresh Source & Screenshot」等のボタンは表示されるのですが、画面左には更新マークが回った状態が続いて、
いつまで経ってもアプリケーションの画面が表示されません。
10回に1回の頻度で表示されることもあるのですが、
その場合でもiOSシミュレータ上でアプリケーションの画面を遷移してから
appium inspectorで「Refresh Source & Screenshot」を押すと、
画面左に更新マークが回った状態が続いて、シミュレータが表示している画面に切り替わりません。
capabilities
1{ 2 "appium:udid": "xxxxx", 3 "platformName": "iOS", 4 "appium:platformVersion": "15.4", 5 "appium:deviceName": "iPhone 11", 6 "appium:wdaStartupRetries": "4", 7 "appium:iosInstallPause": "8000", 8 "appium:wdaStartupRetryInterval": "20000", 9 "appium:noReset": true, 10 "appium:app": "xxxxx.app" 11}
Appium のログ
[info] [35m[WD Proxy][39m connect ECONNREFUSED 127.0.0.1:8100 [debug] [35m[W3C (ad7a7a2d)][39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 [debug] [35m[W3C (ad7a7a2d)][39m at JWProxy.command (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:274:13) [debug] [35m[W3C (ad7a7a2d)][39m at processTicksAndRejections (internal/process/task_queues.js:85:5) [info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/ad7a7a2d-ed5b-4e10-90a7-b5c2f515b82f/window/rect [39m[31m500[39m [90m8 ms - 683[39m [info] [35m[HTTP][39m [90m[39m [info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/ad7a7a2d-ed5b-4e10-90a7-b5c2f515b82f/source[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[W3C (ad7a7a2d)][39m Calling AppiumDriver.getPageSource() with args: ["ad7a7a2d-ed5b-4e10-90a7-b5c2f515b82f"] [debug] [35m[XCUITest][39m Executing command 'getPageSource' [debug] [35m[WD Proxy][39m Matched '/source?scope=AppiumAUT' to command name 'getPageSource' [debug] [35m[WD Proxy][39m Proxying [GET /source?scope=AppiumAUT] to [GET http://127.0.0.1:8100/session/79E6F63F-6BB2-46E9-897A-C8E2CC448527/source?scope=AppiumAUT] with no body [info] [35m[WD Proxy][39m connect ECONNREFUSED 127.0.0.1:8100 [debug] [35m[W3C (ad7a7a2d)][39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 [debug] [35m[W3C (ad7a7a2d)][39m at JWProxy.command (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:274:13) [debug] [35m[W3C (ad7a7a2d)][39m at processTicksAndRejections (internal/process/task_queues.js:85:5) [info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/ad7a7a2d-ed5b-4e10-90a7-b5c2f515b82f/source [39m[31m500[39m [90m3 ms - 683[39m [info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/ad7a7a2d-ed5b-4e10-90a7-b5c2f515b82f/timeouts[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[W3C (ad7a7a2d)][39m Calling AppiumDriver.getTimeouts() with args: ["ad7a7a2d-ed5b-4e10-90a7-b5c2f515b82f"] [debug] [35m[XCUITest][39m Executing command 'getTimeouts' [debug] [35m[W3C (ad7a7a2d)][39m Responding to client with driver.getTimeouts() result: {"command":3600000,"implicit":0} [info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/ad7a7a2d-ed5b-4e10-90a7-b5c2f515b82f/timeouts [39m[36m304[39m [90m2 ms - -[39m コード
□その他、気になっていること
原因に関係しているのかわかりませんが、Appium serverを起動した後
虫眼鏡マークを押すとappium inspectorが起動せず、chromeが起動して
appium inspectorのダウンロード画面に遷移します。
なので、インストール済みのappium inspectorを個別に起動しています。
どうぞよろしくお願いします。
イタリックテキスト
あなたの回答
tips
プレビュー