I have the following code:
<div class="ui-multiselect-menu ui-widget ui-widget-content ui-corner-all ui-multiselect-single" style="width: 192px; top: 172px; left: 299.9px; display: none;">
how can i use verifyAttribute or any other command to validate that the style is display: none;
?
the xpath that I have is /html/body/div[3]
You have to match your style attribute with xpath contains, for example
//*[contains(@style,'display: none')]
this means any element which has display: none. you can further refine it like //div[contains(@style,'display: none')]
Better late then never...
Command: assertAttribute
Target: css=#div_id@style
Value: display: none
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With