'Use jQuery to obtain the element\'s value.
This is useful for when jQuery performs functions towards the
end of the page load. (In other words, waiting for jquery to
load is not enough; we need to also query values that it has
injected onto the page to ensure it\'s done.)'

def wait_for_jquery_value(self, jquery_element, value):

    self.wait_for((lambda : (self.browser.execute_script(u"return    $('{ele}').val();".format(ele=jquery_element)) == u'{val}'.format(val=value))), u'wait    for    jQuery    to    finish    loading    data    on    page.')
