code: def url(self, timeout=30):
          '''
          Returns value of document.URL from the browser.
          '''
          self.websock_thread.expect_result(self._command_id.peek())
          msg_id = self.send_to_chrome(
                  method='Runtime.evaluate',
                  params={'expression': 'document.URL'})
          self._wait_for(
                  lambda: self.websock_thread.received_result(msg_id),
                  timeout=timeout)
          message = self.websock_thread.pop_result(msg_id)
          return message['result']['result']['value'f url(self, timeout=30):
          '''
          Returns value of document.URL from the browser.
          '''
          self.websock_thread.expect_result(self._command_id.peek())
          msg_id = self.send_to_chrome(
                  method='Runtime.evaluate',
                  params={'expression': 'document.URL'})
          self._wait_for(
                  lambda: self.websock_thread.received_result(msg_id),
                  timeout=timeout)
          message = self.websock_thread.pop_result(msg_id)
          return message['result']['result']['value']
docs: Returns value of document.URL from the browser.