From 2518fca99dec899cc2357972b243622254bf8917 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 16 May 2023 13:10:04 +0200 Subject: [PATCH] wait a little between opening the tweet area and finding it --- bin/twitter.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/twitter.ml b/bin/twitter.ml index 706ca9e..9a0a761 100644 --- a/bin/twitter.ml +++ b/bin/twitter.ml @@ -151,6 +151,7 @@ let tweet ctx msg = else List.nth l 0 in click ctx.session_id tweet_button; + Unix.sleep 2; let tweet_area = match find ctx.session_id (CSS "div[data-testid='tweetTextarea_0']") with | [] -> raise (Any (fmt "Tweet area not found"))