Package org.openqa.selenium.support.ui

Examples of org.openqa.selenium.support.ui.Select


        select.selectByValue(SIMPLE_USER);
    }

    public void setAdvancedUserType()
    {
        Select select = new Select(this.userType);
        select.selectByValue(ADVANCED_USER);
    }
View Full Code Here


        select.selectByValue(ADVANCED_USER);
    }

    public void setDefaultEditorDefault()
    {
        Select select = new Select(this.defaultEditor);
        select.selectByValue(EDITOR_DEFAULT);
    }
View Full Code Here

        select.selectByValue(EDITOR_DEFAULT);
    }

    public void setDefaultEditorWysiwyg()
    {
        Select select = new Select(this.defaultEditor);
        select.selectByValue(EDITOR_WYSIWYG);
    }
View Full Code Here

        select.selectByValue(EDITOR_WYSIWYG);
    }

    public void setDefaultEditorText()
    {
        Select select = new Select(this.defaultEditor);
        select.selectByValue(EDITOR_TEXT);
    }
View Full Code Here

        super("Localization");
    }

    public void setMultiLingual(boolean isMultiLingual)
    {
        Select select = new Select(this.multiLingualSelect);
        if (isMultiLingual) {
            select.selectByIndex(1);
        } else {
            select.selectByIndex(2);
        }
    }
View Full Code Here

     *
     * @param targetSpaceName the name of the space where the page should be copied
     */
    public void setTargetSpaceName(String targetSpaceName)
    {
        new Select(this.targetSpaceName).selectByVisibleText(targetSpaceName);
    }
View Full Code Here

    public void setFieldValue(WebElement fieldElement, String value)
    {
        if ("checkbox".equals(fieldElement.getAttribute("type"))) {
            setCheckBox(fieldElement, value.equals("true"));
        } else if ("select".equals(fieldElement.getTagName())) {
            Select select = new Select(fieldElement);
            select.selectByValue(value);
        } else {
            fieldElement.clear();
            fieldElement.sendKeys(value);
        }
    }
View Full Code Here

        changeFieldValue("tab_title", value);
    }

    @When("I choose the two column layout")
    public void selectTwoColumnLayout() {
        final Select layouts = new Select(portal.findElement(By.id("pageLayout")));
        layouts.selectByValue("columns_2");
    }
View Full Code Here

    /* ********************************************************************************************************
     * Tests ********************************************************************* ***********************************
     */
    @Test
    public void testStates() throws Exception {
        Select leftColor = new Select(page.getSelectLeftColor());
        Select rightColor = new Select(page.getSelectRightColor());
        Select textColor = new Select(page.getSelectTextColor());
        for (ImageState state : ImageState.values()) {
            leftColor.selectByIndex(state.getLeftColor().getIndex());
            rightColor.selectByIndex(state.getRightColor().getIndex());
            textColor.selectByIndex(state.getTextColor().getIndex());
            page.getSubmitButton().click();
            testImage(
                    state.getLeftColor().getValue(),
                    state.getRightColor().getValue(),
                    state.getTextColor().getValue());
View Full Code Here

        }
        return result;
    }

    protected void filterSelect(WebElement input, String value) {
        Graphene.guardAjax(new Select(input)).selectByVisibleText(value);
    }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.support.ui.Select

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.