Cannot resolve symbol 'page'

72 Views Asked by At

I'm starting a new project with maven and Java and When I add:

 public DesbloqueioSaldo(AppiumDriver<RemoteWebElement> driver){
    PageFactory.initElements(new AppiumFieldDecorator(driver), page:this);
}

I receive this message: Not a statement

That project is to automate mobile test with Appium and Java.

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

Change "page:this" to "this" and then try.