Tables
Interactions with table
tag.
Reading the element
Getting the right element class for the xpath
Try to get a TableElement
Reference
Get the headers values
Get the rows values
Output
[['Alfreds Futterkiste', 'Maria Anders', 'Germany'],
['Centro comercial Moctezuma', 'Francisco Chang', 'Mexico'],
...]
Get all values from one column, by column name
Get all values from one column, by column index
Check if a value exists in one of the table cells
Print the table in console
Extra needed!
To use this method, you need to install the debug extras, as shown here, with the command pip install "fastrpa[debug]"
.
Output
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
┃ Company ┃ Contact ┃ Country ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
│ Alfreds Futterkiste │ Maria Anders │ Germany │
│ Centro comercial Moctezuma │ Francisco Chang │ Mexico │
│ Ernst Handel │ Roland Mendel │ Austria │
│ Island Trading │ Helen Bennett │ UK │
│ Laughing Bacchus Winecellars │ Yoshi Tannamuri │ Canada │
│ Magazzini Alimentari Riuniti │ Giovanni Rovelli │ Italy │
└──────────────────────────────┴──────────────────┴─────────┘