@@ -0,0 +1,2005 @@
+package org.openmrs.reference;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.openmrs.reference.page.HeaderPage;%0Aimport org.openmrs.reference.page.HomePage;%0Aimport org.openmrs.uitestframework.test.TestBase;%0Aimport org.openmrs.uitestframework.test.TestData;%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebElement;%0A%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.assertTrue;%0A%0A%0Apublic class FindPatientRecordTest extends TestBase %7B%0A%0A    private String idToSearch;%0A    private HeaderPage headerPage;%0A    private HomePage homePage;%0A    private TestData.PatientInfo patient;%0A%0A    @Before%0A    public void before() %7B%0A        homePage = new HomePage(driver);%0A        headerPage = new HeaderPage(driver);%0A        patient = createTestPatient();%0A        idToSearch = patient.identifier;%0A        loginPage.loginAsAdmin();%0A        assertPage(homePage);%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A        headerPage.clickOnHomeIcon();%0A        deletePatient(patient.uuid);%0A        headerPage.logOut();%0A    %7D%0A%0A    /**%0A     * Test for RA-819%0A     */%0A    @Test%0A    public void testFindPatientRecord() throws InterruptedException %7B%0A        //navigate %22find patient record%22 page%0A        homePage.clickOnFindPatientRecord();%0A        driver.findElement(By.id(%22patient-search%22)).clear();%0A        driver.findElement(By.id(%22patient-search%22)).sendKeys(idToSearch);%0A%0A        Thread.sleep(3 * 1000); //TODO: replace by WebDriverWait or so on%0A%0A//        WebDriverWait wait = new WebDriverWait(driver, 5);%0A//        wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(cssLocator));%0A%0A        By cssLocator = By.cssSelector(%22#patient-search-results-table %3E tbody %3E tr %3E td%22);%0A        WebElement searchResultTableFirstRowFirstColumn = driver.findElement(cssLocator);%0A        assertNotNull(searchResultTableFirstRowFirstColumn);%0A        assertTrue(searchResultTableFirstRowFirstColumn.getText().contains(idToSearch));%0A%0A    %7D%0A%7D%0A

add find patient record test