Is it possible to run each Scenario in webdriver maximize mode?
I was trying to add to Runner class method with using TestNG annotation @BeforeClass
and it works just once, but when scenario passed or failed than the browser get closed and then again open in minimize mode. From other hand I do not want to add @Before
cucumber annotation to all my feature files. I just want to change it at one place.
I was not able to override open()
method because it's final. I'm looking for a solution when I can do it in runner class or even better in properties directly.
Any help will be appreciated.
Also:
Thanks.