Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Pagefactory not initialise the @AndroidFindby and iOSFindBy but @Findby is work fine.

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
mobile, testing

調査の方向性

reproducer に示されている PageFactory.initElements の呼び出しと AppiumFieldDecorator のセットアップから始め、@FindBy と比較して @AndroidFindBy と iOSFindBy がどのように処理されるかを調べます。報告された jdk.proxy2.$Proxy15.proxyClassLookup() のスタックトレースとリンクされた Appium ログを、最初の診断材料として使用します。完了条件は、reproducer が報告された例外なしに Android および iOS の注釈付きフィールドを初期化することです。

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

説明

Description

while initialise the AppiumDriver through pagefactory its not able to initialise the @AndroidFindby and iOSFindBy but @Findby is work fine.

Environment

  • Java client build version or git revision if you use some snapshot: java client 7.3
  • Appium server version or git revision if you use some snapshot: 1.22.3
  • Desktop OS/version used to run Appium if necessary: Mac 13.4.1 (22F82)
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: node V18.16.0
  • Mobile platform/version under test: Android/12 and 13, Ios/16.4
  • Real device or emulator/simulator: Real devices and emulator/simulator

Details

Please provide more details, if necessary.

Code To Reproduce Issue

LoginPageElements_Mobile_DTT LoginPageElements_Mobile = new LoginPageElements_Mobile_DTT();

public LoginPageMethods_Mobile_DTT(RemoteWebDriver driver) {
	super((AppiumDriver<MobileElement>) driver);
	PageFactory.initElements(new AppiumFieldDecorator(driver, Duration.ofSeconds(1)), LoginPageElements_Mobile);
}
    
    //on the page class 
    @AndroidFindBy(xpath = "//*[contains(@text,'Already have an account? Login')]")
public MobileElement mrp_lbl;

Error:
java.lang.RuntimeException: java.lang.NoSuchMethodException: jdk.proxy2.$Proxy15.proxyClassLookup()
java.lang.RuntimeException: java.lang.NoSuchMethodException:
at org.openqa.selenium.support.PageFactory.initElements(PageFactory.java:105)
at android.appium.DTT.login.LoginPageMethods_Mobile_DTT.(LoginPageMethods_Mobile_DTT.java:119)

Exception Stacktraces

Please create a gist with the pasted stacktrace of the exception thrown by java.

Link To Appium Logs

<script src="https://gist.github.com/saravanan060694/5233ce62b82dea619b3aa2bd39a84398.js"></script>


gist:5233ce62b82dea619b3aa2bd39a84398

主要言語
Java
スター
1.3k
フォーク
755
平均マージ
5日 14時間
マージ済み PR(30日)
8

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

appium/java-client のほかの issue

appium/java-client の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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