[Bug] .clickHeaderSpecialLink() not finding tr th:nth-of-type(n) selector
nebc-jasonfung opened this issue · 3 comments
Actual behavior
Navigating to the 1st record in a standard list view datatable and getting the below error:
- Unable to compile a Page Object
- Invalid generated code
- Runtime error
What is your expected behavior?
It should find the special link within a table and proceed to click on it.
Steps to reproduce
Navigate yourself to any list view and attempt to click on the first record using the below code snippet produced by UTAM chrome extension:
await (await (await (await (await (await utam.load(ConsoleObjectHome)).getListView()).getListViewContainer(ListViewManagerGrid)).getInlineEditGrid()).getTable()).clickHeaderSpecialLink(1);
or
await (await (await (await utam.load(ConsoleObjectHome)).getListView()).getListViewContainer(VirtualDataTable)).clickHeaderSpecialLink(1);
Environment
- Node.js: v16.13.1
- OS: Mac OS
- Browser: Chrome
- Browser Version: 109.0.0
Additional context
UTAM chrome extension finds and highlights the special link correctly.
Keen to join the UTAM support slack channel, my email address is: jasonf@nebulaconsulting.co.uk
@nebc-jasonfung , Jason, invite was sent to jasonf@nebulaconsulting.co.uk. Take care from your side and join the channel
Hi @nebc-jasonfung It appears the usage could be getListViewContainer(ListViewManagerPrimaryDisplayManager)).getManagerGrid().getInlineEditGrid()).getTable()).clickHeaderSpecialLink(1);
However it could be possible I am looking at different page structure. I am happy to assist on slack if you can share the hierarchy/page structure inside the ListViewContainer element.
Issue resolved - this was down to the UTAM chrome extension surfacing the incorrect method:
correct route should be, getListViewContainer(ListViewManagerPrimaryDisplayManager)).getManagerGrid().getInlineEditGrid()).getTable()).clickCellSpecialLink(1);
See external-utam-support slack thread for more details.