feat: add FacebookBot class to automate posting comments with images using uiautomator2

This commit is contained in:
Victor Phan
2026-07-23 15:31:35 +07:00
parent 85470b6c01
commit 8563309176
+1
View File
@@ -85,6 +85,7 @@ class FacebookBot:
if current_post_count == post_index: if current_post_count == post_index:
comment_btn = btn comment_btn = btn
break break
else:
logging.info(f"Đã thấy bài viết thứ {current_post_count}, đang đẩy nó vào góc khuất để tìm bài {post_index}...") logging.info(f"Đã thấy bài viết thứ {current_post_count}, đang đẩy nó vào góc khuất để tìm bài {post_index}...")
bounds = btn.info["bounds"] bounds = btn.info["bounds"]
start_y = bounds["bottom"] start_y = bounds["bottom"]