« Return to Thread: setCheckbox problem need help...

Re: setCheckbox problem need help...

by Kelcy Monday-2 :: Rate this Message:

Reply to Author | View in Thread

From the error you're getting, sounds like you have an invalid (or null?) xpath.  If you need help with getting correct xpath, try this firefox extension: https://addons.mozilla.org/en-US/firefox/addon/1192

Also, it looks like you tried to attach part of the xml test, but I didn't receive that part of the message. In order to give further help, we'll need to see that.

Kelcy Monday


dtops <dtopley@...>
Sent by: webtest-admin@...

07/07/2009 10:39 AM
Please respond to
webtest@...

To
webtest@...
cc
Subject
[Webtest] setCheckbox problem need help...






in my xml-test writing i've come across this problem twice.  I'll try to
describe it as clearly as possible...  

I have a main window, which, when clicked on, opens a new window on top.  
The step I used to open this new window says the new window will "become the
current one"   It didn't in the test,  but I used the
selectWindow step and the index="1" attribute to switch it over.  That part
works fine...    I also used a verifyText step to be sure I'm in the correct
window for my test.  

Now,  in this new window, which I have selected and verified,  there are
some checkboxes.  I used the setCheckbox step and tried to use xpath to
select one of them,  but I keep getting the message "the element with the
xpath "" cannot be found.  

I really need to select these checkboxes for my test to be useful in any
way,  so it can test the app like it was intended.   What do you recommend
trying to get this done?    Thanks for reading and I look forward to your
answers.  

Here is a bit of my xml from the test... so you may be able to get a better
idea of what I'm dealing with from a different perspective.  



--
View this message in context:
http://www.nabble.com/setCheckbox-problem-need-help...-tp24296625p24296625.html
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

 « Return to Thread: setCheckbox problem need help...