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.t...@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 -- https://mail.python.org/mailman/listinfo/python-list