Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If God had a beard, he'd be a UNIX programmer.


devel / comp.lang.python / Re: Selenium py3.8+ DepreciationWarnings - where to find doc to update code?

SubjectAuthor
* Selenium py3.8+ DepreciationWarnings - where to find doc to updatejkk
`* Re: Selenium py3.8+ DepreciationWarnings - where to find doc toTony Oliver
 `- Re: Selenium py3.8+ DepreciationWarnings - where to find doc tojkk

1
Selenium py3.8+ DepreciationWarnings - where to find doc to update code?

<mailman.964.1634138192.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=15622&group=comp.lang.python#15622

  copy link   Newsgroups: comp.lang.python
Path: rocksolid2!i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: jkex...@comcast.net (jkk)
Newsgroups: comp.lang.python
Subject: Selenium py3.8+ DepreciationWarnings - where to find doc to update
code?
Date: Wed, 13 Oct 2021 11:11:37 -0400 (EDT)
Lines: 26
Message-ID: <mailman.964.1634138192.4164.python-list@python.org>
References: <741026852.124539.1634137897922@connect.xfinity.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de MZx3CuinorjTRv7U7yMO3ADAY4q1RV0o/h/gHzNp5DZQ==
Return-Path: <jkexcel@comcast.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=comcast.net header.i=@comcast.net header.b=scEDZOkN;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.039
X-Spam-Evidence: '*H*': 0.93; '*S*': 0.01; 'received:comcast.net':
0.07; 'subject:doc': 0.09; 'ubuntu': 0.09; 'coding': 0.13;
'import': 0.15; 'from:addr:comcast.net': 0.16; 'received:69.252':
0.16; 'received:69.252.207': 0.16; 'received:96': 0.16;
'received:sys.comcast.net': 0.16; 'subject:code': 0.16;
'subject:update': 0.16; 'webdriver': 0.16; 'python': 0.16;
'to:addr:python-list': 0.20; 'code': 0.23; 'to:name:python-
list@python.org': 0.24; 'example,': 0.28; "i'm": 0.33; 'windows':
0.34; 'someone': 0.34; 'skip:" 20': 0.34; 'trying': 0.35; 'skip:b
30': 0.61; 'here': 0.62; 'skip:b 10': 0.63; 'browser': 0.64;
'upgrade': 0.64; 'skip:b 40': 0.69; 'subject: \n ': 0.84;
'subject:Selenium': 0.84; 'subject:where': 0.84; 'tables': 0.84;
'subject:+ ': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
s=20190202a; t=1634137898;
bh=fELeKhNYgMxQ7aAQ1OzvzUUM0FP0YU1tLeWF5PcpGmU=;
h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version:
Content-Type;
b=scEDZOkNfbgFzMbtI1NCAKErJulHdsW4wSdRLCD7Emo4pOp3DT6lvDt7dcJajmthX
TSqgwc0RwarXXoyDIQbC7CnGK/5tWgVg1UlCJY+CbF9ILd9t8vW164+VjsBGQjGSCZ
IYZLieLzhiNQqBa0vSW6/841jYazt7JXRuUX43eERgFwLmx393D4mH38ZkBbpZbo0I
LXGU1nki8VdW9yiMniLgVUnrg2I9gAFw7y1wC6ASze5wiQv7bW1nTmNuzyBD4yq1Pq
UyvO/mlLJYsSOmhV7QHDWQOqt3UyWScCLId0fbp28VuFCfuxTvSBv6AVX2v5z6QwlW
yJ6TCO0FB+gCw==
X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvtddrvddutddgkeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucenucfjughrpeffhffvkffugggtrfgkofhisegrtdgssgertdejnecuhfhrohhmpehjkhhkuceojhhkvgigtggvlhestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnheptdeuheeikeehiefhfefhvedtheejgfehleeguefhgedugffhjedthfdvkeevvdefnecuffhomhgrihhnpegtohhmmhhonhdrsgihnecukfhppeeliedrudduhedrvddvgedrudegledpleekrddvvdelrddvfeefrddvvdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepohigrghpphdqrghsugdqgeejohdrvghmrghilhdrtghomhgtrghsthdrnhgvthdpihhnvghtpeeliedrudduhedrvddvgedrudegledpmhgrihhlfhhrohhmpehjkhgvgigtvghlsegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepphihthhhohhnqdhlihhsthesphihthhhohhnrdhorhhg
X-Xfinity-VMeta: sc=0.00;st=legit
X-Priority: 3
Importance: Normal
X-Mailer: Open-Xchange Mailer v7.10.3-Rev18
X-Originating-IP: ::ffff:98.229.233.228
X-Originating-Client: open-xchange-appsuite
X-Content-Filtered-By: Mailman/MimeDel 2.1.34
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <741026852.124539.1634137897922@connect.xfinity.com>
 by: jkk - Wed, 13 Oct 2021 15:11 UTC

