Package org.seleniumhq.selenium.fluent.internal

Examples of org.seleniumhq.selenium.fluent.internal.Context


        baseShouldBe(shouldBe);
        return this;
    }

    public TestableString within(Period period) {
        Context ctx = Context.singular(context, "within", null, period);
        return new TestableString(period, execution, ctx, monitor);
    }
View Full Code Here


        this.currentElements = currentElements;
    }

    protected Internal.BaseFluentWebElements newFluentWebElements(MultipleResult multiple) {
        List<WebElement> result = multiple.getResult();
        Context ctx = multiple.getCtx();
        List<FluentWebElement> elems = new ArrayList<FluentWebElement>();
        for (WebElement aResult : result) {
            elems.add(new FluentWebElement(delegate, new Internal.WebElementHolder(null, aResult, null), ctx, monitor, booleanInsteadOfNotFoundException));
        }
        return new FluentWebElements(delegate, elems, ctx, monitor, booleanInsteadOfNotFoundException);
View Full Code Here

        }
        return new FluentWebElements(delegate, elems, ctx, monitor, booleanInsteadOfNotFoundException);
    }

    public FluentWebElements click() {
        Context ctx = Context.singular(context, "click");
        executeAndWrapReThrowIfNeeded(new Click(), ctx);
        return makeFluentWebElements(this, ctx, monitor);
    }
View Full Code Here

    /**
     *  Use this instead of clear() to clear an WebElement
     */
    public FluentWebElements clearField() {
        Context ctx = Context.singular(context, "clearField");
        executeAndWrapReThrowIfNeeded(new Clear(), ctx);
        return makeFluentWebElements(this, ctx, monitor);
    }
View Full Code Here

        executeAndWrapReThrowIfNeeded(new Clear(), ctx);
        return makeFluentWebElements(this, ctx, monitor);
    }

    public FluentWebElements submit() {
        Context ctx = Context.singular(context, "submit");
        executeAndWrapReThrowIfNeeded(new Submit(), ctx);
        return makeFluentWebElements(this, ctx, monitor);
    }
View Full Code Here

    }

    // These are as they would be in the WebElement API

    public FluentWebElements sendKeys(final CharSequence... keysToSend) {
        Context ctx = Context.singular(context, "sendKeys", charSeqArrayAsHumanString(keysToSend));
        executeAndWrapReThrowIfNeeded(new SendKeys(keysToSend), ctx);
        return makeFluentWebElements(this, ctx, monitor);
    }
View Full Code Here

        executeAndWrapReThrowIfNeeded(new SendKeys(keysToSend), ctx);
        return makeFluentWebElements(this, ctx, monitor);
    }

    public boolean isSelected() {
        Context ctx = Context.singular(context, "isSelected");
        return executeAndWrapReThrowIfNeeded(new IsSelected(), ctx);
    }
View Full Code Here

        Context ctx = Context.singular(context, "isSelected");
        return executeAndWrapReThrowIfNeeded(new IsSelected(), ctx);
    }

    public boolean isEnabled() {
        Context ctx = Context.singular(context, "isEnabled");
        return executeAndWrapReThrowIfNeeded(new IsEnabled(), ctx);
    }
View Full Code Here

        Context ctx = Context.singular(context, "isEnabled");
        return executeAndWrapReThrowIfNeeded(new IsEnabled(), ctx);
    }

    public boolean isDisplayed() {
        Context ctx = Context.singular(context, "isDisplayed");
        return executeAndWrapReThrowIfNeeded(new IsDisplayed(), ctx);
    }
View Full Code Here

        Context ctx = Context.singular(context, "isDisplayed");
        return executeAndWrapReThrowIfNeeded(new IsDisplayed(), ctx);
    }

    public TestableString getText() {
        Context ctx = Context.singular(context, "getText");
        return new TestableString(new GetText(), ctx, monitor).within(getPeriod());
    }
View Full Code Here

TOP

Related Classes of org.seleniumhq.selenium.fluent.internal.Context

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.