Affects Version/s: None
Fix Version/s: 0.9.255
I want to get page source on step failure. For this I override method stepFailed() of BaseStepListener class (in my own class which extends BaseStepListener ).
To get page source here I was going to use getDriver().getPageSource(). But the problem is that getDriver() returns null here.
Debugging I see that page source could be taken from ((ThucydidesWebdriverManager) webdriverManager).getWebdriver().getPageSource(). But webdriverManager has PRIVATE access and there is no Getter for this field.
What can I do in this situation?