Selenium 3.141+
python 3.8+
ubuntu 20.04 or windows 10

I'm trying to upgrade code from py3.6+ to py3.8+ and I'm getting several DepreciationWarnings.

Can someone point me to where I can find the documentation that explains how to to remedy these warnings. What are the new preferred coding practices?

For example, here is a "DepreciationWarning" that I figured out:

py3.6+
from selenium import webdriver
browser = browser = webdriver.Firefox()
browser.get(url)
tables = browser.find_elements_by_tag_name("table")

py3.8+
from selenium import webdriver
from selenium.webdriver.common.by import By
browser = browser = webdriver.Firefox()
browser.get(url)
tables = browser.find_elements(By.TAG_NAME, "table")
or
tables = browser.find_elements(By.XPATH, "//table")

Re: Selenium py3.8+ DepreciationWarnings - where to find doc to update code?

<a46a5949-b69e-4d38-be0a-eecc60263cacn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=15630&group=comp.lang.python#15630

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:ac8:430e:: with SMTP id z14mr2305467qtm.208.1634163601652;
Wed, 13 Oct 2021 15:20:01 -0700 (PDT)
X-Received: by 2002:a05:6214:226c:: with SMTP id gs12mr1865607qvb.58.1634163601435;
Wed, 13 Oct 2021 15:20:01 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Wed, 13 Oct 2021 15:20:01 -0700 (PDT)
In-Reply-To: <mailman.964.1634138192.4164.python-list@python.org>
Injection-Info: google-groups.googlegroups.com; posting-host=62.249.217.89; posting-account=FHqkeAoAAACbOpBCHa7K6JTmToKlWNDp
NNTP-Posting-Host: 62.249.217.89
References: <741026852.124539.1634137897922@connect.xfinity.com> <mailman.964.1634138192.4164.python-list@python.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a46a5949-b69e-4d38-be0a-eecc60263cacn@googlegroups.com>
Subject: Re: Selenium py3.8+ DepreciationWarnings - where to find doc to
update code?
From: guinness...@gmail.com (Tony Oliver)
Injection-Date: Wed, 13 Oct 2021 22:20:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 34
 by: Tony Oliver - Wed, 13 Oct 2021 22:20 UTC

On Wednesday, 13 October 2021 at 16:16:46 UTC+1, jkk wrote:
> Selenium 3.141+
> python 3.8+
> ubuntu 20.04 or windows 10
>
> I'm trying to upgrade code from py3.6+ to py3.8+ and I'm getting several DepreciationWarnings.
>
> Can someone point me to where I can find the documentation that explains how to to remedy these warnings. What are the new preferred coding practices?
>
> For example, here is a "DepreciationWarning" that I figured out:
>
> py3.6+
> from selenium import webdriver
> browser = browser = webdriver.Firefox()
> browser.get(url)
> tables = browser.find_elements_by_tag_name("table")
>
>
> py3.8+
> from selenium import webdriver
> from selenium.webdriver.common.by import By
> browser = browser = webdriver.Firefox()
> browser.get(url)
> tables = browser.find_elements(By.TAG_NAME, "table")
> or
> tables = browser.find_elements(By.XPATH, "//table")

I cannot help you with your immediate problem but am intrigued to discover what your “browser = browser = <expression>“ idiom does that differs from “browser = <expression>“.

Re: Selenium py3.8+ DepreciationWarnings - where to find doc to update code?

<mailman.972.1634226027.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=15634&group=comp.lang.python#15634

  copy link   Newsgroups: comp.lang.python
