create stronger method for verifyTablePattern and new method verifyHtmlElement #2131

for #2131