jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "prajapati.pravesh" <prajapati.prav...@gmail.com>
Subject RE: How to select value from dropdown list
Date Tue, 22 Sep 2015 09:57:53 GMT
Can you please try with select class in selenium


Sent from Samsung Mobile

-------- Original message --------
From: Zyaad Gungapersad <zyaad.gungapersad@prodigious.mu> 
Date: 22/09/2015  3:15 PM  (GMT+05:30) 
To: 'JMeter Users List' <user@jmeter.apache.org> 
Subject: RE: How to select value from dropdown list 
 

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:neillfontes@gmail.com] 
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 < zyaad.gungapersad@prodigious.mu>
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: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message