Created
July 20, 2021 01:06
-
-
Save righthandabacus/083b9346f4018e530054a8761cfac608 to your computer and use it in GitHub Desktop.
autocomplete NYC training
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function make_clicks() { | |
var x = document.evaluate( | |
"//div[@role='button' and contains(@id,'SmartShape_') and @class='cp-frameset']", | |
document, | |
null, | |
XPathResult.FIRST_ORDERED_NODE_TYPE, | |
null | |
).singleNodeValue; | |
if (x) { | |
x.click(); | |
} else { | |
console.log("Cannot find button. Ignored."); | |
}; | |
setTimeout(make_clicks, 3*1000); | |
}; | |
make_clicks(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment