From 7ec07906b701fd58d776f5a973cf79f4a883324b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Jul 2024 09:58:52 +0200 Subject: [PATCH] tweet button is no longer a div, it's now.. a button! --- bin/twitter.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/twitter.ml b/bin/twitter.ml index 599f10b..b67672c 100644 --- a/bin/twitter.ml +++ b/bin/twitter.ml @@ -146,7 +146,7 @@ let tweet ctx msg = send_keys ctx.session_id tweet_area msg; Unix.sleep 2; let send_tweet_button = - match find ctx.session_id (XPath "//div[@data-testid='tweetButtonInline']") with + match find ctx.session_id (XPath "//button[@data-testid='tweetButtonInline']") with | [] -> raise (Any (fmt "Tweet button not found")) | it :: [] -> it | _ -> raise (Any "Too many tweet button found")