Skip to content

How to configure to parse the "<iframe>" tag #67

@ly641921791

Description

@ly641921791

When I open the webpage through a browser, I can get the following for the "<iframe>" tag.

<iframe id="iframe0201" frameborder="no" border="0" src="/xxx.shtml" onload="setIframeHeight('iframe0201');" style="height: 610px;">
    <html>...</html>
</iframe>

When I get the page through the code below, I can't get a page like that opened in the browser.

final WebClient webClient=new WebClient(BrowserVersion.CHROME);
webClient.getOptions().setCssEnabled(true);
webClient.getOptions().setJavaScriptEnabled(true);
webClient.getOptions().setMaxInMemory(500);
final HtmlPage page = webClient.getPage("...");
<iframe id="iframe0201" frameborder="no" border="0" src="/xxx.shtml" onload="setIframeHeight('iframe0201');" style="height: 610px;">
</iframe>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions