Hello Neill,
I have used the following code:
WDS.browser.findElement(pkg.By.xpath("(//span[contains(text(), 'AGENCY
ONE')])")).click()
It is not working. Is the above code correct?
Thanks
-----Original Message-----
From: Neill Lima [mailto:[email protected]]
Sent: Tuesday, September 22, 2015 1:08 PM
To: JMeter Users List
Subject: Re: How to select value from dropdown list
Does this work?
//span[contains(text(), "AGENCY ONE")]
On Tue, Sep 22, 2015 at 10:51 AM, Zyaad Gungapersad <
[email protected]> wrote:
> 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
>
> [image: EmailSig_Prodigious_Zyaad]
>
>
>
>
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]