Package com.gargoylesoftware.htmlunit

Examples of com.gargoylesoftware.htmlunit.WebWindow


     * Returns a list containing all the frames (from frame and iframe tags) in this page.
     * @return a list of {@link FrameWindow}
     */
    public List<FrameWindow> getFrames() {
        final List<FrameWindow> list = new ArrayList<FrameWindow>();
        final WebWindow enclosingWindow = getEnclosingWindow();
        for (final WebWindow window : getWebClient().getWebWindows()) {
            // quite strange but for a TopLevelWindow parent == self
            if (enclosingWindow == window.getParentWindow()
                    && enclosingWindow != window) {
                list.add((FrameWindow) window);
View Full Code Here


                    LOG.debug("Property \"" + name + "\" evaluated (by id) to " + next);
                    return getScriptableForElement(next);
                }
            }
            else if (next instanceof WebWindow) {
                final WebWindow window = (WebWindow) next;
                final String windowName = window.getName();
                if (windowName != null && windowName.equals(name)) {
                    LOG.debug("Property \"" + name + "\" evaluated (by name) to " + window);
                    return getScriptableForElement(window);
                }
                if (getBrowserVersion().isIE() && window instanceof FrameWindow
View Full Code Here

                        }
                    }
                    index++;
                }
                else if (next instanceof WebWindow) {
                    final WebWindow window = (WebWindow) next;
                    final String windowName = window.getName();
                    if (windowName != null) {
                        idList.add(windowName);
                    }
                }
                else {
View Full Code Here

        else {
            final HtmlPage page = getHtmlPage();
            final URL url = page.getWebResponse().getRequestSettings().getUrl();
            final WebResponse webResponse = new StringWebResponse(writeBuffer_.toString(), url);
            final WebClient webClient = page.getWebClient();
            final WebWindow window = page.getEnclosingWindow();

            webClient.loadWebResponseInto(webResponse, window);

            writeInCurrentDocument_ = true;
            writeBuffer_.setLength(0);
View Full Code Here

     */
    public String jsxGet_domain() {
        if (domain_ == null) {
            URL url = getHtmlPage().getWebResponse().getRequestSettings().getUrl();
            if (url == WebClient.URL_ABOUT_BLANK) {
                final WebWindow w = getWindow().getWebWindow();
                if (w instanceof FrameWindow) {
                    url = ((FrameWindow) w).getEnclosingPage().getWebResponse().getRequestSettings().getUrl();
                }
                else {
                    return null;
View Full Code Here

      int hora) {
    String res = "valorPrueba !!";
    final WebClient webClient = new WebClient();
    try {
      String clave = "nWphymts1a5lgpWHk2yDh41remeWq9W0ndij1MebnpXZrJ2frKietKhkZYeLZmZnZmRpYpx8pXKT3JXXyqa/oaRlpeRlmuN7o62gvg";
      WebWindow aux = webClient.getCurrentWindow();
      aux.toString();
      URL url = new URL(
          "http://huellasolar.com/visorweb/client_serv/serv_sunperc.php");
      WebRequest req = new WebRequest(url, HttpMethod.POST);

      List<NameValuePair> l = new ArrayList<NameValuePair>();
View Full Code Here

TOP

Related Classes of com.gargoylesoftware.htmlunit.WebWindow

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.