robot.model.itemlist
¶
ItemList
¶
Bases: MutableSequence[T]
List of items of a certain enforced type.
New items can be created using the :meth:create
method and existing items
added using the common list methods like :meth:append
or :meth:insert
.
In addition to the common type, items can have certain common and
automatically assigned attributes.
Starting from Robot Framework 6.1, items can be added as dictionaries and
actual items are generated based on them automatically. If the type has
a from_dict
class method, it is used, and otherwise dictionary data is
passed to the type as keyword arguments.
Source code in src/robot/model/itemlist.py
create
¶
to_dicts
¶
Return list of items converted to dictionaries.
Items are converted to dictionaries using the to_dict
method, if
they have it, or the built-in vars()
.
New in Robot Framework 6.1.