Note: You are looking at a static snapshot of documentation related to Robot Framework automations. The most recent documentation is at https://robocorp.com/docs

Store the order receipt as a PDF file

Store the order receipt as a PDF file

${pdf}= Store the receipt as a PDF file ${row}[Order number]

Hints

  • You need to import an RPA Framework library that handles PDF files.
  • The keyword needs to take an argument (the order number - to be used in the file name to ensure a unique name) and return a result (the file system path to the PDF file).
  • The Beginners' course contains a chapter about this exact topic.
  • You want to store the PDF files inside the output directory (you can use subdirectories such as receipts inside the output dir if you like), since that location is supported by Control Room when it stores the process output artifacts. If you place stuff elsewhere, it will not end up in Control Room process output artifacts.
  • There is a runtime variable for the output directory path. Can you find it?
  • The directory path separator is operating-system-specific. There is a built-in variable for that separator.

Take a screenshot of the robot image

${screenshot}= Take a screenshot of the robot ${row}[Order number]

Hints

  • This is similar to the last keyword you implemented (takes an argument, returns a result).
  • You have a library you need already imported.

Embed the robot screenshot to the receipt PDF file

Embed the robot screenshot to the receipt PDF file ${screenshot} ${pdf}

Hints

  • You have the library you need already imported.
  • Before you can write to a PDF document, you need to open it for writing.
  • After writing to a PDF document, it is good to close it.

Go to order another robot

If you got this far, this might be pretty straightforward! You just have to click a button! Congratulations, you have successfully completed the iteration of order process.