Open pablodalma93 opened 7 years ago
Same here
@pablodalma93
Oh, i see.
Facebook now has the feature "one click login", which added a new page after login page instead of feed page.
just change the login def:
between: pass_element.send_keys(Keys.ENTER)
and try:
if self.find_element_by_class_name("bi"):
self.find_element_by_class_name("bp").click();
Hey @SaadeMotion , it would be awesome if you can provide a pull request with the fix for this issue! :)
Sure!
Done!
Thank you!
Doesn't work for me... I guess login through headless browsers is blocked by Facebook somehow, since I also had no luck with login through headless ChromeDriver.
Same for me, any advice ?
@OpSky No good advice… I end up writing my own Selenium script. At least it works.
adding this line:
time.sleep(3)
after
pass_element.send_keys(Keys.ENTER)
did job for me. Remember to add import time
at the beginning of the script
I'm trying FacebookWebBot from Python 3.4 with Selenium and PhantomJS installed. It just returns the message "Fail to login", checked the username and password are correct. Any ideas what could it be ? . I'm trying to check the error code in self.error_handler.dict and it returns empty dictionary