Forum Discussion
YMinaev
Staff
15 years agoHi,
If you need to have a reference to the page object in your 'tester' routine, you need to:
1. Return it from your 'page' function.
2. Call the 'page' function in 'tester' before performing any actions, but after the TestedApps.iexplore.Run call and save its resulting value to a variable.
3. Use this variable (PageObj) in subsequent lines.
The MSDN link from my previous post provides information on functions, their parameters and return values.
If you need to have a reference to the page object in your 'tester' routine, you need to:
1. Return it from your 'page' function.
2. Call the 'page' function in 'tester' before performing any actions, but after the TestedApps.iexplore.Run call and save its resulting value to a variable.
3. Use this variable (PageObj) in subsequent lines.
The MSDN link from my previous post provides information on functions, their parameters and return values.