The Flow as follows:
User logs in.
User enters details on the UI page and clicks Submit; a unique ID is generated and shown on the UI with status: in Progress, and asks for a token to process the payment.
Service A is called and the request of service A needs the unique ID generated to be passed in the request.
Service B is called.
Service C creates the new token.
The user needs the token created by service C to complete the transaction as he needs to enter it in the UI.
The user enters the token and clicks on the Submit button.
The user receives a message payment is done.
So in the previous example we have eight steps, five of the steps are from the UI and three are from the services side. We also see that there is a need to transfer data from the UI to the service request and vice versa.
Now let's assume we need to assert certain UI elements on the screen as...