Forum Discussion
richie
7 years agoCommunity Hero
Hey 678
Could you supply a little more background and the use case?
saying "I need to extract some data at page 5 of a 10 page .html file" needs a little drilling down to resolve the ambiguities!
That said - I once had to extract some html which was a .json attribute so I just used the inbuilt xml parser available via the out of the box functionality.
Cheers,
richie
678
7 years agoRegular Contributor
I am using following peice to read the complete html page but it a very long HTML page
def filename = "C:/Users/ProjectReport.html"
// read all the content of the file into a single string
File fh1 = new File(filename)
def report = fh1.getText('UTF-8')
but i need the part of the page in between lines like
Tag line <TestSuite Results> to Tag line <end of TestSuite Results>