#循环遍历表格列内容 table = dr.get_text("xpath=>//*[@id='DataTables_Table_0']/tbody") rows = table.split('\n') for row in rows: col = row.split(' ') assert col[1]==u'字符串'
#循环遍历表格列内容 table = dr.get_text("xpath=>//*[@id='DataTables_Table_0']/tbody") rows = table.split('\n') for row in rows: col = row.split(' ') assert col[1]==u'字符串'