Web Get Value
Description
The Web Get Value step allows you to retrieve text of any web element (including dropdown). The retrieved value will be stored in a field value. The step also allows multiple criteria to retrieve text of multiple web elements in Legacy Web GUI.
Configurations
| Field Name | Description |
|---|---|
| Web Browser Name | You can select any one Web Browser Name from the given list. Basically, you must select the same Web Browser Name which was selected in Start Browser Step. |
| Criteria* | Locate element on web page (including radio button and checkbox) |
| Criteria value | Relevant criteria value must be specified. |
| Element is dropdown | Select Yes or No based on element is dropdown or not. |
| Multiple elements with same criteria | Select Yes if there are multiple web elements in the web page having same criteria value you have specified, else select No. |
| Element index | If you have selected Yes for Multiple elements with same criteria, specify index of the element you want to locate. Select option FIRST if you want first element from the located element and select LAST if you want last element. |
| Output field name | Here you can define process studio output field in which retrieved value will be stored. |
| Fail If Error Occurs | Specify Yes, if you want to fail the step when an error occurs. Or Specify No, if you do not want to fail the step when an error occurs. Allow values: Yes, No. Default Value: Yes. |
| Default Value if Failed | Specify the default value or null value to be returned when no value is retrieved or any error occurs. This field ensures the process execution without interruption. Note: The field will be available only if the Do Not Fail is No. |
*Criteria The table below contains the description of criteria.
| No. | Field Name | Description |
|---|---|---|
| 1 | Xpath | Xpath defines the hierarchy of the tags through which you can reach to a particular element. For example /html/body/div[1]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div[2]/div[1]/div[1]/div[1]/span/span |
| 2 | Id | Id attribute of a web element can be best way to identify an element if it is present and is going to constant and unique. There are cases however when it is either absent or its value changes every time you access the application in the browser |
| 3 | Name | Name is another attribute of a web element which can be used to identify an element. |
| 4 | Link Text | If a HTML page contains a hyperlink element <a href=www.google.com>Search On Google</a>, you can identify this href element by providing complete text ‘Search On Google’ as the Link value. |
| 5 | Partial Link text | This criterion is same as Link, just that, in this case, you can give partial string for finding a match |
| 6 | Tag Name | Every HTML element has a tag associated with it. The element can be located using that tag name. For example, textbox has a tag <input>. |
| 7 | Class Name | Class name is the css class associated with an HTML element. If there is a div element <div class=’someclass’>MyDiv</div>, you can locate it by giving class name ‘someclass’. |
| 8 | Css Selector | This criterion is useful when an HTML element has multiple associated css classes. Consider an HTML element <div class="btn primary-btn submit"></div>. To identify this div element you can use Css selector as “.btn.primary-btn.submit” |