Skip to main content

Web Dropdown Selection

Description

The Web Dropdown Selection step is used to select value of dropdown list on the web page for Legacy Web GUI.

Configurations

Field NameDescription
Web Browser NameYou 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
Criteria ValueRelevant criteria value must be specified.
Multiple elements with same criteriaCheck this option if there are multiple web elements in the web page having same criteria value you have specified. By default, it will be unchecked.
Element indexIf you have checked 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.
Select by*Method to select the dropdown value
Selection valueRelevant value needs to be specified for the method selected in Select by.
tip

Similarly, in Legacy Web Spy, the Select by and Selection value fields are available when you select Web DropDown Selection option in the Action field.

*Criteria The table below contains the description of criteria.

Field NameDescription
XpathXpath 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.
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.
NameName is another attribute of a web element which can be used to identify an element.
Link TextIf 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.
Partial Link textThe criteria is same as Link, just that, in this case, you can give partial string for finding a match.
Tag NameEvery HTML element has a tag associated with it. The element can be located using that tag name. For example, textbox has a tag <input>.
Class NameClass 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’.
Css SelectorThis 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”

*Select by The table below contains the description of each Select by methods.

Field NameDescription
IndexSuppose located dropdown has 3 options “A,B,C”, now if you want to select “A” give the index value as “0” and so on.
ValueEvery item in html dropdown has a value attribute associated with it. If the Value attribute of desired option is known select this option.
Visible TextVisible Text is the value of the option which user can see on the web page.