Hi Can you please use select class of selenium and use selectbyvalue Hope this wil help you.
Regards Pravesh. Sent from Samsung Mobile -------- Original message -------- From: Zyaad Gungapersad <[email protected]> Date: 22/09/2015 2:21 PM (GMT+05:30) To: 'JMeter Users List' <[email protected]> Subject: How to select value from dropdown list Hello Guys, I am quite new with using the Jmeter Selenium WebDriver. I am stuck with an issue regarding how to select an option from a drop down list. From the below, I need to select “AGENCY ONE”. Can someone please help me with the codes? <div class="col-xs-10 col-md-10 "> <span aria-activedescendant="ddlField1_option_selected" aria-busy="false" aria-readonly="false" aria-disabled="false" aria-owns="ddlField1_listbox" tabindex="0" aria-expanded="false" aria-haspopup="true" role="listbox" unselectable="on" class="k-widget k-dropdown k-header" style=""> <span unselectable="on" class="k-dropdown-wrap k-state-default"> <span unselectable="on" class="k-input">AGENCY ONE</span> <span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span> </span> </span> <input class="" style="display: none;" id="ddlField1" name="Field1" data-bind="source: AgenciesDropdownDataSource, value: AgencyId" data-value="-1" data-value-field="AgencyId" data-option-label="--Select--" required="" data-required-msg="Required" data-value-primitive="true" data-text-field="Name" data-role="dropdownlist"> <span style="display: none;" role="alert" data-for="Field1" class="form-control-feedback text-danger k-invalid-msg">Required <i class="fa fa-warning"></i></span> Your help will be much appreciated. Thank You. Kind Regards
