automated-testsappiumappium-androidappium-iosappium-java

Cannot resolve symbol 'page'


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


Solution

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