java.lang.IllegalArgumentException: Can't move focus to an element from a different page.

htmlunit | csp-a0zvq5m | 2 years ago
  1. 0

    Wrong activeElement for iFrames and their parents

    htmlunit | 2 years ago | csp-a0zvq5m
    java.lang.IllegalArgumentException: Can't move focus to an element from a different page.
  2. 0
    Invalid http request, probably hacking with manually crafted requests.
  3. 0
    This happened when I tried to insert an empty list of elements to a collection.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    This error is caused by malformed HTTP request. You are trying to access unsecured page through https.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Can't move focus to an element from a different page.

      at com.gargoylesoftware.htmlunit.html.HtmlPage.setFocusedElement()
    2. HtmlUnit
      HtmlElement.click
      1. com.gargoylesoftware.htmlunit.html.HtmlPage.setFocusedElement(HtmlPage.java:2047)
      2. com.gargoylesoftware.htmlunit.WebClient.setCurrentWindow(WebClient.java:743)
      3. com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1238)
      4. com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1216)
      4 frames