A possible solution to the code duplication from the previous post, where all static page methods use a driver parameter, is to create the driver as a static variable in the test class:
Share this post
Do not use a static driver in the test class
Share this post
A possible solution to the code duplication from the previous post, where all static page methods use a driver parameter, is to create the driver as a static variable in the test class: