Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 764
Closed
Labels
Description
Hello,
I'm using new page object design with Widget class. And recently caught some unexpected behaviour.
Let me describe my classes:
publicclassMovies{@iOSFindBy(uiAutomator = ".tableViews()[0].cells()") publicList<Movie> items} publicclassMovieextendsWidget{@iOSFindBy(uiAutomator = ".staticTexts()[0]") publicIOSElementnameElement; publicIOSElementgetNameElement(){returnnameElement} }And these classes I use smth like this:
Moviesmovies = ... List<Movie> items = movies.items; //items is not nullMovieitem = items.get(0); IOSElementfieldElement = item.nameElement; // fieldElement is nullIOSElementmethodElement = item.getNameElement(); // methodElement is not nullWhy does it work so?
Are there any ways to get element directly from field without creating getter?