tweet button is no longer a div, it's now.. a button!
Some checks failed
ci/woodpecker/push/publish Pipeline failed

This commit is contained in:
Mylloon 2024-07-11 09:58:52 +02:00
parent a248399b23
commit 7ec07906b7
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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")