All Questions
1 question
-3
votes
1
answer
350
views
Why do we create parameterized constructor in every PageObject class which accepts one driver reference when BaseTest has a global driver object? [duplicate]
When every test class will inherit driver, then why should we create constructor that takes driver object?
public class BaseTest{
public static Webdriver driver = new ChromeDriver();
}
public class ...