Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dmorokov opened this issue Mar 5, 2018 · 0 comments

Comments

@dmorokov
Copy link
Collaborator

dmorokov commented Mar 5, 2018

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant