Source:
<code>public void start(Method method, Object[] data) { Configuration.clearCustomTestProperties(); if (method.isAnnotationPresent(Execute.class)) { if (!method.getAnnotation(Execute.class).onWikia().equals("")) { Configuration.setTestValue("wikiName", method.getAnnotation(Execute.class).onWikia()); } if (!method.getAnnotation(Execute.class).disableFlash().equals("")) { Configuration .setTestValue("disableFlash", method.getAnnotation(Execute.class).disableFlash()); } } prepareURLs(); if (method.isAnnotationPresent(DontRun.class)) { String[] excludedEnv = method.getAnnotation(DontRun.class).env(); for (int i = 0; i < excludedEnv.length; i++) { if (Configuration.getEnv().contains(excludedEnv[i])) { throw new SkipException( "Test can't be run on " + Configuration.getEnv() + " environment"); } } } runProxyServerIfNeeded(method); if (method.isAnnotationPresent(UserAgent.class)) { setBrowserUserAgent(method.getAnnotation(UserAgent.class).userAgent()); } if (method.isAnnotationPresent(UseUnstablePageLoadStrategy.class)) { NewDriverProvider.setUnstablePageLoadStrategy(true); } <START> String onDriver = method.getAnnotation(Execute.class).onDriver(); <END> if (onDriver.length() > 0 & !onDriver.equalsIgnoreCase(Configuration.getBrowser())) { throw new SkipException( "The test can not be run on driver " + Configuration .getBrowser() + ". The test is restricted to driver " + onDriver); } else { startBrowser(); } if (method.isAnnotationPresent(Execute.class)) { if (method.getAnnotation(Execute.class).asUser() == User.ANONYMOUS) { loadFirstPage(); } } else { loadFirstPage(); } NewDriverProvider.setUnstablePageLoadStrategy(false); }</code><technical_language>rename variable allowedDriver</technical_language>

Target:
public void start(Method method, Object[] data) { Configuration.clearCustomTestProperties(); if (method.isAnnotationPresent(Execute.class)) { if (!method.getAnnotation(Execute.class).onWikia().equals("")) { Configuration.setTestValue("wikiName", method.getAnnotation(Execute.class).onWikia()); } if (!method.getAnnotation(Execute.class).disableFlash().equals("")) { Configuration .setTestValue("disableFlash", method.getAnnotation(Execute.class).disableFlash()); } } prepareURLs(); if (method.isAnnotationPresent(DontRun.class)) { String[] excludedEnv = method.getAnnotation(DontRun.class).env(); for (int i = 0; i < excludedEnv.length; i++) { if (Configuration.getEnv().contains(excludedEnv[i])) { throw new SkipException( "Test can't be run on " + Configuration.getEnv() + " environment"); } } } runProxyServerIfNeeded(method); if (method.isAnnotationPresent(UserAgent.class)) { setBrowserUserAgent(method.getAnnotation(UserAgent.class).userAgent()); } if (method.isAnnotationPresent(UseUnstablePageLoadStrategy.class)) { NewDriverProvider.setUnstablePageLoadStrategy(true); } String onDriver = method.getAnnotation(Execute.class).allowedDriver(); if (onDriver.length() > 0 & !onDriver.equalsIgnoreCase(Configuration.getBrowser())) { throw new SkipException( "The test can not be run on driver " + Configuration .getBrowser() + ". The test is restricted to driver " + onDriver); } else { startBrowser(); } if (method.isAnnotationPresent(Execute.class)) { if (method.getAnnotation(Execute.class).asUser() == User.ANONYMOUS) { loadFirstPage(); } } else { loadFirstPage(); } NewDriverProvider.setUnstablePageLoadStrategy(false); }