Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Compare and print HTML DOM diffs

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys, I am pretty struggling with this task. I want to run a program that compares 2 HTMLs and prints the diffs in its DOMS.
the diffs that interest me are - which elements were deleted, which were added, and which changed location?

I came across Jsoup and thought of combining it with selenium but couldn't really understand how and I struggle with it. I dont mind to use any other lib

My goal is to track the URL layout, so I need to know
1. How do initially save the URL layout?
2. How do I compare the "original" saved layout, with the new "production up to date" layout and print the relevant diffs?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic