@Test
	public void test() {
		// Wait for the page to load, timeout after 10 seconds
        (new WebDriverWait(driver, 10)).until(new ExpectedCondition<Boolean>() {
            public Boolean apply(WebDriver wd) {
                return wd.getTitle().toLowerCase().contains("bikes");
            }
        });
   
        //Make sure the table is showing
        try {
        	/*
        	 * First do the login
        	 */
            //click for the dropdown pane to show the login
            loginPage.clickLoginDropdown();
            
            //give the animation a moment to work
            Thread.sleep(3000);
            
            //login
            loginPage.enterName("Mickey Mouse");
            loginPage.enterEmail("abc@123.com");
            bikePage = loginPage.login();
            
            /*
             * Now run the view tables tests
             */
        	//Make sure the table is showing
            assertTrue(bikePage.getTable().isDisplayed());
            
            //Make sure the column headers are showing
            try {
            	//Make sure all the buttons are there
            	assertTrue(bikePage.getIdButton().isDisplayed());
                assertTrue(bikePage.geYearButton().isDisplayed());
                assertTrue(bikePage.getMakeButton().isDisplayed());
                assertTrue(bikePage.getModelButton().isDisplayed());
                assertTrue(bikePage.getColorButton().isDisplayed());
			} catch (Exception e) {
				//didn't find a button
				fail("Didn't find one of the buttons" + e.getMessage() + e.toString());
			}
            
            //Make sure the sample data for row 1 exists
            //this presupposes that no one has deleted or changed row 1
            try {
            	WebElement row1 = bikePage.getRowElement("row1");
            	assertEquals("1", bikePage.getIdForRow(row1));
            	assertEquals("1988", bikePage.getYearForRow(row1));
            	assertEquals("BMW", bikePage.getMakeForRow(row1));
            	assertEquals("K100", bikePage.getModelForRow(row1));
            	assertEquals("Silver", bikePage.getColorForRow(row1));
			} catch (Exception e) {
				//didn't find an element
				fail("Didn't find the row or one of the row elmeents" + e.getMessage() + e.toString());
			}
		} catch (Exception e) {
			//didn't find the element
			fail("Didn't find the Display Table" + e.getMessage() + e.toString());
		}
	}