tweet button is no longer a div, it's now.. a button!
Some checks failed
ci/woodpecker/push/publish Pipeline failed
Some checks failed
ci/woodpecker/push/publish Pipeline failed
This commit is contained in:
parent
a248399b23
commit
7ec07906b7
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue