Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26718177E2 for ; Tue, 22 Sep 2015 09:45:50 +0000 (UTC) Received: (qmail 96746 invoked by uid 500); 22 Sep 2015 09:45:49 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 96714 invoked by uid 500); 22 Sep 2015 09:45:49 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 96691 invoked by uid 99); 22 Sep 2015 09:45:49 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2015 09:45:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2E83D1A538D for ; Tue, 22 Sep 2015 09:45:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.194 X-Spam-Level: * X-Spam-Status: No, score=1.194 tagged_above=-999 required=6.31 tests=[KAM_LINEPADDING=1.2, RP_MATCHES_RCVD=-0.006, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rkFjS4QH-NZh for ; Tue, 22 Sep 2015 09:45:41 +0000 (UTC) Received: from mail.prodigious.mu (mail.prodigious.mu [196.192.3.235]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id E474724D7F for ; Tue, 22 Sep 2015 09:45:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.prodigious.mu (Postfix) with ESMTP id 100CE5F84B for ; Tue, 22 Sep 2015 13:45:31 +0400 (MUT) X-Virus-Scanned: Filtered by Prodigious MailDefense Received: from mail.prodigious.mu ([127.0.0.1]) by localhost (mail.prodigious.mu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UiAkYlNXfN70 for ; Tue, 22 Sep 2015 13:45:29 +0400 (MUT) Received: from ZYAADLAPTOP (zyaad-laptop.prodigious.mu [10.238.8.102]) (Authenticated sender: zyaad.gungapersad) by mail.prodigious.mu (Postfix) with ESMTPA id AD2B75F84A for ; Tue, 22 Sep 2015 13:45:29 +0400 (MUT) From: "Zyaad Gungapersad" To: "'JMeter Users List'" References: <018f01d0f513$e4a88ee0$adf9aca0$@prodigious.mu> In-Reply-To: Subject: RE: How to select value from dropdown list Date: Tue, 22 Sep 2015 13:45:16 +0400 Message-ID: <01a701d0f51b$62cf2890$286d79b0$@prodigious.mu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQHqcdMay6IouBC+FnM3IqHobXe7HwE/Q9PungtU8WA= Content-Language: en-us 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]=20 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=20 > with an issue regarding how to select an option from a drop down list. > > > > From the below, I need to select =E2=80=9CAGENCY ONE=E2=80=9D. Can = someone please help=20 > me with the codes? > > > >
> > aria-busy=3D"false" aria-readonly=3D"false" aria-disabled=3D"false" > aria-owns=3D"ddlField1_listbox" tabindex=3D"0" aria-expanded=3D"false" > aria-haspopup=3D"true" role=3D"listbox" unselectable=3D"on" = class=3D"k-widget=20 > k-dropdown k-header" style=3D""> > > k-state-default"> > > AGENCY = ONE > > unselectable=3D"on" class=3D"k-icon k-i-arrow-s">select > > > > > > data-bind=3D"source: AgenciesDropdownDataSource, value: AgencyId" > data-value=3D"-1" data-value-field=3D"AgencyId" = data-option-label=3D"--Select--" > required=3D"" data-required-msg=3D"Required" = data-value-primitive=3D"true" > data-text-field=3D"Name" data-role=3D"dropdownlist"> > > class=3D"form-control-feedback text-danger k-invalid-msg">Required class=3D"fa fa-warning"> > > > > > > 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