Log In instagram using facebook
hello,
I try to log into instagram using facebook, using Playwright. I am struggling with a pop up. Miss the right timing, accessing the "Allow all cookies" button.
https://www.loom.com/share/a50934922679402cb46ecf59b80d88f7
Loom
(2) Discord | #crawlee-js | Crawlee & Apify - 23 October 2024
I'm building an Instagram scraper for the first time and facing issues with logging in using Facebook. I've tried various approaches but haven't succeeded in clicking the necessary button. I need assistance in resolving this issue.

2 Replies
View post on community site
This post has been pushed to the community knowledgebase. Any replies in this thread will be synced to the community site.
Apify Community
absent-sapphire•6mo ago
@kirill Try clicking on this selector instead
Simple answer - you are using wrong selector, you are trying to click span that is not clickable.
Proper answer is too long, you would need to check how modern websites implement some of their buttons as in your case it's a div with button role what means clicking the span that you are trying to click won't trigger any event as it's role there to just contain text with some specific styles.
I didn't try to reproduce your code, but I'm more than sure that it will work. Let me know If I'm right.