question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: Deprecation warning

See original GitHub issue

What happened?

Hello, i was parsing some html with PYTHON. Ive encountered some warning. Actually my parser is working good, bu in terminal, suggests to change them to newers. And it is same on documentation. First ive done it by documentation but, tried some code of older posts in web. So

What browsers and operating systems are you seeing the problem on?

windows 10, chrome browser 102.0.5005.63.

How can we reproduce the issue?

(Altough im not sure if im doing sth wrong but...)
When i follow the instructions on the terminal, it DOES NOT work.
I am using selenium 4.2.0.
using webdriver as chromedriver.

Relevant log output

these are the lines on terminal

...in.py:11: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
username = driver.find_element_by_id('username')

...in.py:13: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
password = driver.find_element_by_id('password')

...in.py:15: DeprecationWarning: find_element_by_class_name is deprecated. Please use find_element(by=By.CLASS_NAME, value=name) instead

Operating System

Windows 10

Selenium version

4.2.0

What are the browser(s) and version(s) where you see this issue?

chrome

What are the browser driver(s) and version(s) where you see this issue?

chrome browser 102.0.5005.63.

Are you using Selenium Grid?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
symonkcommented, Jun 3, 2022

you need to import:

from selenium.webdriver.common.by import By
0reactions
github-actions[bot]commented, Jul 4, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I fixed DeprecationWarning: Call to deprecated error
A DeprecationWarning typically means your usage is no-longer-recommended because of changes in the library code's design. While the 'deprecation ...
Read more >
Bug #1958629 “Deprecation warnings about Proc.new”
The fatal error is expected because we are not passing any config file to r10k but all the warnings should go away.
Read more >
Deprecation warning that cannot show where created #140848
Issue Type: Bug Run code and go to the "output > log (Window)" panel. The following warning appears: [2022-01-17 10:49:37.284] [renderer9] ...
Read more >
Fix deprecation warning in testing/raptor/test/test_utils.py
Usually the fix for this warning is to replace yaml.load() with yaml.safe_load(), but in this case the file written by the code under...
Read more >
DeprecationWarning - Seed.run
DeprecationWarning errors are logged by the Node.js runtime when your code (or one of the dependencies in your code) calls a deprecated API....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found