charlesbel / Microsoft-Rewards-Farmer

A simple bot that uses selenium to farm Microsoft Rewards written in Python
MIT License
1.01k stars 267 forks source link

[BUG] 'find_element_by_name' #104

Closed JJ34D closed 1 year ago

JJ34D commented 2 years ago

Traceback (most recent call last): File "C:\Users\User\Downloads\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\ms_rewards_farmer.py", line 773, in login(browser, account['username'], account['password']) File "C:\Users\User\Downloads\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\ms_rewards_farmer.py", line 46, in login browser.find_element_by_name("loginfmt").send_keys(email) AttributeError: 'WebDriver' object has no attribute 'find_element_by_name'

Hikaru4v commented 2 years ago

You're using the wrong version of the web driver.

Try selenium 3.14.1 and also ensure you're using the appropriate chrome version for whatever you have downloaded on your PC

Also maybe try to pull updated project if you haven't done that in awhile?

sylvxa commented 2 years ago

You must have downloaded the GitHub release, you need to clone the latest instead. (for some reason the "release" uses find_element_by_name which no longer exists)

inverspe commented 2 years ago

You must have downloaded the GitHub release, you need to clone the latest instead. (for some reason the "release" uses find_element_by_name which no longer exists)

can you please tell how do i clone the latest release

Dangman368 commented 2 years ago

here you go: go to requirements.txt replace selenium with selenium==3.14.1 then do "pip uninstall -r requirements.txt" after everything uninstalls then do "pip install -r requirements.txt"

charlesbel commented 1 year ago

Fixed with v3.0 #188