Skip to content

AppiumFieldDecorator. New timeouts are not applied to existing WebElement fields. #110

@TikhomirovSergey

Description

@TikhomirovSergey

Hi!

I have faced up an issue of AppiumFieldDecorator.

There is the method

public void resetImplicitlyWaitTimeOut(long timeOut, TimeUnit timeUnit)

It is supposed that when this method is invoked, new timeout values will be
applied to new created proxy Webelement-fields as well as to already created. I have forgotten
to check this, so now it is applied to new proxies, but not to alredy created.

I know how to work out this. I will push this after #108 and #105 will have been resolved.

Use case (raw example):

public class MyScreen_PageObject{

@FindBy annotation with locator value
WebElement field;

//staff
AppiumFieldDecorator afd = new AppiumFieldDecorator(driver);
PageFactory.initElements(afd, this);
//staff

public void clickOnField(){
  afd.resetImplicitlyWaitTimeOut(2, TimeUnit.SECONDS);
  //It will wait for element is present for 2 seconds.
  field.click();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions