Examples of executeScript()


Examples of org.freeplane.features.script.IScriptStarter.executeScript()

    final NodeModel node = reminderExtension.getNode();
    final MapModel map = node.getMap();
    final Controller controller = modeController.getController();
    if(! controller.getMapViewManager().getMaps(modeController.getModeName()).containsValue(map))
      return;
    starter.executeScript(node, script);
    }
}
View Full Code Here

Examples of org.jboss.arquillian.graphene.TestingDriverStub.executeScript()

    @Test
    public void test_execution() {

        // given
        TestingDriverStub executor = spy(new TestingDriverStub());
        when(executor.executeScript("return true;")).thenReturn(true);

        // when
        TestingInterface instance = JSInterfaceFactory.create(GrapheneContext.setContextFor(new GrapheneConfiguration(), executor, Default.class), TestingInterface.class);
        instance.method();
View Full Code Here

Examples of org.jboss.arquillian.graphene.TestingDriverStub.executeScript()

    @Test
    public void test_execution_with_named_method() {

        // given
        TestingDriverStub executor = spy(new TestingDriverStub());
        when(executor.executeScript("return true;")).thenReturn(true);

        // when
        TestingInterface instance = JSInterfaceFactory.create(GrapheneContext.setContextFor(new GrapheneConfiguration(), executor, Default.class), TestingInterface.class);
        instance.namedMethod();
View Full Code Here

Examples of org.jboss.arquillian.graphene.TestingDriverStub.executeScript()

    @Test
    public void test_execution_with_base() {

        // given
        TestingDriverStub executor = spy(new TestingDriverStub());
        when(executor.executeScript("return true;")).thenReturn(true);

        // when
        TestingInterfaceWithBase instance = JSInterfaceFactory.create(GrapheneContext.setContextFor(new GrapheneConfiguration(), executor, Default.class), TestingInterfaceWithBase.class);
        instance.method();
View Full Code Here

Examples of org.jruby.Ruby.executeScript()

            System.out.println(arg);

        Ruby runtime = Ruby.newInstance(config);

        System.out.println("Requiring '" + name + "'");
        runtime.executeScript("require '" + name + "'", name);

        System.out.println("Requiring 'cascading/jruby/runner'");
        runtime.executeScript("require 'cascading/jruby/runner'", "runner"); // gfodor
    }
}
View Full Code Here

Examples of org.openbp.server.engine.script.ScriptEngine.executeScript()

      ScriptEngine scriptEngine = getEngine().getScriptEngineFactory().obtainScriptEngine(context);
      try
      {
        // Evaluate the expression
        scriptEngine.prepareNodeSocketExecution(entrySocket);
        Object value = scriptEngine.executeScript(expression, "Decision node script", entrySocket.getNode()
                              .getQualifier().toString());
        scriptEngine.finishNodeSocketExecution(entrySocket);

        // Assign the result to the parameter
        if (value != null && ! value.equals(Boolean.FALSE))
View Full Code Here

Examples of org.openqa.selenium.JavascriptExecutor.executeScript()

    //
    private void scrollTable(TableElement tbl, int value) {
        WebElement actualElement = tbl.findElement(By
                .className("v-table-body-wrapper"));
        JavascriptExecutor js = tbl.getCommandExecutor();
        js.executeScript("arguments[0].scrollTop = " + value, actualElement);
    }
}
View Full Code Here

Examples of org.openqa.selenium.JavascriptExecutor.executeScript()

    private void scrollUp() {
        WebElement actualElement = getDriver().findElement(
                By.className("v-table-body-wrapper"));
        JavascriptExecutor js = new TestBenchCommandExecutor(getDriver(),
                new ImageComparison(), new ReferenceNameGenerator());
        js.executeScript("arguments[0].scrollTop = " + 30, actualElement);
    }

    private String getCurrentPageFirstItemIndex() throws InterruptedException {
        ButtonElement updateLabelButton = $(ButtonElement.class).get(4);
        LabelElement label = $(LabelElement.class).get(1);
View Full Code Here

Examples of org.openqa.selenium.JavascriptExecutor.executeScript()

                getMeasuredSizesMapSize());
    }

    private int getMeasuredSizesMapSize() {
        JavascriptExecutor jsExec = (JavascriptExecutor) getDriver();
        Number result = (Number) jsExec
                .executeScript("return window.vaadin.getMeasuredSizesCount();");
        return result.intValue();
    }

    @Override
View Full Code Here

Examples of org.openqa.selenium.JavascriptExecutor.executeScript()

    public void testStelenessAndJavascriptOnWebDriver() {
        WebElement stale = browser.findElement(By.className("stale"));
        makeStale.click();
        JavascriptExecutor executor = (JavascriptExecutor) browser;
        installator.install();
        executor.executeScript("Graphene.jQuery(arguments[0]).trigger('blur')", stale);
    }

    @Test
    public void testStelenessAndJavascriptOnWebElement() {
        WebElement inStale = browser.findElement(By.className("stale")).findElement(By.className("in-stale"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.