Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTjpJ-0000xd-8A for pgadmin-hackers@arkaria.postgresql.org; Fri, 15 Jun 2018 08:11:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTjpG-0003Ga-NX for pgadmin-hackers@arkaria.postgresql.org; Fri, 15 Jun 2018 08:11:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTjpG-0003GQ-IH for pgadmin-hackers@lists.postgresql.org; Fri, 15 Jun 2018 08:11:18 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fTjp9-0007ks-J9 for pgadmin-hackers@postgresql.org; Fri, 15 Jun 2018 08:11:17 +0000 Received: by mail-wm0-x241.google.com with SMTP id 69-v6so2261660wmf.3 for ; Fri, 15 Jun 2018 01:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wIH/3x/1Q3MDL0bEQmnLC9BAjIxcVKy/dxheIIFZZ1Q=; b=jH6ASwywCQYh4TZ4yJtZQ/oHNpN2RslIbGZLYEFunZb+ILPdtQtCYK/oPgShNBCuES o8t4fKXxl9yYzqBlK6stxUTR4JPR3M+lVcyqFmPwLNgLGYDgU7xm5EWJixGqWf1tMc/u yyx3V2d2B+gQKYnIW+9e24JQ2gUcPQTPYEihVqsXrH3WAD/0wddRijyiAxn0usbcdUDv fbPTqVJZBhbfYTq0h1PRRC9KWS86uZfhwnNOefgzr0NpYgtqy2yrZyxpDxK7lwCQDPIq BOracsx9TUQkDkITeTSE948iuK8WFB3XiHZort+XTC8QD517n7S4CpEvN95C5Zmld0pV glnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wIH/3x/1Q3MDL0bEQmnLC9BAjIxcVKy/dxheIIFZZ1Q=; b=p5STjsLyXK5CEWwgBbdGwPp5+QJTq0im/cmpC9MnySrWl3ECMqZ6HRYXjL3dIlxlYV PQ03SGdT2cQUFvIEppQ0hRkn0DceObJHe+RjhqfH8uNkvTuInpQoafpCzNUQGtpqjFjt xlcBZ2ucKhvtfsP5pEAG81fL+FAGyLoxQHEShwrrRn4qXBTxbB9xZHYk0NdWFdCE23fk w2851eQIABhCKwcLe+I0TDau3Kv00zcRhAI+r48G3hVSh365xIjwJceS1/aNfADsmVTW +uVEZ6qmsbCiM9VxYBLV2iH4k9zmvCeNvdaep1YEqHfppwVkvaSAnvFaXJyup8hRHoUQ n52w== X-Gm-Message-State: APt69E0HRgAKmEiXmv4aSKvYa919n/ihplURLjdzIFyCENRWl8awstD+ ka39SeTtryxMqni6FDdp2fMUV2v/TBCYCj3yYBfv4FUv X-Google-Smtp-Source: ADUXVKLfV3F+32JLoPSIzSiYQsyeOQL2aDU/rCB5n/p92a1gpyRiMy0HZpdB6WltgpVK4+lUZoeiznipE/Pe4F5pOk8= X-Received: by 2002:a1c:992:: with SMTP id 140-v6mr431472wmj.86.1529050270010; Fri, 15 Jun 2018 01:11:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:2907:0:0:0:0:0 with HTTP; Fri, 15 Jun 2018 01:11:09 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 15 Jun 2018 09:11:09 +0100 Message-ID: Subject: Re: pgadmin_page functions updated To: Khushboo Vashi Cc: Shubham Agarwal , pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000003028ce056ea9c200" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000003028ce056ea9c200 Content-Type: text/plain; charset="UTF-8" On Fri, Jun 15, 2018 at 6:32 AM, Khushboo Vashi < khushboo.vashi@enterprisedb.com> wrote: > Hi Shubham, > > On Thu, Jun 14, 2018 at 3:25 PM, Shubham Agarwal < > shubham.agarwal@enterprisedb.com> wrote: > >> Hi Team, >> >> I have modified following two functions in pgadmin_page.py :- >> >> 1. click_tab() -> Added wait till element is clickable, test cases are >> failing since the function attempts to click the tab which is not yet in >> the state to be clicked. >> >> 2. add_server() -> Replaced the sleep statement with wait till element to >> be clickable. >> >> Please find the attached patch. >> >> We should start using CSS selectors instead of xpath, otherwise the patch > works fine and also changes look good to me. > Yes, and we should update files as and when we touch them as part of our ongoing refactoring. Shubham; please go through the files your patch touches, and replace any xpath selectors with CSS selectors. Aside from that, the patch looked to me too, and Pivotal's patch-bot seems happy with it. Thanks. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --0000000000003028ce056ea9c200 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Jun 15, 2018 at 6:32 AM, Khushboo Vashi <<= a href=3D"mailto:khushboo.vashi@enterprisedb.com" target=3D"_blank">khushbo= o.vashi@enterprisedb.com> wrote:
Hi Shubham,

On Thu, Jun 14, 2018 at 3:25 PM, Shub= ham Agarwal <shubham.agarwal@enterprisedb.com><= /span> wrote:
Hi Team,
I have modified following two functions in pgadmin_page.p= y :-

1. click_tab() -> Added wait till element = is clickable, test cases are failing since the function attempts to click t= he tab which is not yet in the state to be clicked.

2. add_server() -> Replaced the sleep statement with wait till element= to be clickable.=C2=A0

Please find the attached p= atch.

We should start using CSS selectors instead of xpath, otherwise the = patch works fine and also changes look good to me.
<= /blockquote>

Yes, and we should update files as and when= we touch them as part of our ongoing refactoring.

Shubham; please go through the files your patch touches, and replace any x= path selectors with CSS selectors.=C2=A0 Aside from that, the patch looked = to me too, and Pivotal's patch-bot seems happy with it.

<= /div>
Thanks.

--
Dave Page
Blog: http://pgsnake.blogspot.com=
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterpr= ise PostgreSQL Company
--0000000000003028ce056ea9c200--