There is a problem of the following nature: in the framework of regression testing, go through the pages and check the layout. The difficulty is that the text content of the pages may be different, so just comparing images will not work.

  • Can I compare some of the parameters assigned to the page elements, their position and so on?
  • Or maybe there is another option?
  • one
    check the layout for what? - D-side
  • on compliance with some benchmark. - blindeStern
  • one
    ... by what characteristics? - D-side
  • Let's say that ideally the buttons should be located at a certain distance from each other, the side panel should be of the size of n pixels. What is the "ideal" we know, but how to check it automatically? - blindeStern
  • You describe in the question what are your formal criteria for checking the layout. Well, a couple of examples. - D-side

1 answer 1

Find the elements by means of Selenium, and then transfer them to the Javascript executed by the means of Selenium from here: http://javascript.ru/ui/offset

  • Thanks a lot! What you need. - blindeStern