Modified to add performance improvements by storing WebDriver WebElement and By locators

Signed-off-by: Daniel Koo <danieljamin.koo@gmail.com>