Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
328 views
by Master (1.2k points)

3 Answers

0 like 0 dislike
by
Yes of course,we can use base class properties in framework.Suppose we have some common method which is required in every testcases execution so we can put those method and properties in base class and then we can use those things in our child classes using inheritance.
0 like 0 dislike
by
Base class mainly contains browser intialization,variable declaration.
0 like 0 dislike
by
  • Base class in the main class which will take care of Browser setup, loading configuration file and other reusable methods like screenshot, handling sync issues and many more.
  • Using Base class we can avoid code duplication.
  • We can Reuse code as much we want.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...