java-client icon indicating copy to clipboard operation
java-client copied to clipboard

AppiumFieldDecorator is not supporting timeout for annotation @iOSXCUITFindBy element

Open raghunandansr opened this issue 5 years ago • 3 comments

Description

I started using 7.3.0 ver of java-client and noticed that AppiumFieldDecorator is not supporting the @iOSXCUITFindBy annotation. An element in my page loaded few seconds(3s) after the page rendered. I had set timeout as 30s. Appium try to emulate the click action on that button before it rendered.

Environment

  • Java client - 7.3.0
  • Appium server -1.15.1
  • Desktop OS/version used to run Appium if necessary: N/A
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: v8.9.4
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: Simulator

raghunandansr avatar Nov 16 '19 05:11 raghunandansr

Documentation also claims it supports only deprecated annotations for iOS https://appium.github.io/java-client/index.html?io/appium/java_client/pagefactory/AppiumFieldDecorator.html

raghunandansr avatar Nov 16 '19 05:11 raghunandansr

@raghunandansr Do we have any workaround for this to make @iOSXCUITFindBy work

Can you suggest any other page factory initialisation instead of AppiumFieldDecorator

SreNivedha avatar Feb 05 '20 06:02 SreNivedha

Hi @SreNivedha I'm facing same issue. Did you get any solution for above?

ITester2020 avatar Mar 05 '23 07:03 ITester2020