def logged_in_client(user='test', passwd='test', client=None):
  if client is None:
    client = WindmillTestClient(__name__)
  client.open(url=windmill.settings['TEST_URL'] + '?clearSession=true')
  client.waits.forPageLoad()
  client.waits.forElement(classname='hue-loaded')
  if client.execJS(js="!!$('hue-login')")["output"]:
    client.waits.forElement(classname='hue-username')
    client.click(jquery='(".hue-username")[0]')
    client.type(classname='hue-username', text=user)
    client.click(classname='hue-password')
    client.type(classname='hue-password', text=passwd)
    client.click(classname='hue-continue')
  # Health dashboard launches at login; ideally we'd have a 
  # better "ready" notification.
  time.sleep(2.0) # TODO: Hacky sleep!
  client.waits.forElement(classname='loggedIn', timeout='20000')
  return client
Return the category's tree path in HTML.
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/windmill_util.py/logged_in_client--crossover with--dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/admin/category.py/CategoryAdmin.get_tree_path