• champak

    Hi Mikael

    Thanks much for your response - appreciate it!
    To answer your question, my requirements is a combination of 2 and 3 and to be more precise -
    I am trying to measure the load time of all page components of different pages (each page renders a different html site / content) across different browsers -
    For eg:
    Tab 1 - https://www.microsoft.com
    Tab 2 - https://www.msn.com
    Tab 3 - https://www.cnn.com
    Tab 4 - https://www.nytimes.com
    And I want to measure it across let's say 10 iterations with opening and closing the browser each time and making sure nothing is stored on the cache (clean on exit).

    Thanks for your help and appreciate any pointers on this.

    posted in Pythonista read more
  • champak

    Hi

    I used the code posted in this thread https://forum.omz-software.com/topic/4435/open-multiple-web-browser-tabs/13 that discusses opening multiple tabs on safari which worked to open the tabs.
    As an additional level I am interested in profiling the web page load times for each tab.
    According to the Pythonista documentation on ui there is a delegate method that case be used to listen in on the outcome as mentioned here - http://omz-software.com/pythonista/docs/ios/ui.html#webview
    Delegate methods:

    class MyWebViewDelegate (object):
    def webview_should_start_load(self, webview, url, nav_type):
    return True
    def webview_did_start_load(self, webview):
    pass
    def webview_did_finish_load(self, webview):
    pass
    def webview_did_fail_load(self, webview, error_code, error_msg):
    pass

    I guess my question is how do I attach a delegate action with each tab load and use the markers webview_did_start_load and webview_did_finish_load to compute the load times?
    Any pointers will be appreciated.

    Thanks
    Suman

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!