Skip to main content

All Questions

Filter by
Sorted by
Tagged with
-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 ...
jeff64's user avatar
  • 1