Skip to content

Design better table keywords #915

Closed
Closed

Description

@aaltat

I many times have a need to verify that table column contains something, but instead of using the existing keyword, I do not care about the order of column. It would be useful the check based on the column name that column contains the needed item.

Instead of this:

| Table Column Should Contain | xpath=//table | 3 | C |

I would like to do this:

| Wait Table Column To Contain | xpath://table | Column name in header or in first row | C |

Also with table row, I do not care about the row index, instead I know some cell values in the row and I would like to check other values are correct. Example I know the name and last name and I want to check to check user id.

Therefore instead of this:

| Table Row Should Contain | xpath=//table | 3 | C | 

I would like to do this:

| Wait Table Row To Contain | xpath://table | row_marker:name+lastname | values_to_verify:1234+address+role | 

Then the keyword would find row which contains name and lastname and then it would verify that the row contains 1234, address and role

Also because of the dynamic nature of the web pages, I do not want do plain asserts, I all ways want to wait some time if the things that I am verifying do appear in the table.

Activity

  1. aaltat commented on Sep 23, 2017

    @aaltat
    ContributorAuthor

    Before the can be done, we should improve the TableElementFinder, we have separate issue #914 to enhance it.

  2. aaltat commented on May 20, 2019

    @aaltat
    ContributorAuthor

    Most likely do not have time to work with this in the near future. Therefore closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions