Need to use same method in BasePage and BaseTest
make that function in a class and extend that class everywhere.