mardi 14 juillet 2015

Sharing the testcontext instance in pageobject model of UI AUtomation framework

I have a situation. I have extended the mstest testcontext class to include selenium webdriver object and made it a base class. Now when I inherit this base class in my test class I will initialize the webriver object. But i will not be able to access this object in my pages and pageops (page object model design pattern) which is present in another project of the solution.

How can make the driver object to be accessible in another project so that I can find my elements.

I cannot make this driver object a static property because I will be using this framework for parallel execution.

Please let me know how can I share this webdriver object without being passed as parameter to pageops class.

Aucun commentaire:

Enregistrer un commentaire