WebDriver compare data/css between two pages
Hi All, In Web based project like implemented in CQ5 where we have to check same site for different country. For this we have to rollout/replicate some/all pages for different countries OR I can say downloaded/uploaded the production data in testing environment or vice versa. After this we have to validate page static data (like text) with production site Data, page wise validation. E.g. One page of US site and replicate the same page for another country then verify page content or css For this we have to check manually, we can automate the same. I assume both pages having same text content (English). Logic to implement this: • First we have to analyze page objects properties (what are the common page objects (elements) properties are being used) like class, id, type etc and create array of this. • Then we have to get all elements from the base page(expected) using xpath(//*) • For each element get all properties and value using java script and store only those element...