ui5-community / wdi5

official UI5 end-to-end test framework for UI5 web-apps. wdi5 = Webdriver.IO + UI5 Test API
https://ui5-community.github.io/wdi5/
Apache License 2.0
102 stars 43 forks source link

Inner Analytic table in Smart Table couldn't be located #350

Closed ZhanJohnny closed 2 years ago

ZhanJohnny commented 2 years ago

Describe the bug I had a analytic table in smart table, and try to locate this analytic table by smart table id. it always return the column instead of analytic table

To Reproduce Steps to reproduce the behavior: XML view as below: image

UI5 inspector structure: image

WDI5 code & ascontrol result: image image

Expected behavior The analytic table should be located with ancestor ID

Logs/Console Output if applicable, please copypasta code-fenced log output, e.g.

$> ...

Screenshots if applicable, add screenshots to help explain your problem.

Runtime Env (please complete the following information):

Additional context Add any other context about the problem here, e.g. any options the target browser is started with like --headless or if the tests run in a CI environment

vobu commented 2 years ago

just out of curiosity, can you try adding interaction: "root" to the selector? https://ui5-community.github.io/wdi5/#/recipes?id=using-interaction-on-a-selector

ZhanJohnny commented 2 years ago

just out of curiosity, can you try adding interaction: "root" to the selector? https://ui5-community.github.io/wdi5/#/recipes?id=using-interaction-on-a-selector

Hi Vobu, Thanks, Adding interaction:root is working .