<commit_before><commit_msg>KULRICE-10787 : Create Functional Test for KRAD Demo Labs Lookups - without Search Buttons Completed<commit_after>package edu.samplu.krad.labs.lookups;

import edu.samplu.common.SmokeTestBase;
import org.junit.Test;
import org.openqa.selenium.By;

/**
 * @author <NAME> (<EMAIL>)
 */

public class DemoLabsLookupWithoutSearchButtonSmokeTest extends SmokeTestBase {

    /**
     * /kr-krad/lookup?methodToCall=start&viewId=LabsLookup-NoSearchButtonsView&hideReturnLink=true
     */
    public static final String BOOKMARK_URL = "/kr-krad/lookup?methodToCall=start&viewId=LabsLookup-NoSearchButtonsView&hideReturnLink=true";
        
    @Override
    protected String getBookmarkUrl() {
        return BOOKMARK_URL;
    }

    @Override
    protected void navigate() throws Exception {
        waitAndClickByLinkText("Lookups");
        waitAndClickByLinkText("Lookup without Search Buttons");
    }

    @Test
    public void testLabsLookupWithoutSearchButtonBookmark() throws Exception {
        testLabsLookupWithoutSearchButton();
        passed();
    }

    @Test
    public void testLabsLookupWithoutSearchButtonNav() throws Exception {
        testLabsLookupWithoutSearchButton();
        passed();
    }
    
    protected void testLabsLookupWithoutSearchButton()throws Exception {
        if(isElementPresentByXpath("//button[contains(text(), 'Search')]"))
        {
            fail("Search Button Present");
        }
    }
}
{'fraction_non_alphanumeric': 0.09631147540983606, 'fraction_numerical': 0.0034153005464480873, 'mean_word_length': 3.6214511041009465, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4236338', 'n_tokens_mistral': 433, 'n_tokens_neox': 421, 'n_words': 77}