arc323 2 Posted July 13, 2016 Report Share Posted July 13, 2016 Hey all, I'm trying to make my bot search for and install plugin from inside the wp dashboard. I need the bot to type text and press "enter" Can someone tell me which node to use and what to type into the node for this to happen? I search and saw another post but when i tried entering the code it said there was error. Can anyone answer this for me? Thanks! Quote Link to post Share on other sites
arc323 2 Posted July 13, 2016 Author Report Share Posted July 13, 2016 I've discovered that I can use the $newline function to press enter. Is there a better way or is this how I should continue to do this? Thanks! 1 Quote Link to post Share on other sites
deliter 203 Posted July 13, 2016 Report Share Posted July 13, 2016 Awesome solution if that works Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted July 14, 2016 Report Share Posted July 14, 2016 you can also use {ENTER} 1 Quote Link to post Share on other sites
arc323 2 Posted July 14, 2016 Author Report Share Posted July 14, 2016 you can also use {ENTER} I tried that (Windows command, right?) and it didn't work for me. In my research I've read that it's worked for others. Either way, thanks for your response. Cheers! Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 14, 2016 Report Share Posted July 14, 2016 I tried that (Windows command, right?) and it didn't work for me. In my research I've read that it's worked for others. Either way, thanks for your response. Cheers! Not a Windows command, he means to send it in the type text like so: navigate("http://www.bing.com/","Wait") wait for element(<name="q">,"","Appear") type text(<name="q">,"keyword","Standard") wait(0.1) type text(<name="q">,"\{ENTER\}","Standard") 2 Quote Link to post Share on other sites
deliter 203 Posted July 14, 2016 Report Share Posted July 14, 2016 bump for TJ/HelloInsomnia's tip to be added to the wiki,so annoyed I never knew that... Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted July 15, 2016 Report Share Posted July 15, 2016 {TAB}{DEL}{BKSP}{DELETE}are others that can be used. there's more but im tired atm. 2 Quote Link to post Share on other sites
uRobot 1 Posted July 18, 2016 Report Share Posted July 18, 2016 can you also do: CTRL+A ? CTRL+C CTRL+X ? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 18, 2016 Report Share Posted July 18, 2016 can you also do: CTRL+A ? CTRL+C CTRL+X ? You can typically use variables for copy/pasting things instead of those keyboard shortcuts. Quote Link to post Share on other sites
uRobot 1 Posted July 18, 2016 Report Share Posted July 18, 2016 Hey Nick, I am not copy/pasting just yet... I am not able to create a correct xpath of a text box area that I wanted to clear... (been trying for a couple of hours now)... it just won't clear the box... so I am trying a different approach. clicking on the box and selecting all (ctrl+a) and {DEL} to completely clear the box and clicking on the box again and start typing from a variable. Quote Link to post Share on other sites
arc323 2 Posted July 20, 2016 Author Report Share Posted July 20, 2016 Not a Windows command, he means to send it in the type text like so: navigate("http://www.bing.com/","Wait") wait for element(<name="q">,"","Appear") type text(<name="q">,"keyword","Standard") wait(0.1) type text(<name="q">,"\{ENTER\}","Standard") Thank you for this! Very cool! Quote Link to post Share on other sites
deliter 203 Posted July 20, 2016 Report Share Posted July 20, 2016 Hey Nick, I am not copy/pasting just yet... I am not able to create a correct xpath of a text box area that I wanted to clear... (been trying for a couple of hours now)... it just won't clear the box... so I am trying a different approach. clicking on the box and selecting all (ctrl+a) and {DEL} to completely clear the box and clicking on the box again and start typing from a variable. Post the probem your having in a different thread Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.