Using find_element_by_id() in pycharm element error: deprecationwarning: find_element_by_* commands are deprecated.
Reason: Selenium uses version 4.0
Solution: instead of using version 4.0, use version 3.3.1.
How to Solve:
1. Uninstall selenium 4.0. Run CMD as an administrator, enter PIP uninstall selenium, and then enter y to confirm the deletion of selenium 4.0. After the deletion is successful, enter PIP install selenium = = 3.3.1 to specify the installation of version 3.3.1. Confirm that the installation is successful.
2. Delete selenium in pycharm. Open pycharm, select file, and then click settings.
3. Find selenium 4.0 and delete it. Select Python interpreter in settings, select selenium, and click the “-” sign to remove selenium.
4. Install selenium 3.3.1. Click the “+” sign, then enter selenium, search for selenium, check specify version, then select 3.3.1, then click Install Package, and wait for the installation to succeed.
Similar Posts:
- The problem of error reporting when importing openpyxl from Python has finally been solved
- Pycharm ImportError: No module named selenium [How to Solve]
- [Solved] Selenium Error: ElementClickInterceptedException
- [Solved] yarn Install Module Error:check python checking for Python executable “python2” in the PATH
- Error reporting of importing tensorflow package from pycharm
- Four ways to solve selenium’s error “element is not clickable at point…”
- [Solved] Appium Error: Message: Message: Parameters were incorrect. We wanted {“required”:[“value”]}
- [Solved] ImportError: No module named tensorflow
- Python compiles and installs under Linux and reports an error: makefile: 1141: install
- Pycharm Connect MySQL to Find Sheet Error: RuntimeError: ‘cryptography’ package is required for sha256_password or caching_sha2_password auth methods