# PageObject[] getCurrentPages()
Gets the current page stack. The first element in the array is the home page and the last element is the current page.
Note:
- Do not try to modify the page stack, which will cause routing and page state errors.
- Don't be
App.onLaunch
When to callgetCurrentPages()
At this timepage
It has not been generated.