Skip to content

@JTable based on cell = .//table//tr[{0}]/td[{1}] message format locator ignores single quotation marks (')  #198

Description

@dmorokov

@jtable(headers = @findby(css = ".public_fixedDataTable_header [class = 'cellContent']"),
root = @findby(css = ".fixedDataTableLayout_rowsContainer"),
cell = @findby(xpath = "((//
[contains(@Class, 'public_fixedDataTable_bodyRow')])[{0}]//*[contains(@Class, 'cellContent')])[{1}]"),
header = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"})
public Table table2;

See the log:

56:08.203 INFO: Get value for Cell 'Cell' (Table.Cell; By.cssSelector: .fixedDataTableLayout_rowsContainer; xpath='((//[contains(@Class, public_fixedDataTable_bodyRow)])[1]//[contains(@Class, cellContent)])[1]')

As you can see single quotation marks are ignored. In that case locator finds - HEAD HTML element

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions