jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zyaad Gungapersad" <zyaad.gungaper...@prodigious.mu>
Subject RE: How to select value from dropdown list
Date Tue, 22 Sep 2015 10:30:40 GMT
Hello Pravesh,

Can you please help with the Select Class in selenium? Can you please provide the steps?

<div class="col-xs-10 col-md-10 ">
<span class="k-widget k-dropdown k-header" style="" unselectable="on" role="listbox" aria-haspopup="true"
aria-expanded="false" tabindex="0" aria-owns="ddlField1_listbox" aria-disabled="false" aria-readonly="false"
aria-busy="false" aria-activedescendant="ddlField1_option_selected">
<span class="k-dropdown-wrap k-state-default" unselectable="on">
<span class="k-input" unselectable="on">AGENCY ONE</span>
<span class="k-select" unselectable="on">
<span class="k-icon k-i-arrow-s" unselectable="on">select</span>
</span>
</span>
<input id="ddlField1" class="" data-role="dropdownlist" data-text-field="Name" data-value-primitive="true"
data-required-msg="Required" required="" data-option-label="--Select--" data-value-field="AgencyId"
data-value="-1" data-bind="source: AgenciesDropdownDataSource, value: AgencyId" name="Field1"
style="display: none;">

I have copied the html again for ease of readability.

Thank You.
Kind Regards






-----Original Message-----
From: prajapati.pravesh [mailto:prajapati.pravesh@gmail.com] 
Sent: Tuesday, September 22, 2015 1:58 PM
To: JMeter Users List
Subject: RE: How to select value from dropdown list

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




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message