Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var overflows = $x("//*[contains(@class,'icon-overflow_horizontal')]")
- var countNumber = 0;
- overflows.forEach((overflow) => {
- overflow.click()
- let overflowDelete = $x("//*[text()='delete']")
- overflowDelete[0].click()
- let deletePost = $x("//*[text()='Delete']") // change to "Delete post" if deleting posts
- deletePost[0].click()
- countNumber += 1
- console.log(countNumber)
- })
Advertisement
Add Comment
Please, Sign In to add comment