Hey guys, im struggling with an new project which I'm working on to automize a load of workflows over website forms. For now I'm doing it with applescript by injecting jQuery into Safari. Now I need to make this userfriendly and all.
I'm known how to inject jquery into an webview. And I found this function:
This function should kick in when the webview finished loading the frame.
However, it seems to get called for every ?'subframe'?? aswell?
At loading 1 page, it gets called twice. Sometimes 3 till 6 times.
So I cannot rely on this function to wait till an page is fully finished loading. So I can start running certain jQuery funtions.
Does anyone have any idea for me, how I can check for tha page being loaded completly??
I'm known how to inject jquery into an webview. And I found this function:
Code:
- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame {
}
This function should kick in when the webview finished loading the frame.
However, it seems to get called for every ?'subframe'?? aswell?
At loading 1 page, it gets called twice. Sometimes 3 till 6 times.
So I cannot rely on this function to wait till an page is fully finished loading. So I can start running certain jQuery funtions.
Does anyone have any idea for me, how I can check for tha page being loaded completly??