var btnAPScan = document.querySelector('input[id="repeater_ssid"][value="AP Scan"]');
You can also use the Macro Debugger (KM Wiki) to step through each Action in your Macro to determine where it fails.
If you still can't get it to work, please copy the entire web page HTML and paste here using the "html" tag:
How To Post Example Data
When you post example data, please put the data in a code block, between lines of triple backquotes: