javascript - Do something after WKWebView has finished loading a specific url page -


i'm trying cal function after wkwebview has finished loading. if use this:

func webview(webview: wkwebview!, didfinishnavigation navigation: wknavigation!) {   something... } 

it prints every time load page.

in application instead, tap button loads webpage , want scrape data page when has finished loading sure scrape loaded page , not previous one. can do?

i use xcode swift 3

if got question right, can check url property of webview sure special web page.

api reference


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -