create stronger method for verifyTablePattern and new method verifyHtmlElement #2131

For #2131