Validate data on Preview page
I have a website which allows user to do registration. To accomplish registration, user has to enter details on 3 different web-pages one after another. Finally preview page is displayed to confirm the details & send registration request.
I am successfully able to enter registration details in all 3 web-pages & arrived at preview page. Now I want to reuse information entered in 3 web-pages & compare with the values displayed in preview web-page.
Please tell me how to achieve this in Selenium webdriver.
I am using BDD framework where test-cases are written in Gherkin & selenium tests are written in Java.