#循环遍历表格列内容 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'字符串'
Pyse框架部分脚本总结
最新推荐文章于 2024-04-15 00:49:07 发布
#循环遍历表格列内容 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'字符串'