package com.sdl.weblocator.bootstrap;

import com.sdl.bootstrap.form.CheckBox;
import com.sdl.bootstrap.form.Form;
import com.sdl.weblocator.InputData;
import com.sdl.weblocator.TestBase;
import org.apache.log4j.Logger;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import static org.testng.Assert.assertTrue;

public class CheckBoxTest extends TestBase {
    private static final Logger logger = Logger.getLogger(CheckBoxTest.class);

    Form form = new Form(null, "Form Title");
    CheckBox checkBox = new CheckBox(form);

    @BeforeClass
    public void startTests() {
        driver.get(InputData.BOOTSTRAP_URL);
    }

    @Test
    public void check() {
        assertTrue(checkBox.click());
        assertTrue(checkBox.isSelected());
    }
}

@@ -108,16 +108,56 @@
 m.Form;%0A
+import com.sdl.selenium.web.SearchType;%0A
 import c
@@ -185,16 +185,16 @@
 utData;%0A
-
 import c
@@ -592,16 +592,141 @@
 x(form);
+%0A    CheckBox withEnterWebLocator = new CheckBox(form).setText(%22Label with Enter.%22).setSearchTextType(SearchType.CHILD_NODE);
 %0A%0A    @B
@@ -889,24 +889,24 @@
 x.click());%0A
-
         asse
@@ -941,11 +941,107 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void clickWith() %7B%0A        assertTrue(withEnterWebLocator.click());%0A    %7D
 %0A%7D%0A

fix CheckBoxTest