On Thu, Nov 17, 2011 at 2:37 PM, hoffm11 <[email protected]> wrote:
> <SPAN class="TreeNode"> Insert Project.xlsm </SPAN>
> browser.frame(:id, "navFrame").form(:id, "NavForm").div(:class,
> "TreeNavPanel").div(:id, "tn_24").span(:class,
> "TreeNode").span(:text=>"Insert Project.xlsm").click

Well, you did not provide enough information. "Does not work" is not
enough. What did happen? What did you expect to happen? Any error messages?

I have noticed there is both leading and trailing space in " Insert
Project.xlsm ", so that could be the problem. Try one of these:

browser.frame(:id, "navFrame").span(:text=>" Insert Project.xlsm ").click
browser.frame(:id, "navFrame").span(:text=>/Insert Project.xlsm/).click

If above lines do not result in error message, but the thing that you
expected did not happen, read this:

http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired

Željko
--
watir.com/book - author
watir.com - community manager
watirpodcast.com - host

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to