Robot Framework SeleniumLibrary
SeleniumLibrary.keywords.tableelement.TableElementKeywords Class Reference
Inheritance diagram for SeleniumLibrary.keywords.tableelement.TableElementKeywords:
SeleniumLibrary.base.librarycomponent.LibraryComponent SeleniumLibrary.base.context.ContextAware

Public Member Functions

def get_table_cell (self, locator, row, column, loglevel='TRACE')
 Returns contents of table cell. More...
 
def table_cell_should_contain (self, locator, row, column, expected, loglevel='TRACE')
 Verifies table cell contains text expected. More...
 
def table_column_should_contain (self, locator, column, expected, loglevel='TRACE')
 Verifies table column contains text expected. More...
 
def table_footer_should_contain (self, locator, expected, loglevel='TRACE')
 Verifies table footer contains text expected. More...
 
def table_header_should_contain (self, locator, expected, loglevel='TRACE')
 Verifies table header contains text expected. More...
 
def table_row_should_contain (self, locator, row, expected, loglevel='TRACE')
 Verifies that table row contains text expected. More...
 
def table_should_contain (self, locator, expected, loglevel='TRACE')
 Verifies table contains text expected. More...
 
- Public Member Functions inherited from SeleniumLibrary.base.librarycomponent.LibraryComponent
def assert_page_contains (self, locator, tag=None, message=None, loglevel='TRACE')
 
def assert_page_not_contains (self, locator, tag=None, message=None, loglevel='TRACE')
 
def debug (self, msg, html=False)
 
def get_timeout (self, timeout=None)
 
def info (self, msg, html=False)
 
def log (self, msg, level='INFO', html=False)
 
def log_source (self, loglevel='INFO')
 
def warn (self, msg, html=False)
 
- Public Member Functions inherited from SeleniumLibrary.base.context.ContextAware
def __init__ (self, ctx)
 Base class exposing attributes from the common context. More...
 
def find_element (self, locator, tag=None, required=True, parent=None)
 Find element matching locator. More...
 
def find_elements (self, locator, tag=None, parent=None)
 Find all elements matching locator. More...
 
def is_element_enabled (self, locator, tag=None)
 
def is_text_present (self, text)
 
def is_visible (self, locator)
 

Private Member Functions

def _find (self, table_locator, locator, content)
 
def _find_by_column (self, table_locator, col, content)
 
def _find_by_content (self, table_locator, content)
 
def _find_by_footer (self, table_locator, content)
 
def _find_by_header (self, table_locator, content)
 
def _find_by_row (self, table_locator, row, content)
 
def _get_cell (self, locator, row, column)
 
def _get_rows (self, locator, count)
 
def _index_to_position (self, index)
 

Additional Inherited Members

- Public Attributes inherited from SeleniumLibrary.base.context.ContextAware
 ctx
 
- Properties inherited from SeleniumLibrary.base.librarycomponent.LibraryComponent
 log_dir = property
 
- Properties inherited from SeleniumLibrary.base.context.ContextAware
 driver = property
 
 drivers = property
 
 element_finder = property
 

Detailed Description

Definition at line 20 of file tableelement.py.

Member Function Documentation

◆ _find()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._find (   self,
  table_locator,
  locator,
  content 
)
private

Definition at line 225 of file tableelement.py.

◆ _find_by_column()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._find_by_column (   self,
  table_locator,
  col,
  content 
)
private

Definition at line 210 of file tableelement.py.

◆ _find_by_content()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._find_by_content (   self,
  table_locator,
  content 
)
private

Definition at line 196 of file tableelement.py.

◆ _find_by_footer()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._find_by_footer (   self,
  table_locator,
  content 
)
private

Definition at line 202 of file tableelement.py.

◆ _find_by_header()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._find_by_header (   self,
  table_locator,
  content 
)
private

Definition at line 199 of file tableelement.py.

◆ _find_by_row()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._find_by_row (   self,
  table_locator,
  row,
  content 
)
private

Definition at line 205 of file tableelement.py.

◆ _get_cell()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._get_cell (   self,
  locator,
  row,
  column 
)
private

Definition at line 53 of file tableelement.py.

