QUERY: POM | Selenium Python Forum
Nitika Posted on 10/01/2021

In class 6 of POM ,In base class why we have pass the self.driver=Null, instead of passing as an argument in constructor.

Can you please explain

09914040666 Replied on 12/01/2021


There are many reasons to do that but the major reason is that, the browsers instances are going to be dynamic and passing the driver as a parameter everywhere the object is created will not be the right approach. Rest of the reasons are explained in the videos.

Related Posts