add ElementFactory.FindElement remove deuplicate code in index.html