@@ -0,0 +1,2199 @@
+package com.sdl.bootstrap.form;%0D%0A%0D%0Aimport com.sdl.selenium.web.SearchType;%0D%0Aimport com.sdl.selenium.web.WebDriverConfig;%0D%0Aimport com.sdl.selenium.web.WebLocator;%0D%0Aimport org.openqa.selenium.By;%0D%0Aimport org.openqa.selenium.WebElement;%0D%0A%0D%0Aimport java.util.ArrayList;%0D%0Aimport java.util.List;%0D%0A%0D%0Apublic class MultiSelect extends WebLocator %7B%0D%0A%0D%0A    public MultiSelect() %7B%0D%0A        setClassName(%22MultiSelect%22);%0D%0A        setBaseCls(%22multiselect dropdown-toggle btn%22);%0D%0A        setTag(%22button%22);%0D%0A    %7D%0D%0A%0D%0A    public MultiSelect(WebLocator container) %7B%0D%0A        this();%0D%0A        setContainer(container);%0D%0A    %7D%0D%0A%0D%0A    public MultiSelect(WebLocator container, String label) %7B%0D%0A        this(container);%0D%0A        setLabel(label);%0D%0A    %7D%0D%0A%0D%0A    public boolean select(String... values) %7B%0D%0A        boolean selected = false;%0D%0A        if (click()) %7B%0D%0A            WebLocator select = new WebLocator(this, %22//following-sibling::*%5Bcontains(@class, 'dropdown-menu')%5D%22);%0D%0A            select.ready();%0D%0A            for (String val : values) %7B%0D%0A                WebLocator el = new WebLocator(select).setTag(%22label%22).setText(val, SearchType.HTML_NODE);%0D%0A                CheckBox checkBox = new CheckBox(el).setInfoMessage(%22check: '%22 + val + %22'%22);%0D%0A                selected = checkBox.click();%0D%0A                if (!selected) %7B%0D%0A                    return false;%0D%0A                %7D%0D%0A            %7D%0D%0A            click();%0D%0A        %7D%0D%0A        return selected;%0D%0A    %7D%0D%0A%0D%0A    public List%3CString%3E getValueSelected() %7B%0D%0A        List%3CString%3E list = null;%0D%0A        if (click()) %7B%0D%0A            list = new ArrayList%3CString%3E();%0D%0A            WebLocator select = new WebLocator(this, %22//following-sibling::*%5Bcontains(@class, 'dropdown-menu')%5D%22);%0D%0A            WebLocator li = new WebLocator(select).setTag(%22li%22).setCls(%22active%22);%0D%0A            WebLocator el = new WebLocator(li).setTag(%22label%22);%0D%0A            el.ready();%0D%0A            List%3CWebElement%3E elements = WebDriverConfig.getDriver().findElements(By.xpath(el.getPath()));%0D%0A            for (WebElement element : elements) %7B%0D%0A                String text = element.getText();%0D%0A                list.add(text);%0D%0A            %7D%0D%0A            click();%0D%0A        %7D%0D%0A        return list;%0D%0A    %7D%0D%0A%7D

add MultiSelect.java