self.driver.window_handles returns the list randomly
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 1.8k
- フォーク
- 570
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 24
説明
The problem
self.driver.window_handles returns the list randomly, earlier the latest window handle used to be max from the list, now its neither max nor latest element of the array i.e -1 so there is no concrete way to switch to the latest window.
Environment
- Appium version: 2.13.1
- Last Appium version that did not exhibit the issue (if applicable): 1.65
- Desktop OS/version used to run Appium:
- Node.js version (unless using Appium.app|exe): v18.19.1
- Mobile platform/version under test: Samsung S23 FE
- Real device or emulator/simulator:
- Appium CLI or Appium.app|exe:
Link to Appium Logs
appium_server_logs_11-27-37.log
Create a GIST which is a paste of your full Appium logs, and link them here.
Code To reproduce issue
```
self.appium_opr.switch_context(self.instance, "web")
time.sleep(CONTEXT_WAIT)
all_windows = self.instance.window_handles
window_after = max(all_windows)
self.instance.switch_to.window(window_after)
url = self.instance.current_url
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue の再現コードから始め、リンクされている Appium サーバーログを調査し、Web コンテキストに切り替えた後に self.instance.window_handles が返す値に注目してください。観測された順序を以前の Appium バージョンの動作と比較します。順序の問題、または最新のウィンドウを選択するための具体的にサポートされた方法が特定できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100