Pergunta

We have a PC for CSS coder, with 17 different browser versions. I wonder if it is possible to write an automated screenshot script.

The algorithm :

  1. Script gets the URL(s) to check.
  2. Script opens browser, takes screenshot, saves it and if required, scrolls down to make other screenshot(s), until the whole page is covered.

AutoIt's API is simple and Windows oriented. Using AutoIt, how do I:

  1. open a web-browser?
  2. pass an URL to it?
  3. make a screenshot and save it to filesystem?
  4. define if scrolling is required?
  5. to scroll page by monitor size (so the whole page gets covered)?
Foi útil?

Solução

At early stages of fairly complex scenarios (e.g. login -> go to a page -> click an item) you may want to look into Selenium! Documentation is translated to a few languages as well.

If your websites are not behind a firewall (i.e. production environment), Browsershots could work too. There are similar services (no affiliation) worth considering.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top