SeleniumManager { public <T> T getViewRepresentation(Class<T> T) { return getViewRepresentation(T, false); } SeleniumManager(
    		String defaultDomain, 
    		String seleniumHubIP, 
    		String target, 
    		int defaultWindowWidth, 
    		int defaultWindowHeight, 
    		int aTimeout);  SeleniumManager(
    		String defaultDomain, 
    		String seleniumHubIP, 
    		String target, 
    		int defaultWindowWidth, 
    		int defaultWindowHeight, 
    		int aTimeout, 
    		String implicitTimeout,
        String webdriverCreationHookClassName); T getViewRepresentation(Class<T> T); T getViewRepresentation(Class<T> T, boolean forceRefresh); String getDefaultDomain(); URL getSeleniumHub(); List<TestEnvironment> getSeleniumTestEnvironments(); void associateTestEnvironment(TestEnvironment aTestEnvironment); TestEnvironment deAssociateTestEnvironment(); TestEnvironment getAssociatedTestEnvironment(); int getTimeout(); int getDefaultWindowWidth(); int getDefaultWindowHeight(); Integer getImplicitTimeout(); WebDriverCreationHook getWebDriverCreationHook();  }
@Test public void testGetViewRepresentation() throws Exception { SenBotContext senBotContext = SenBotContext.getSenBotContext(); SeleniumManager seleniumManager = senBotContext.getSeleniumManager(); seleniumManager.associateTestEnvironment(seleniumManager.getSeleniumTestEnvironments().get(0)); senBotContext.getCucumberManager().startNewScenario(); NavigationService service = new NavigationService(new ElementService()); service.navigate_to_url("resource_location:/test_pages/exampleTable.html"); MockExampleTablePage examplePage = seleniumManager.getViewRepresentation(MockExampleTablePage.class); assertNotNull("ensure that the table row has indeed been matched up with the associated web element", examplePage.table_Row_1); MockExampleTablePage secondCall = seleniumManager.getViewRepresentation(MockExampleTablePage.class); assertEquals(examplePage, secondCall); MockExampleTablePage forcedUpdate = seleniumManager.getViewRepresentation(MockExampleTablePage.class, true); assertNotSame(examplePage, forcedUpdate); senBotContext.cleanupSenBot(); }