Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'find_element_by_name' is it WebDriver issue #3

Closed
Wabungus43 opened this issue Jul 8, 2022 · 3 comments
Closed

'find_element_by_name' is it WebDriver issue #3

Wabungus43 opened this issue Jul 8, 2022 · 3 comments

Comments

@Wabungus43
Copy link

[WDM] - ====== WebDriver manager ======
2022-07-08 00:48:07,823 INFO ====== WebDriver manager ======
[WDM] - Current google-chrome version is 103.0.5060
2022-07-08 00:48:07,871 INFO Current google-chrome version is 103.0.5060
[WDM] - Get LATEST chromedriver version for 103.0.5060 google-chrome
2022-07-08 00:48:07,871 INFO Get LATEST chromedriver version for 103.0.5060 google-chrome
[WDM] - Driver [/home/wabungus123/.wdm/drivers/chromedriver/linux64/103.0.5060.53/chromedriver] found in cache
2022-07-08 00:48:07,997 INFO Driver [/home/wabungus123/.wdm/drivers/chromedriver/linux64/103.0.5060.53/chromedriver] found in cache
/home/wabungus123/Desktop/Discord-OTP-Forcer/src/main.py:15: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
driver = webdriver.Chrome(ChromeDriverManager().install())
Traceback (most recent call last):
File "/home/wabungus123/Desktop/Discord-OTP-Forcer/src/main.py", line 92, in
main()
File "/home/wabungus123/Desktop/Discord-OTP-Forcer/src/main.py", line 35, in main
loginEmail = driver.find_element_by_name("email")
AttributeError: 'WebDriver' object has no attribute 'find_element_by_name'

@Derpitron
Copy link
Owner

Hello! I Don't use linux, so I am not able debug this issue, sorry : ( Please see #1

@Wabungus43
Copy link
Author

so im trying to this all in windows right? and i get this error

C:\Users\pr0ga\Discord-OTP-Forcer\src\main.py:15: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
driver = webdriver.Chrome(ChromeDriverManager().install())
Traceback (most recent call last):
File "C:\Users\pr0ga\Discord-OTP-Forcer\src\main.py", line 92, in
main()
File "C:\Users\pr0ga\Discord-OTP-Forcer\src\main.py", line 35, in main
loginEmail = driver.find_element_by_name("email")
AttributeError: 'WebDriver' object has no attribute 'find_element_by_name'

i tried messing with the .env file, making the email and password lines match with the fine element or whatever, that didnt work ended with the same result. any ideas?

@SpaghettDev
Copy link

Try to install selenium version 4.1.5 by running this in you preferred shell.

pip uninstall selenium
pip install selenium==4.1.5

@Derpitron Derpitron closed this as not planned Won't fix, can't repro, duplicate, stale Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants