Robot Framework Excel Library

2.0.1 · maintenance · verified Thu Apr 16

Robot Framework library for working with Excel documents, based on `openpyxl`. It provides keywords to allow opening, reading, writing, and saving Excel files within Robot Framework test automation. The current version is 2.0.1, with the latest release on June 18, 2020. The project appears to be in maintenance mode, with no recent development activity beyond the 2020 release.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to create a new Excel document, write data to cells, save it, and then open an existing document to read its contents using the `robotframework-excellib` keywords.

*** Settings ***
Library    ExcelLibrary

*** Test Cases ***
Create And Write Excel Document
    ${doc_id}=    Create Excel Document    doc_id=MyNewExcel
    Write Excel Cell    row_num=1    col_num=1    value=Hello
    Write Excel Cell    row_num=1    col_num=2    value=World
    Save Excel Document    filename=output.xlsx
    Close Current Excel Document

Read From Excel Document
    ${doc_id}=    Open Excel Document    filename=output.xlsx    doc_id=ExistingExcel
    ${cell_value}=    Read Excel Cell    row_num=1    col_num=1
    Should Be Equal As Strings    ${cell_value}    Hello
    Close Current Excel Document

view raw JSON →