def dt_links(reporter, row=1, tableID='datatable', quiet=True):
 config = current.test_config
 browser = config.browser
 links = []
 column = 1
 while True:
  td = (".//*[@id='%s']/tbody/tr[%s]/td[%s]" % (tableID, row, column))
  try:
   elem = browser.find_element_by_xpath(td)
  except:
   break
  cnt = 1
  while True:
   link = (".//*[@id='%s']/tbody/tr[%s]/td[%s]/a[%s]" % (tableID, row, column, cnt))
   try:
    elem = browser.find_element_by_xpath(link)
   except:
    break
   cnt += 1
   if (not quiet):
    reporter(('%2d) %s' % (column, elem.text)))
   links.append([column, elem.text])
  column += 1
 return links

def dt_links ( reporter , row = 1 , tableID = 'datatable' , quiet = True ) : config = current . test_config browser = config . browser links = [ ] column = 1 while True : td = ( ".//*[@id='%s']/tbody/tr[%s]/td[%s]" % ( tableID , row , column ) ) try : elem = browser . find_element_by_xpath ( td ) except : break cnt = 1 while True : link = ( ".//*[@id='%s']/tbody/tr[%s]/td[%s]/a[%s]" % ( tableID , row , column , cnt ) ) try : elem = browser . find_element_by_xpath ( link ) except : break cnt += 1 if ( not quiet ) : reporter ( ( '%2d) %s' % ( column , elem . text ) ) ) links . append ( [ column , elem . text ] ) column += 1 return links
returns a list of links in the given row of the datatable .