|How to verify that menu items contains a separator [message #1745649]
||Thu, 13 October 2016 23:39
| smaoui asma
Registered: July 2009
Location: Paris Saclay, France
I have a menu ( can not add assertion to it during record) and I would like to verify that the list of menuItems did not contain a separator.
I can check that some menuitem is a separator
//get-menu -path "..." | get-property "getParent().getItems().MenuItem.getStyle()" -raw | equals "[SEPARATOR]" | verify-true
but I would like to check if a seprator exist or not in the list of menuitems
get-menu -path "..." | get-property "getParent().getItems().getStyle()" -raw | to-list | contains "[SEPARATOR]" | verify-true
but this did not compile, no getStyle() property found for getitems().
Powered by FUDForum
. Page generated in 0.02983 seconds