Android + Appium + ArrayList: How to pass ArrayList between several activities

I'm looking for help with the following

Task: To open screen with exchange parameters:

screen example

To save parameters such as names of cities, date and flight class as strings. Click on search exchange button and compare data on screen with results if it's equal to saved parameters, then select a result and then compare data on summary screen.

So i need to pass data from first screen through two others.

What did i tried:

I had created ArrayList inside class which described exchange screen:

public class ExchangeRoutePageObject extends MainPageObject {

public ExchangeRoutePageObject(AppiumDriver driver){super(driver);}

public ArrayList saveParameters(){

ArrayList exchangeParameters...

Read More »

By: StackOverFlow - Friday, 9 November

Related Posts