Nitghwatch.js - assert.hidden only on part of the page
How can you apply "assert.hidden" (or any other statement / command for that matter) not to the "browser" but to a part of the page, for example. table?
So instead of:
browser.assert.hidden ('# whatever')
Can you do something like this?
('# table_id'). Assert.hidden ('# regardless of')
This suggestion does not work for me as it is above.
It is possible to write a custom command, but my question is whether it can be done directly.
+3
source to share
2 answers
I may be misunderstanding what you are asking .. but it looks like you could simply do:
browser.assert.hidden('#table_id #whatever')
At the end of the day, you are just using CSS selectors to validate the specific element you want to validate, and the browser is the root of all those elements.
0
source to share