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
Instructor
09914040666 Replied on 12/01/2021
Hey
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.