@Before public void setUp() throws Exception { driver = new FirefoxDriver(); recorder = new Recorder(); baseUrl = "http://10.0.0.107:8080/"; driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.manage().window().maximize(); recorder.startRecording(this.getClass().getName()); }
@After public void tearDown() throws Exception { recorder.stopRecording(); driver.quit(); String verificationErrorString = verificationErrors.toString(); if (!"".equals(verificationErrorString)) { fail(verificationErrorString); } }