Hi ,
I have to check the differences between 2 html documents One is an old doc another is the updated document I need selenium to get the source of the 2 documents and then do a comparison to check the diff How can i acheive this in java & selenium
Below is the flow i have , can anyone give ideas/examples in how to implement this
Many thanks
- Go to the old page using Selenium
- Collect all the data for the old web page
- Convert the data to a standard format (XML probably); create a class to do this
- Save the data to a file
- Go to the new page using Selenium
- Collect all the data for the new web page
- Convert the data to a standard format (XML probably); use the class you created to do this
- Save the data to a file
- Use a Java library to diff the two files