Path: rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: jkex...@comcast.net (jkk)
Newsgroups: comp.lang.python
Subject: Re: Selenium py3.8+ DepreciationWarnings - where to find doc to
update code?
Date: Thu, 14 Oct 2021 11:32:52 -0400 (EDT)
Lines: 44
Message-ID: <mailman.972.1634226027.4164.python-list@python.org>
References: <741026852.124539.1634137897922@connect.xfinity.com>
<mailman.964.1634138192.4164.python-list@python.org>
<a46a5949-b69e-4d38-be0a-eecc60263cacn@googlegroups.com>
<734674167.71870.1634225573047@connect.xfinity.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de RjsH0Lrpi71II428lVXGMAduCw5vAoCD2zs6OSzZU4lg==
Return-Path: <jkexcel@comcast.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=comcast.net header.i=@comcast.net header.b=hCma/q5f;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.013
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'disregard': 0.04; 'knows':
0.04; 'received:comcast.net': 0.07; 'subject:doc': 0.09; 'ubuntu':
0.09; 'coding': 0.13; 'import': 0.15; 'url:mailman': 0.15;
'from:addr:comcast.net': 0.16; 'idiom': 0.16; 'received:69.252':
0.16; 'received:69.252.207': 0.16; 'received:96': 0.16; 'received
:resqmta-ch2-02v.sys.comcast.net': 0.16;
'received:sys.comcast.net': 0.16; 'sorry,': 0.16; 'subject:code':
0.16; 'subject:update': 0.16; 'typo.': 0.16; 'webdriver': 0.16;
'wrote:': 0.16; 'problem': 0.16; 'python': 0.16; 'october': 0.17;
'to:addr:python-list': 0.20; 'code': 0.23; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cannot': 0.25; 'url-ip:188.166/16': 0.25;
'again,': 0.26; 'wednesday,': 0.26; 'example,': 0.28; 'url-
ip:188/8': 0.31; 'but': 0.32; "i'm": 0.33; 'windows': 0.34;
'someone': 0.34; 'skip:" 20': 0.34; 'header:In-Reply-To:1': 0.34;
'trying': 0.35; 'skip:b 30': 0.61; 'here': 0.62; 'simply': 0.63;
'skip:b 10': 0.63; 'browser': 0.64; 'upgrade': 0.64; 'your': 0.64;
'header:Received:6': 0.67; 'skip:b 40': 0.69; '\xe2\x80\x9c':
0.69; '2021': 0.71; 'discover': 0.80; 'oliver': 0.84; 'subject: \n
': 0.84; 'subject:Selenium': 0.84; 'subject:where': 0.84;
'tables': 0.84; 'tony': 0.84; 'subject:+ ': 0.91; 'immediate':
0.97
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
s=20190202a; t=1634225733;
bh=hJJcyH8njVXqTZnP3Yc+uHUbB9ORGQDC+qDCukQ2RoA=;
h=Received:Received:Received:Received:Date:From:To:Message-ID:
Subject:MIME-Version:Content-Type;
b=hCma/q5f1HB3a59XFd/1Bhphlns+3HKP1XoJ76cFLcfr1OB8EwPuzfK48ccRBx/R+
KTADapvD15qqxBXtmpefavh5sz82OsNcZJLK+OBVi9vXOU1Fxi4Mx86cLKKpHBYsvP
1RVa8pxqyawF3P22zB3vETiaS4fIVCB1bWfr45blFC5qAjr63d7nYCUSiPpEaW/0ct
oC0fKnptWisPBtw9GKnvbs+i7Wuabv6qZ1h4T1T+E4qjGzojmwM/6OTRRv/UTxItIu
INW8stMDPNiYGbX/p1rRICFU/TVfV/rvV+jGIyfc0KvBleqOR3/YTkdz3eNlVJFEkO
1HHNxJcuKPtIw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
s=20190202a; t=1634225576;
bh=hJJcyH8njVXqTZnP3Yc+uHUbB9ORGQDC+qDCukQ2RoA=;
h=Received:Received:Received:Date:From:To:Message-ID:Subject:
MIME-Version:Content-Type;
b=asWQrSqbbjAlOr+Gep99SjrXU2hu7GeqcQhddMv0ko1Sn16GfnBmDncBmnV3OpZ91
KHtE92jTl8XZM3eVMsSZ3dnnmwfIeRP7J7o5Si2F5A/xYTIiU9VKf9Y5wFch3rmWAM
GF/3qb+WS2tTtaXV1k4rgAdXIcGIqlpCAFYV5T7A0scw4rwfZCG17CwnmOYBgSgyeN
JH7DQxgjz0gJEsNWFVMS2HuRynCFHDrHzj5nfTSDxf9C6XUBevtkZbO6whcMalwznn
O0XdYB+kXQpEZxOtDjDUDKM5cn5dZWWZK5z5k5Jzbg/WqhuyjBT5bBW5J0s6BJiEgQ
j7x5n5Mbyun2A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
s=20190202a; t=1634225576;
bh=hJJcyH8njVXqTZnP3Yc+uHUbB9ORGQDC+qDCukQ2RoA=;
h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version:
Content-Type;
b=g8ke3zN5UsU2dPhsA5Pt4isSqd1NnZuvRCXqWkq5kIeyy+SyGJqAxOqblmB1boFcA
hmisMQ73ss25Vp6yOWqDKP6Da//jZGw3mBzdVGG2izSlNmTZE7C3M9ku067WjD7pu1
Wp41NhSnvnosjoplJNZhfx491BkYrVg3sFmtEu1/WlXS3JI/H/MWXmylcsei5FoPx5
eBKJUZmG6OBDKMk27xdfAJWeOchDFbni8s+/RfnAZ7VrUT4NmCZYZF2MfalnxfnBKa
jxaRnRDWKfQzcrRn3v94qZfHTMv3SfsU8FfKSGlmZgAfhm+OfQcVnV9hpSqADpXN8x
HMADLv1hgvvbQ==
X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvtddrvdduvddgkeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucenucfjughrpeffhffvkfgjfhfugggtgffrkgfoihesthhqsgdtredtjeenucfhrhhomhepjhhkkhcuoehjkhgvgigtvghlsegtohhmtggrshhtrdhnvghtqeenucggtffrrghtthgvrhhnpeettedvteeuveegvdelfeetueeigeffkeeuueeiueevgfduieffveeftdeuvefgudenucffohhmrghinheptghomhhmohhnrdgshidpphihthhhohhnrdhorhhgnecukfhppeeliedruddukedrvdduledrvdefiedpleekrddvvdelrddvfeefrddvvdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepohigrghpphdqrghstgdqfedvohdrvghmrghilhdrtghomhgtrghsthdrnhgvthdpihhnvghtpeeliedruddukedrvdduledrvdefiedpmhgrihhlfhhrohhmpehjkhgvgigtvghlsegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepghhuihhnnhgvshhsrdhtohhnhiesghhmrghilhdrtghomhdprhgtphhtthhopehphihthhhonhdqlhhishhtsehphihthhhonhdrohhrgh
X-Xfinity-VMeta: sc=0.00;st=legit
In-Reply-To: <a46a5949-b69e-4d38-be0a-eecc60263cacn@googlegroups.com>
X-Priority: 3
Importance: Normal
X-Mailer: Open-Xchange Mailer v7.10.3-Rev18
X-Originating-IP: ::ffff:98.229.233.228
X-Originating-Client: open-xchange-appsuite
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <734674167.71870.1634225573047@connect.xfinity.com>
X-Mailman-Original-References: <741026852.124539.1634137897922@connect.xfinity.com>
<mailman.964.1634138192.4164.python-list@python.org>
<a46a5949-b69e-4d38-be0a-eecc60263cacn@googlegroups.com>
 by: jkk - Thu, 14 Oct 2021 15:32 UTC

