Skip to content

default implicit wait set for pageobject is not working #572

@vikramvi

Description

@vikramvi

Description

I've set implicit wait for a page as below

protected WebDriver driver;

public AUTLandingPage(WebDriver driver) {
        this.driver = driver;
        PageFactory.initElements(new AppiumFieldDecorator(driver, 10, TimeUnit.SECONDS), this);
    }

I also checked with AppiumDriver but same issue

In this pageobject class, I check for availability of element with method isEnabled()

particularElement.isEnabled()

But instead of waiting for 10 sec, driver just continues execution after 0 sec

Environment

  • java client build version or git revision if you use some shapshot: 5.0.0-BETA2
  • Appium server version or git revision if you use some shapshot: 1.6.3
  • Desktop OS/version used to run Appium if necessary:
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: v7.2.1
  • Mobile platform/version under test: iOS 10.2
  • Real device or emulator/simulator: Simulator

Details

  1. This happens when I login and goto next screen.
  2. Then this issue happens GetPageSource goes in loop with after met error appium#7034
  3. After this I've observed appium doesn't wait for default implicit time mentioned in constructor

Code To Reproduce Issue [ Good To Have ]

NA

Ecxeption stacktraces

NA

Link to Appium logs

NA

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions