jamesfar 15 Posted June 16, 2012 Report Share Posted June 16, 2012 How to write the node/nodes to check if a checkbox in a website page is already checked or not? Using scrape attribute? Please help Quote Link to post Share on other sites
JohnB 255 Posted June 16, 2012 Report Share Posted June 16, 2012 You don't really need to. If you drag in the checkbox and choose "checked", it won't uncheck it if it is already checked. John Quote Link to post Share on other sites
jamesfar 15 Posted June 17, 2012 Author Report Share Posted June 17, 2012 But that is not what i meant. I want to know the status of a checkbox. Is it already checked or unchecked. If it is already checked then bot will write its status to OK and if it is unchecked then bot will write its status to FAIL Please help Quote Link to post Share on other sites
Legend 181 Posted June 17, 2012 Report Share Posted June 17, 2012 Like this? ui check box("Checkbox", #checkbox)ui stat monitor("Checked?", #checkbox) or this? ui check box("Checkbox", #checkbox)ui stat monitor("Checked?", #status)if($comparison(#checkbox, "=", "true")) { then { set(#status, "OK", "Global") } else { set(#status, "FAIL", "Global") }} http://ubotstudio.com/forum/public/style_emoticons/default/huh.gif Quote Link to post Share on other sites
JohnB 255 Posted June 17, 2012 Report Share Posted June 17, 2012 You'll have to check the source of the page to see the status 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.