Sorry, this was simply a typo. Disregard the first "browser = "

Again, I'm hoping someone knows where to find "best coding practices" for newer versions of python 3.8+

> On 10/13/2021 6:20 PM Tony Oliver <guinness.tony@gmail.com> wrote:
>
>
> On Wednesday, 13 October 2021 at 16:16:46 UTC+1, jkk wrote:
> > Selenium 3.141+
> > python 3.8+
> > ubuntu 20.04 or windows 10
> >
> > I'm trying to upgrade code from py3.6+ to py3.8+ and I'm getting several DepreciationWarnings.
> >
> > Can someone point me to where I can find the documentation that explains how to to remedy these warnings. What are the new preferred coding practices?
> >
> > For example, here is a "DepreciationWarning" that I figured out:
> >
> > py3.6+
> > from selenium import webdriver
> > browser = browser = webdriver.Firefox()
> > browser.get(url)
> > tables = browser.find_elements_by_tag_name("table")
> >
> >
> > py3.8+
> > from selenium import webdriver
> > from selenium.webdriver.common.by import By
> > browser = browser = webdriver.Firefox()
> > browser.get(url)
> > tables = browser.find_elements(By.TAG_NAME, "table")
> > or
> > tables = browser.find_elements(By.XPATH, "//table")
>
> I cannot help you with your immediate problem but am intrigued to discover what your “browser = browser = <expression>“ idiom does that differs from “browser = <expression>“.
> --
> https://mail.python.org/mailman/listinfo/python-list

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor