UI coded automation

Hi

I want to try out a page object model approach for automating the uiPathBank app. This means having test cases stored in one folder and a C# class to reflect each webpage with methods for interacting for each of the elements on the page.

Is there a way to pass the uiAutomation activity from a testCase to another method/class? At the minute I can only declare and access the methods of the activity in a var within the testCase i.e

var welcomeScreen = uiAutomation.Open(“WelcomeScreen”)

welcomeScreen.TypeInto(“Element”)

@Jason_001

Please check this on how to pass or get variables in to coded workflow

Cheers