@BeforeMethod(alwaysRun = true) public final void mandatoryBeforeTestMethod(Method testMethod) throws Exception { try { SessionManager.startWebSession(testMethod, _customCapabilities); } catch (Exception e) { throw new Exception("Unable to create Session due to " + e.getMessage()); } }
@AfterMethod(alwaysRun = true) public final void mandatoryAfterTestMethod() throws Exception { SessionManager.killSession(); }