Hi...

Seems like this script should work, but I'm getting

FireWatir::Exception::UnknownObjectException: Unable to locate object,
using id and <id value>

for both the buttons.   I put the sleeps in in case it was a
page-rendering issue, but I don't think that it is.
(BTW, feel free to add yourself, log in and try the rest of the script
if you want.)

###################

require 'rubygems'
require 'firewatir'
require 'test/unit'
require 'firewatir/testUnitAddons'
include FireWatir

ff = FireWatir::Firefox.new()
ff.goto("http://www.socialtext.net/stoss/index.cgi?mcmahon_test";)

sleep 2

#DOESN'T FIND THIS BUTTON
ff.button(:id,'st-login-to-edit-button-link')

ff.text_field(:id, 'username').set('[EMAIL PROTECTED]')
ff.text_field(:id, 'password').set('mypass')
ff.button(:value, 'Log in').click

sleep 2

#DOESN'T FIND THIS BUTTON EITHER
ff.button(:id,"st-edit-button-link").click

ff.text_field(:id,'wikiwyg_wikitext_textarea').set('*test data*')
ff.button(:id,'st-save-button-link').click
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to