}
if (excludedTags != null) {
action.setExcludedTags(Arrays.asList(excludedTags));
}
TestSession session = TestSession.current();
if (session == null) {
throw new UnregisteredTestSession("Cannot check layout as there was no TestSession created");
}
TestReport report = session.getReport();
CompleteListener listener = session.getListener();
action.execute(report, new SeleniumBrowser(driver), null, listener);
}