Microsoft-Rewards-Farmer icon indicating copy to clipboard operation
Microsoft-Rewards-Farmer copied to clipboard

[BUG] 'find_element_by_name'

Open JJ34D opened this issue 2 years ago • 4 comments

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'

JJ34D avatar Aug 11 '22 02:08 JJ34D

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?

Hikaru4v avatar Aug 11 '22 09:08 Hikaru4v

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)

sylvxa avatar Aug 24 '22 16:08 sylvxa

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

inverspe avatar Sep 03 '22 14:09 inverspe

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"

Dangman368 avatar Sep 13 '22 16:09 Dangman368

Fixed with v3.0 #188

charlesbel avatar Jul 19 '23 09:07 charlesbel