The interface / widget that would be used to interact with 'Click here to play' has been changed, so you'll have to wait for Alek to update the client. I expect it'll be fixed fairly quickly when he's online. Just be patient
I'd assume you could try searching for a widget based on the text you've entered into the search box, and then grab the position of said widget and interact with it accordingly.
It's possible the RS2Object call within your getState method is stopping it from running. Try with the script logged in. If that fixes it you could add a while loop to your onStart method that waits for the script to be logged in before your getState method is called