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

[BUG] AttributeError: 'WebDriver' object has no attribute 'find_element_by_name'

Open Conirefle opened this issue 2 years ago • 4 comments

[LOGIN] Logging-in... [LOGIN] Writing email... Traceback (most recent call last): File "C:\Users\david\Desktop\Microsoft-Rewards-Farmer-master\ms_rewards_farmer.py", line 773, in login(browser, account['username'], account['password']) File "C:\Users\david\Desktop\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'

Some fix?

Conirefle avatar Jul 13 '22 12:07 Conirefle

This got fixed in the last commit, pull the latest changes and check if the problem still arises.

Power747XD avatar Jul 16 '22 20:07 Power747XD

After doing that it worked for a few days then stopped working again showing the same error.

proximitea avatar Jul 20 '22 02:07 proximitea

After doing that it worked for a few days then stopped working again showing the same error.

Someone fixed the bug you are having. It's already merged into source; the creator just need to re-release the update. Selenium depreciated the attribute "find_element_by_*"

PrinceJonaa avatar Aug 03 '22 16:08 PrinceJonaa

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 08:07 charlesbel