First off, a checkbox is a select element. That is why you can manipulate it with <select> functions.
Can you try it using another attribute of the checkbox element to identify it? (id attribute or name attribute). That will tell is whether or not it's the xpath that is causing the problems. Kelcy Monday dtops <[email protected]> Sent by: [email protected] 07/07/2009 01:10 PM Please respond to [email protected] To [email protected] cc Subject Re: [Webtest] setCheckbox problem need help... Sorry about adding the xml. Here's something new I used firefox's webtest recorder sidebar and when it recorded the steps I took to fill the check box it recorded it as "<setSelectField> even though it is not a SelectField, it is simply a Checkbox. I got the x path by using firebug in firefox, exploding the view of the page's source code, and clicking through each div, td, tr, etc. I did this (in case you are wondering) because right clicking and "view in xpather" would not work on this window. The firebug exploded view approach worked on a few other occasions to find a valid xpath, but as valid as the xpath seems in this case, Webtest cannot find it. no matter, I've tried running the test with the setSelectField step instead of setCheckbox and still no change. I agree, on paper it looks like the xpath is the issue, but I have checked and re-checked it. Is there any other way to move through this step? Thanks so much. and here is the actual part of the code that's giving me so much grief. <clickButton label="View Palette Colors"/> <!--passed--> <verifyText text="3 items found"/> <!--passed--> <setSelectField xpath="/html/body/div/div/table/tbody/tr/td[6]/input" text="fire"/> <!--NO BUENO--> <clickElement description="add colors button" xpath="/html/body/d...@id='content']/div/h6/a/img"/> -- View this message in context: http://www.nabble.com/setCheckbox-problem-need-help...-tp24296625p24377643.html Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

