appium / appium/python-client

Hover on element is not working

オープン
#888 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
1.8k
フォーク
570
平均マージ
1日 10時間
マージ済み PR(30日)
24

説明

Environment:
Appium-Python-Client 2.11.1
Windows desktop app,
My Env is Ok, since I have done many automation work

I want to hover on element, I have tried:
ActionChains(self.driver).move_to_element(ele).perform(),
I got an exception:
> raise exception_class(msg=message, stacktrace=format_stacktrace(stacktrace)) E selenium.common.exceptions.UnknownMethodException: Message: Currently only pen and touch pointer input source types are supported E Stacktrace: E UnsupportedOperationError: Currently only pen and touch pointer input source types are supported

then I tried:
TouchAction(self.driver).move_to(ele).perform(), I found it directly click the target instead of hover on it!

then I tried:
ActionChains(self.driver).w3c_actions.pointer_action.move_to(ele), and it do not work

Is there any other method to achieve this?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、Windows デスクトップアプリで Appium-Python-Client 2.11.1 を使用して報告されたホバーの試行を再現し、ActionChains、TouchAction、w3c_actions.pointer_action.move_to に焦点を当てます。報告された UnknownMethodException と、TouchAction がホバーの代わりにクリックするかどうかを確認します。対応しているメソッドがクリックせずに対象をホバーできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
desktop-dev, testing
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。