initElements

Antes de iniciar os elementos como o:

@AndroidFindBy(id = "teste")
private MobileElement teste;

É necessário inicializar os elementos com o método:

public void carregarTelaInicial() {
PageFactory.initElements(new AppiumFieldDecorator(getMobileDriver()), this);
waitElementsToBeVisible(cabecalhoInicial, rezar);



Comentários

Mensagens populares deste blogue

Exemplos de Features - Cucumber

ESTRUTURA

Configurando Cucumber Option