moved all selenium related stuff to a TestRule and add screenshot capture on test failure