facebook-post-scraper icon indicating copy to clipboard operation
facebook-post-scraper copied to clipboard

Unable to locate element:

Open enriquelpz23 opened this issue 4 years ago • 2 comments

I'm having this error:

NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="loginbutton"]"} (Session info: chrome=85.0.4183.83)

Any advice?

enriquelpz23 avatar Sep 03 '20 16:09 enriquelpz23

change at scraper.py this line: browser.find_element_by_id(loginbutton').click() to this browser.find_element_by_id('u_0_b').click()

futur3gho5t avatar Sep 13 '20 13:09 futur3gho5t

change at scraper.py this line: browser.find_element_by_id(loginbutton').click() to this browser.find_element_by_id('u_0_b').click()

the id changes continuously so you can use 'browser.find_element_by_name('login').click()' but this is depricated too. The whole script need to be updated.

KlevisImeri avatar Sep 10 '23 17:09 KlevisImeri