# PageObject[] getCurrentPages()
Get 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 attempt to modify the page stack, which will result in routing and page state errors.
- Don't call
getCurrentPages ()when,Thepage`has not been generated at this time.