malefic 48 Posted October 21, 2009 Report Share Posted October 21, 2009 Okay, just bought Ubot (fantastic!) and hit a problem. On a page I get the male / female choice where I have to click a radio button - is there a quick way of making ubot randomly select one of those buttons? Cheers and apologies in advance - I may be back with more stupid questions as I explore Ubot some more! M. Quote Link to post Share on other sites
Guest luminus Posted October 22, 2009 Report Share Posted October 22, 2009 Here's a script that does exactly what you need. I used a simple $rand function to set a variable (#gender) equal to a random number between 1 and 3. Then I have an if function choosing the attribute for the male check box if $rand = 1 and choosing female if $rand = 2. Then click chosen! Download script: http://www.botsoftware/org/bots/gender.ubot http://www.botsoftware.org/bots/gender.png Quote Link to post Share on other sites
webautomationlab 21 Posted October 23, 2009 Report Share Posted October 23, 2009 What is gender 3? Hermaphrodite? Quote Link to post Share on other sites
Guest luminus Posted October 23, 2009 Report Share Posted October 23, 2009 Depends on the type of site you're making an account on.... Quote Link to post Share on other sites
malefic 48 Posted October 24, 2009 Author Report Share Posted October 24, 2009 Cheers luminus, just what I needed! 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.