문제

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)?
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top