title: How to use the same instance of page object in multiple tests
body: <p>I would like to know different ways of how to use the same instance of page object in multiple tests that are in same class as well as in different classes.</p>
  
  <p>For ex:
  Application that i'm testing hs Home Page, Home page has links to Add Employee, Modify Employee, Employee Details, and Company Details.. pages</p>
  
  <p>In my implementation, 
  Page class - contains common functions that are performed on the pages</p>
  
  <p>HomePage class- Has the functions to interact with the HomePage</p>
  
  <p>AddEmployeePage class- Has the functions to interact with the AddEmployeePage</p>
  
  <p>ModifyEmployeePage class- Has the functions to interact with the ModifyEmployeePage</p>
  
  <p>EmployeeDetailsPage class- Has the functions to interact with the EmployeeDetailsPage</p>
  
  <p>CompanyDetailsPage class- Has the functions to interact with the CompanyDetailsPage</p>
  
  <p>All the following tests classes extends Page class.</p>
  
  <p>HomePageTest class- has all the tests for the Home Page</p>
  
  <p>AddEmployeeTest class- has all the tests for the Add EmployeePage</p>
  
  <p>ModifyEmployeeTest class- has all the tests for the Modify EmployeePage</p>
  
  <p>EmployeeDetailsTest class- has all the tests for the Employee Details Page</p>
  
  <p>CompanyDetailsTest class- has all the tests for the Company Details Page</p>
  
  <p>For all the tests related to the HomePage and other pages, I want to use the HomePage object that I create for the first time.</p>
  
  <p>To achieve this, currently I'm declaring all the page objects as static in the Page class and then referring to the same object in the test.</p>
  
  <p>Is this the right way to do? Will it have any impact when I run the tests in multiple browsers? or run tests parallely?  Please let me know</p>
  
  <p>Thanks in Advance.</p>