◆ _get_rows()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._get_rows (   self,
  locator,
  count 
)
private

Definition at line 68 of file tableelement.py.

◆ _index_to_position()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords._index_to_position (   self,
  index 
)
private

Definition at line 215 of file tableelement.py.

◆ get_table_cell()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords.get_table_cell (   self,
  locator,
  row,
  column,
  loglevel = 'TRACE' 
)

Returns contents of table cell.

    The table is located using the ``locator`` argument and its cell
    found using ``row`` and ``column``. See the `Locating elements`
    section for details about the locator syntax.

    Both row and column indexes start from 1, and header and footer
    rows are included in the count. It is possible to refer to rows
    and columns from the end by using negative indexes so that -1
    is the last row/column, -2 is the second last, and so on.

    All ``<th>`` and ``<td>`` elements anywhere in the table are
    considered to be cells.

    See `Page Should Contain` for explanation about the ``loglevel``
    argument.

Definition at line 40 of file tableelement.py.

◆ table_cell_should_contain()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords.table_cell_should_contain (   self,
  locator,
  row,
  column,
  expected,
  loglevel = 'TRACE' 
)

Verifies table cell contains text expected.

    See `Get Table Cell` that this keyword uses internally for
    explanation about accepted arguments.

Definition at line 84 of file tableelement.py.

◆ table_column_should_contain()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords.table_column_should_contain (   self,
  locator,
  column,
  expected,
  loglevel = 'TRACE' 
)

Verifies table column contains text expected.

    The table is located using the ``locator`` argument and its column
    found using ``column``. See the `Locating elements` section for
    details about the locator syntax.

    Column indexes start from 1. It is possible to refer to columns
    from the end by using negative indexes so that -1 is the last column,
    -2 is the second last, and so on.

    If a table contains cells that span multiple columns, those merged
    cells count as a single column.

    See `Page Should Contain Element` for explanation about the
    ``loglevel`` argument.

Definition at line 111 of file tableelement.py.

◆ table_footer_should_contain()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords.table_footer_should_contain (   self,
  locator,
  expected,
  loglevel = 'TRACE' 
)

Verifies table footer contains text expected.

    Any ``<td>`` element inside ``<tfoot>`` element is considered to
    be part of the footer.

    The table is located using the ``locator`` argument. See the
    `Locating elements` section for details about the locator syntax.

    See `Page Should Contain Element` for explanation about the
    ``loglevel`` argument.

Definition at line 130 of file tableelement.py.

◆ table_header_should_contain()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords.table_header_should_contain (   self,
  locator,
  expected,
  loglevel = 'TRACE' 
)

Verifies table header contains text expected.

    Any ``<th>`` element anywhere in the table is considered to be
    part of the header.

    The table is located using the ``locator`` argument. See the
    `Locating elements` section for details about the locator syntax.

    See `Page Should Contain Element` for explanation about the
    ``loglevel`` argument.

Definition at line 149 of file tableelement.py.

◆ table_row_should_contain()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords.table_row_should_contain (   self,
  locator,
  row,
  expected,
  loglevel = 'TRACE' 
)

Verifies that table row contains text expected.

    The table is located using the ``locator`` argument and its column
    found using ``column``. See the `Locating elements` section for
    details about the locator syntax.

    Row indexes start from 1. It is possible to refer to rows
    from the end by using negative indexes so that -1 is the last row,
    -2 is the second last, and so on.

    If a table contains cells that span multiple rows, a match
    only occurs for the uppermost row of those merged cells.

    See `Page Should Contain Element` for explanation about the
    ``loglevel`` argument.

Definition at line 173 of file tableelement.py.

◆ table_should_contain()

def SeleniumLibrary.keywords.tableelement.TableElementKeywords.table_should_contain (   self,
  locator,
  expected,
  loglevel = 'TRACE' 
)

Verifies table contains text expected.

    The table is located using the ``locator`` argument. See the
    `Locating elements` section for details about the locator syntax.

    See `Page Should Contain Element` for explanation about the
    ``loglevel`` argument.

Definition at line 189 of file tableelement.py.


The documentation for this class was generated from the following file: