Skip to content

Commit

Permalink
try using etree html parser
Browse files Browse the repository at this point in the history
Issue #239
  • Loading branch information
damies13 committed Oct 16, 2024
1 parent 1854a35 commit 0d6adc9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/Regression/Reporter/GUI_Bugs.robot
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ Template with Start and End Dates
Copy Files ${resultfolder1}/*.report ${testresultfolder1}
Copy Files ${resultfolder1}/*.html ${testresultfolder1}

${html}= Parse XML ${resultfolder1}${/}${resultdata1}.html
# ${html}= Parse XML ${resultfolder1}${/}${resultdata1}.html
# import lxml.etree
# tree = lxml.etree.parse("/home/dave/Downloads/Reporter-windows-latest-3.11/Issue-#250/20240626_130059_jpetstore-nomon-quick/20240626_130059_jpetstore-nomon-quick.html", lxml.etree.HTMLParser())
${html}= Evaluate lxml.etree.parse("${resultfolder1}${/}${resultdata1}.html", lxml.etree.HTMLParser()) modules=lxml.etree
${sectionid}= Get Element Attribute ${html} id .//h1[text()='2 Test Result Summary']/..
${table}= Get Element ${html} .//div[@id='${sectionid}']//table
FOR ${index} ${item} IN ENUMERATE @{expected}
Expand Down

0 comments on commit 0d6adc9

Please sign in to comment.