Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var items = document.body.getElementsByTagName("*");
- for (var i = 0; i < items.length; ++i) {
- if (items[i].textContent == "the button text") {
- items[i].click();
- console.log("clicked", i)
- } else {
- console.log("loop",i)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement