Added support for checking if an element is in the dom and is visible, or not visible

Supporting SeleniumIDE functions 'waitForNotVisible' and 'waitForVisible'