Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get HTML From Url #2

Closed
Conghdos opened this issue Sep 21, 2018 · 3 comments
Closed

How to get HTML From Url #2

Conghdos opened this issue Sep 21, 2018 · 3 comments

Comments

@Conghdos
Copy link

Conghdos commented Sep 21, 2018

I want get HTML of page, but I call this.injectScriptCode("""document.body.innerHTML""")=>void??
How to what to make it!
Thank!

@pichillilorenzo
Copy link
Owner

I'm going to add the possibility of return a value from evaluation of javascript in the next release! I think it will be released tomorrow or the next day!

pichillilorenzo added a commit that referenced this issue Sep 22, 2018
@pichillilorenzo
Copy link
Owner

pichillilorenzo commented Sep 24, 2018

Released new version 0.1.1.
Now you can use something like that inside your InAppBrowser class to get the html:

  @override
  Future onLoadStop(String url) async {
    // get body html
    var html = await this.injectScriptCode("document.body.innerHTML");
  }

pichillilorenzo pushed a commit that referenced this issue Nov 25, 2019
@iampato iampato mentioned this issue Mar 7, 2020
@DowsingUK DowsingUK mentioned this issue Apr 29, 2020
This was referenced Jul 6, 2020
plateaukao added a commit to plateaukao/flutter_inappwebview that referenced this issue Jul 27, 2020
@pawangjain pawangjain mentioned this issue Jan 21, 2021
5 tasks
jonahzheng added a commit to jonahzheng/flutter_inappwebview that referenced this issue Sep 26, 2022
E/flutter (10050): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'bool'
E/flutter (10050): #0      RendererPriorityPolicy.fromMap (package:flutter_inappwebview/src/types.dart:4598:38)
E/flutter (10050): pichillilorenzo#1      AndroidInAppWebViewOptions.fromMap (package:flutter_inappwebview/src/in_app_webview/android/in_app_webview_options.dart:422:61)
E/flutter (10050): pichillilorenzo#2      InAppWebViewGroupOptions.fromMap (package:flutter_inappwebview/src/in_app_webview/in_app_webview_options.dart:72:38)
E/flutter (10050): pichillilorenzo#3      InAppWebViewController.getOptions (package:flutter_inappwebview/src/in_app_webview/in_app_webview_controller.dart:1643:39)
E/flutter (10050): <asynchronous suspension>
E/flutter (10050): pichillilorenzo#4      _WebViewTabState._buildWebView.<anonymous closure> (package:flutter_browser/webview_tab.dart:158:39)
E/flutter (10050): <asynchronous suspension>
@MagarKJ MagarKJ mentioned this issue Jun 13, 2024
2 tasks
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants