findElementByTagName(driver, tagName) → {Object}
findElementByTagName
Parameters:
| Name | Type | Description | 
|---|---|---|
driver | 
                  Object | 
                     webdriver object of web browser.  | 
                
tagName | 
                  String | 
                     tagname of HTML element.  | 
                
Returns:
return a object of "webElement".
- Type
 - Object
 
Example
Examples usage of findElementByTagName by HTML element tagName
 findElementByTagName(driver, 'span').then((webElement) => {
   //After resolve promise We'll get the "webElement" object for HTML element whose "tagName" we pass.
   // Here 'span' is tag name of HTML element.
 }).catch((error) => {
   //handle error
 });