Examples of Browser


Examples of br.com.caelum.seleniumdsl.Browser

        "http://www.google.com");
    selenium.start();
    selenium.setContext("A real test, using the real Selenium on the browser side served by Jetty, driven from Java");
    selenium.setBrowserLogLevel(SeleniumLogLevels.WARN);

    Browser browser = new DefaultBrowser(selenium);
    browser.open("/");
    selenium.stop();

    Page currentPage = browser.currentPage();
    Form form = currentPage.form("id");
    Field field = form.field("fieldName");
  }
View Full Code Here

Examples of com.vaadin.tests.tb3.MultiBrowserTest.Browser

     */
    private Collection<DesiredCapabilities> getDesiredCapabilities(
            AbstractTB3Test testClassInstance) {
        Collection<DesiredCapabilities> desiredCapabilites = getFilteredCapabilities(testClassInstance);

        Browser runLocallyBrowser = testClassInstance.getRunLocallyBrowser();
        if (runLocallyBrowser != null) {
            desiredCapabilites = new ArrayList<DesiredCapabilities>();
            desiredCapabilites.add(runLocallyBrowser.getDesiredCapabilities());
        }

        return desiredCapabilites;
    }
View Full Code Here

Examples of com.vaadin.tests.tb3.MultiBrowserTest.Browser

     *             If something goes wrong
     */
    protected void setupDriver() throws Exception {
        DesiredCapabilities capabilities;

        Browser runLocallyBrowser = getRunLocallyBrowser();
        if (runLocallyBrowser != null) {
            if (System.getenv().containsKey("TEAMCITY_VERSION")) {
                throw new RuntimeException(
                        "@RunLocally is not supported for tests run on the build server");
            }
            capabilities = runLocallyBrowser.getDesiredCapabilities();
            setupLocalDriver(capabilities);
        } else {
            capabilities = getDesiredCapabilities();

            for (int i = 1; i <= BROWSER_INIT_ATTEMPTS; i++) {
View Full Code Here

Examples of com.vaadin.tests.tb3.MultiBrowserTest.Browser

        setDesiredCapabilities(desiredCapabilities);
    }

    @Override
    protected Browser getRunLocallyBrowser() {
        Browser runLocallyBrowser = super.getRunLocallyBrowser();
        if (runLocallyBrowser != null) {
            // Always use annotation value if present
            return runLocallyBrowser;
        }
View Full Code Here

Examples of edu.uga.galileo.slash.bo.Browser

      ps.setString(1, startDate);
      ps.setString(2, endDate);
      rs = ps.executeQuery();

      while (rs.next()) {
        results.add(new Browser(rs.getString("user_agent"), rs
            .getInt("uaCount")));
      }
    } catch (SQLException e) {
      Logger.error("StatsDAO getBrowsersAndCounts failure: "
          + e.toString());
View Full Code Here

Examples of lupos.gui.Browser

        if(dc == null || dc.getDescription() == null) {
          JOptionPane.showMessageDialog(DebugContainerToolBar.this.that, "No information about this rule available!", "Error", JOptionPane.ERROR_MESSAGE);
        }
        else {
          final JFrame browserFrame = new Browser("http://www.ifis.uni-luebeck.de/~groppe/tutorial_demo/ruledoc/" + dc.getDescription() + ".html", "Rule information", false);

          if(fromJar) {
            browserFrame.setIconImage(new ImageIcon(DebugContainerToolBar.class.getResource("/demo.gif")).getImage());
          }
          else {
            browserFrame.setIconImage(new ImageIcon("data" + File.separator + "demo.gif").getImage());
          }
        }
      }
    });
View Full Code Here

Examples of net.jsunit.model.Browser

    public void setUp() throws Exception {
        super.setUp();
        mockRunner = new MockBrowserTestRunner();
        mockRunner.timeoutSeconds = Integer.MAX_VALUE;
        mockProcess = new MockProcess();
        checker = new TimeoutChecker(mockProcess, new Browser("mybrowser.exe", 0), 1, mockRunner, 1);
        checker.start();
        while (!checker.isAlive()) {
            Thread.sleep(10);
        }
    }
View Full Code Here

Examples of net.mindengine.galen.browser.Browser

        }
    }

    private void performPageDump(GalenArguments arguments) throws Exception {
        SeleniumBrowserFactory browserFactory = new SeleniumBrowserFactory();
        Browser browser = browserFactory.openBrowser();

        try {

            if (arguments.getUrl() == null || arguments.getUrl().isEmpty()) {
                throw new SyntaxException("--url parameter is not defined");
            }
            if (arguments.getPaths() == null || arguments.getPaths().size() == 0) {
                throw new SyntaxException("You should specify a spec file with which you want to make a page dump");
            }
            if (arguments.getExport() == null || arguments.getExport().isEmpty()) {
                throw new SyntaxException("--export parameter is not defined");
            }


            if (arguments.getScreenSize() != null) {
                browser.changeWindowSize(arguments.getScreenSize());
            }

            browser.load(arguments.getUrl());

            Galen.dumpPage(browser, arguments.getUrl(), arguments.getPaths().get(0), arguments.getExport(), arguments.getMaxWidth(), arguments.getMaxHeight());
            System.out.println("Done!");
        }
        catch (Exception ex) {
            throw ex;
        }
        finally {
            browser.quit();
        }
    }
View Full Code Here

Examples of net.sf.sahi.client.Browser

    public GuiPerfTestCase(String name) {
        super(name);
    }

    public void testLoadResourceTree() {
        Browser browser = GuiPerfTestSuite.getBrowser();

        browser.link("Inventory").click();
        browser.cell("Platforms").click();
        browser.div("Linux Operating System").under(browser.cell("Description")).doubleClick();
        // check that tree has been drawn
        assertTrue(browser.table("treeCellSelected").isVisible());
    }
View Full Code Here

Examples of net.sf.sahi.client.Browser

        String firefoxProfile = "sahi" + profileIndex;

        String browserOptions = "-profile " + SAHI_USER_DATA + "/browser/ff/profiles/" + firefoxProfile
                + " -no-remote";
        System.out.println("Browser options: " + browserOptions);
        Browser browser = new Browser(browserPath, browserProcessName, browserOptions);
        try {
            browser.open();
        } catch (Exception e) {
            throw new RuntimeException("Failed to connect to Sahi proxy - make sure Sahi dashboard is running - cause: "
                    + e);
        }
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.