How to verify that menu items contains a separator [message #1745649] |
Thu, 13 October 2016 23:39 |
smaoui asma Messages: 50 Registered: July 2009 Location: Paris Saclay, France |
Member |
|
|
Hello,
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[3].getStyle()" -raw | equals "[SEPARATOR]" | verify-true
but I would like to check if a seprator exist or not in the list of menuitems
something like
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().
Thank you
|
|
|
Powered by
FUDForum. Page generated in 0.03237 seconds