Created by Wang, Jerry, last modified on Sep 09, 2013
implement interface Element
final WebUIElement annotation = this.getClass().getAnnotation(
WebUIElement.class);
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5SYlhjMhhTYxImYjdTYxcTOxMDN0gzMhJGO2kjZ1MmM38CX5d2bs92Yl1iclB3bsVmdlR2LcNWaw9CXt92Yu4GZjlGbh5yYjV3Lc9CX6MHc0RHaiojIsJye.png)
tagType = annotation.type();
hookTagType = annotation.hookTagType();
WebElement element = session.getSearchContext().findElement(by);