Package org.seleniumhq.selenium.fluent.internal

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


        return new NegatingFluentWebDriver(delegate, period, Context.singular(context, "without", null, period), monitor);
    }

    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


    private <T> T executeAndWrapReThrowIfNeeded(Execution<T> execution, Context ctx, boolean expectedToBeThere) {
        return executeAndWrapReThrowIfNeeded(execution, currentElement, ctx, expectedToBeThere);
    }

    public FluentWebElement click() {
        Context ctx = Context.singular(context, "click");
        executeAndWrapReThrowIfNeeded(setCurrentElement(new Click()), ctx, true);
        return new FluentWebElement(delegate, currentElement, ctx, monitor, booleanInsteadOfNotFoundException);
    }
View Full Code Here

    /**
     *  Use this instead of clear() to clear an WebElement
     */

    public FluentWebElement clearField() {
        Context ctx = Context.singular(context, "clearField");
        executeAndWrapReThrowIfNeeded(setCurrentElement(new Clear()), ctx, true);
        return new FluentWebElement(delegate, currentElement, ctx, monitor, booleanInsteadOfNotFoundException);
    }
View Full Code Here

    public TestableString getTagName() {
        return new TestableString(setCurrentElement(new GetTagName()), Context.singular(context, "getTagName"), monitor);
    }

    public TestableValue<Boolean> isSelected() {
        Context isSelected = Context.singular(context, "isSelected");
        return new TestableValue<Boolean>(setCurrentElement(new IsSelected()), isSelected, monitor);
    }
View Full Code Here

        Context isSelected = Context.singular(context, "isSelected");
        return new TestableValue<Boolean>(setCurrentElement(new IsSelected()), isSelected, monitor);
    }

    public TestableValue<Boolean> isEnabled() {
        Context isEnabled = Context.singular(context, "isEnabled");
        return new TestableValue<Boolean>(setCurrentElement(new IsEnabled()), isEnabled, monitor);
    }
View Full Code Here

        Context isEnabled = Context.singular(context, "isEnabled");
        return new TestableValue<Boolean>(setCurrentElement(new IsEnabled()), isEnabled, monitor);
    }

    public TestableValue<Boolean> isDisplayed() {
        Context isDisplayed = Context.singular(context, "isDisplayed");
        return new TestableValue<Boolean>(setCurrentElement(new IsDisplayed()), isDisplayed, monitor);
    }
View Full Code Here

        Context isDisplayed = Context.singular(context, "isDisplayed");
        return new TestableValue<Boolean>(setCurrentElement(new IsDisplayed()), isDisplayed, monitor);
    }

    public FluentWebElement ifInvisibleWaitUpTo(Period period) {
        Context ifInvisibleWaitUpTo = Context.singular(context, "ifInvisibleWaitUpTo", period);
        executeAndWrapReThrowIfNeeded(setCurrentElement(new IfInvisibleWait(period)), currentElement, ifInvisibleWaitUpTo, true);
        return new FluentWebElement(delegate, currentElement, ifInvisibleWaitUpTo, monitor, booleanInsteadOfNotFoundException);
    }
View Full Code Here

        executeAndWrapReThrowIfNeeded(setCurrentElement(new IfInvisibleWait(period)), currentElement, ifInvisibleWaitUpTo, true);
        return new FluentWebElement(delegate, currentElement, ifInvisibleWaitUpTo, monitor, booleanInsteadOfNotFoundException);
    }

    public TestableValue<Point> getLocation() {
        final Context getLocation = Context.singular(context, "getLocation");
        return new TestableValue<Point>(setCurrentElement(new GetLocation()), getLocation, monitor);
    }
View Full Code Here

    private Execution setCurrentElement(Execution execution) {
        return execution.withWebElementHolder(currentElement);
    }

    public TestableValue<Dimension> getSize() {
        Context getSize = Context.singular(context, "getSize");
        return new TestableValue<Dimension>(setCurrentElement(new GetSize()), getSize, monitor);
    }
View Full Code Here

        this.currentSelect = currentSelect;
    }

    @Override
    public FluentSelect ifInvisibleWaitUpTo(Period period) {
        Context ifInvisibleWaitUpTo = Context.singular(context, "ifInvisibleWaitUpTo", period);
        executeAndWrapReThrowIfNeeded(new IfInvisibleWait(period), ifInvisibleWaitUpTo, true);
        return new FluentSelect(delegate, currentElement.getFound(), ifInvisibleWaitUpTo, monitor, booleanInsteadOfNotFoundException);
    }
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.