Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

If at first you don't succeed, you are running about average.


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

SubjectAuthor
o Re: Selenium py3.8+ DepreciationWarnings - where to find doc toAkkana Peck

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

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: akkana@shallowsky.com (Akkana Peck)
Newsgroups: comp.lang.python
Subject: Re: Selenium py3.8+ DepreciationWarnings - where to find doc to
update code?
Date: Sat, 16 Oct 2021 10:02:39 -0600
Lines: 25
Message-ID: <mailman.977.1634400747.4164.python-list@python.org>
References: <741026852.124539.1634137897922@connect.xfinity.com>
<YWr3n/lAKbU8u3NS@shallowsky.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de yWu5MWqv7Ke2iRBBmF2wTgoQhzV6EOENrv79Jgm+uc1A==
Return-Path: <akkana@shallowsky.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.069
X-Spam-Evidence: '*H*': 0.87; '*S*': 0.01; 'subject:doc': 0.09;
'ubuntu': 0.09; 'writes:': 0.09; 'coding': 0.13; 'import': 0.15;
'deprecated,': 0.16; 'examples.': 0.16; 'received:71': 0.16;
'subject:code': 0.16; 'subject:update': 0.16; 'webdriver': 0.16;
'python': 0.16; 'api': 0.17; 'to:addr:python-list': 0.20; "i've":
0.22; 'code': 0.23; 'object': 0.26; '>>>': 0.28; 'header:User-
Agent:1': 0.30; 'skip:w 40': 0.32; 'but': 0.32; "i'm": 0.33;
'windows': 0.34; 'someone': 0.34; 'able': 0.34; 'skip:" 20': 0.34;
'header:In-Reply-To:1': 0.34; 'trying': 0.35; 'url-ip:104.17/16':
0.35; 'use': 0.39; 'reference': 0.60; 'pass': 0.64; 'service':
0.64; 'upgrade': 0.64; 'url:api': 0.84; 'driver': 0.84; 'subject:
\n ': 0.84; 'subject:Selenium': 0.84; 'subject:where': 0.84;
'url:common': 0.84; 'url:service': 0.84; 'subject:+ ': 0.91
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <741026852.124539.1634137897922@connect.xfinity.com>
User-Agent: Mutt/2.0.5 (2021-01-21)
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: <YWr3n/lAKbU8u3NS@shallowsky.com>
X-Mailman-Original-References: <741026852.124539.1634137897922@connect.xfinity.com>
 by: Akkana Peck - Sat, 16 Oct 2021 16:02 UTC

jkk writes:
> 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?

I've also been looking for that (Selenium 4.0.0a1, Python 3.9.5,
Ubuntu 21.04). For instance:

>>> from selenium import webdriver
>>> profiledir = "/path/to/profile/dir"
>>> driver = webdriver.Firefox(firefox_profile=profiledir)
<stdin>:1: DeprecationWarning: firefox_profile has been deprecated, please pass in a Service object

What is a Service object and how do you use it to pass in profiles?
I've found API references like
https://www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/Service.html
https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.common.service
but how do you create one, or use it to reference a specific profile?
I haven't been able to find any examples.

...Akkana


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor