'Tests that Recursive Refresh button triggers correct flow.'

def testRecursiveListDirectory(self):

    self.Open('/')
    self.Type('client_query', 'C.0000000000000001')
    self.Click('client_query_submit')
    self.WaitUntilEqual(u'C.0000000000000001', self.GetText, 'css=span[type=subject]')
    self.Click("css=td:contains('0001')")
    self.Click("css=a[grrtarget='client.vfs']")
    self.Click('css=#_fs    i.jstree-icon')
    self.Click('css=#_fs-os    i.jstree-icon')
    self.Click('link=c')
    self.Click('css=button[name=RecursiveRefresh]:not([disabled])')
    self.WaitUntil(self.IsTextPresent, 'Recursive    Directory    Refresh')
    self.WaitUntil(self.IsTextPresent, 'Max    depth')
    self.Type("css=label:contains('Max    depth')    ~    *    input", '423')
    self.Click('css=button[name=Proceed]')
    self.WaitUntil(self.IsTextPresent, 'Refresh    started    successfully!')
    self.WaitUntilNot(self.IsTextPresent, 'Refresh    started    successfully!')
    self.Click("css=a[grrtarget='client.flows']")
    self.Click("css=td:contains('RecursiveListDirectory')")
    self.WaitUntil(self.IsElementPresent, "css=.tab-content    td.proto_value:contains('/c')")
    self.WaitUntil(self.IsElementPresent, 'css=.tab-content    td.proto_value:contains(423)')
