Status: Accepted
Owner: pekka.klarck
CC: jussi.ao.malinen, janne.t.harkonen
Labels: Priority-Medium Type-Enhancement Target-2.5.5 depr bwic
New issue 732 by pekka.klarck: Make `Screenshot` library easier to use
(incl. new keywords `Take Screenshot` and `Take Screenshot Without
Embedding`)
http://code.google.com/p/robotframework/issues/detail?id=732
Now that Screenshot library supports Python (issue 692) we wanted to make
it easier to use. The main changes are listed below.
1) The default location where screenshots are saved was changed from the
system temporary directory to the directory where the log file is written.
This makes it easier to move the log without breaking the links to the
created screenshots. The change is slightly backwards-incompatible, but it
is easy to change the library import so that files are saved to temp again.
2) The location of the log file is looked up automatically. This makes it
always possible to create relative links to screenshots, which again helps
moving log files without breaking links. This also made
`log_file_directory` argument used in some places unnecessary and it was
deprecated.
3) New keywords `Take Screenshot` and `Take Screenshot Without Embedding`
were implemented. These keywords are both easier to use and more flexible
than the old ones. Old screenshot taking keywords are now considered
obsolete and they will be deprecated in RF 2.6.
- New Take Screenshot and Take Screenshot Without Embedding keywords were
added. These keywords should be used for taking screenshots in the future.
Other screenshot taking keywords will be deprecated and removed later.
Take Screenshot