Re: [Wtr-general] Is there any script to click on the image icon

2007-06-19 Thread sapna
Thanx it's working for me.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] How to tell when a particular JS call has completed?

2007-06-19 Thread Jeff Fry

OK, I have more clarity on why ie.down_load_time and I aren't getting along.
My pages finish loading...and as the page loads we kick off a bunch of
asynchronous JS. I suspect that ie.wait is doing just what it ought to, but
I (and perhaps others using asynchronous JS) seem to need something
additional as well.

For a bit more context, Freebase is a graph of semantic data. When I go to a
url for Clint Eastwood, I load a page. As the page is loading, it kicks off
a query to find out what 'types' this topic (Clint Eastwood) is, and what
properties those types have. This returns that his types and their
properties are, say:
Person [name, DOB, parents, children, siblings, ...]
Film Actor [film performances, IMDB entry, ...]
US Politician [party, offices held, ...]
...and so on.

Then we kick off a final JS call to find out the values of these properties
for this particular topic (Clint Eastwood). For example:
Person [name = 'Clint Eastwood', DOB = May 31 1930,...]
Film Actor [film performances = ['Unforgiven', 'True Crime', 'The Good, the
Bad and the Ugly', ...], IMDB entry = 'http://www.imdb.com/name/nm142/',
...]

In practice, 15-30% of the time the page finishes loading
(ie.waitcompletes) before the final JS call completes (the values of
the various
properties are loaded). I've added a check if a known value exists
immediately after ie.goto(url) and it fails fairly often. I'd like to find a
way of defining page completion for me as (ie.wait completes && my 3rd JS
call completes). Perhaps it could/should be generalized to an option that
others can use as well, if they have asychronous JS called on page load? If
anyone is interested in looking at the page, I'd happily give you login
info. (We are in an invite-only alpha right now, but I can hand out invites
to individuals). I'd appreciate any suggestions!

Thanks,
Jeff


http://testingjeff.wordpress.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] get all rows from table in webpage

2007-06-19 Thread Charley Baker

Try this:

t = ie.table(:index, 5)
t.each { |row| row.to_s }

Take a look at the user guide and unit tests for how to use Watir.

-c

On 6/19/07, B Smith <[EMAIL PROTECTED]> wrote:


this doesn't work

v_1 = Array.new
ie.table(:index,5).rows.each_with_index do |row, i|
  end
  v_1.each do |i|
 puts v_1

it throws this error:: .rb:44: undefined method `rows' for
# (NoMethodError)


What is so difficult about retrieving all the rows??? this should be easy

any help appreciated
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general



d
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir no longer always waits for all frames to load

2007-06-19 Thread Bret Pettichord
Brown, David wrote:
> Gems prior to 1.5.1.1166 would either give me the access denied errors
> as it tried to wait for the inner frames to load - or if those were
> suppressed, I had to put in a manual wait whenever I navigated to a new
> page:  "sleep 0.1 until some_element_on_inner_frame.exists?".  After
> installing 1166 all of these delay problems were fixed... Until now.  
>
> Now that this issue has surfaced I'm forced to put the manual delays in
> again. It is not a big deal to do this, but, it's always cleaner if
> watir handles the delays properly.
>
>   
Could you please open up a jira ticket for this problem?

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir no longer always waits for all frames to load completely (gem 1.5.1.1166)

2007-06-19 Thread Bret Pettichord
Brown, David wrote:
> I've been using the development gem 1.5.1.1166 which includes the
> re-written wait logic to test a complex SAP web application.  The main
> content that I am automating is nested 4 frames deep.  Up until this
> past Friday this version of watir seemed to handle waiting for all of
> the inner frames to load properly.  Now however this wait logic isn't
> always waiting until the pages load completely which causes my scripts
> to fail.  I don't think there have been any changes in the web app I'm
> testing which would cause this. I did happen to install the
> important/critical Microsoft security patches for June which could have
> effected watir?
>  http://www.microsoft.com/technet/security/bulletin/ms07-jun.mspx
>
> Has any one else experienced this problem with the new wait logic not
> waiting quite long enough when there are many nested frames?
>   
What happens if you use an earlier Watir gem, before we rewrote the 
frame wait logic?

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Understanding IE's wait method

2007-06-19 Thread Jeff Fry

Oy! Jungle, indeed.

Paul and Bret, thanks again, as always.

Jeff

On 6/19/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:


Jeff Fry wrote:
>
> I've been searching for but am unable to find the definition of the
> .busy and .readyState methods IE is calling. Can you let me know where
> they are declared (and ideally, how I might discover where they're
> declared). I assume they are included from something else, but I
> couldn't figure out where.

These are part of the COM API to the WebBrowser control. They are
documented here.

http://msdn2.microsoft.com/en-us/library/aa752602.aspx

Well i can't find the doc for busy, but it is somewhere in the MSDN
weeds. To a large degree, the value of Watir rests in the fact that Paul
and I waded through this jungle, found the good bits and made them easy
to find and use.

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general





--
http://testingjeff.wordpress.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Understanding IE's wait method

2007-06-19 Thread Bret Pettichord
Jeff Fry wrote:
>
> I've been searching for but am unable to find the definition of the 
> .busy and .readyState methods IE is calling. Can you let me know where 
> they are declared (and ideally, how I might discover where they're 
> declared). I assume they are included from something else, but I 
> couldn't figure out where.

These are part of the COM API to the WebBrowser control. They are 
documented here.

http://msdn2.microsoft.com/en-us/library/aa752602.aspx

Well i can't find the doc for busy, but it is somewhere in the MSDN 
weeds. To a large degree, the value of Watir rests in the fact that Paul 
and I waded through this jungle, found the good bits and made them easy 
to find and use.

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Understanding IE's wait method

2007-06-19 Thread Paul Rogers
all of those are methods ( or properties of IE )

http://msdn2.microsoft.com/en-us/library/aa752043.aspx
and
http://msdn2.microsoft.com/en-us/library/ms534359.aspx
  - Original Message - 
  From: Jeff Fry 
  To: wtr-general@rubyforge.org 
  Sent: Tuesday, June 19, 2007 7:38 PM
  Subject: [Wtr-general] Understanding IE's wait method


  Hey gang,

  I am reading through IE's wait method, and (A) very impressed by all we are 
tracking, and (B) confused by a few bits.

  I've been searching for but am unable to find the definition of the .busy and 
.readyState methods IE is calling. Can you let me know where they are declared 
(and ideally, how I might discover where they're declared). I assume they are 
included from something else, but I couldn't figure out where. 

  On a high level, my understanding of wait is that it waits for ie.busy to be 
false, then for ie.readyState to equal READYSTATE_COMPLETE...which seems to == 
4. I'd love to know what's meaningful about 4 here (say, as opposed to 42). 
Then it waits for the main document to exist (to be true). 

  At this point it creates the documents_to_wait_for array, and initializes it 
with the main document for the page.

  Next I see we wait until doc.readyState == "complete". Again, here I'm 
stumped as to what .readyState is doing. After compiling the list of urls for 
the page, we go through each frame and wait for the document for each frame to 
load. When that is done, we record @down_load_time.

  Thanks!
  Jeff

  -- 
  http://testingjeff.wordpress.com 


--


  ___
  Wtr-general mailing list
  Wtr-general@rubyforge.org
  http://rubyforge.org/mailman/listinfo/wtr-general___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Understanding IE's wait method

2007-06-19 Thread Jeff Fry

Hey gang,

I am reading through IE's wait method, and (A) very impressed by all we are
tracking, and (B) confused by a few bits.

I've been searching for but am unable to find the definition of the .busy
and .readyState methods IE is calling. Can you let me know where they are
declared (and ideally, how I might discover where they're declared). I
assume they are included from something else, but I couldn't figure out
where.

On a high level, my understanding of wait is that it waits for ie.busy to be
false, then for ie.readyState to equal READYSTATE_COMPLETE...which seems to
== 4. I'd love to know what's meaningful about 4 here (say, as opposed to
42). Then it waits for the main document to exist (to be true).

At this point it creates the documents_to_wait_for array, and initializes it
with the main document for the page.

Next I see we wait until doc.readyState == "complete". Again, here I'm
stumped as to what .readyState is doing. After compiling the list of urls
for the page, we go through each frame and wait for the document for each
frame to load. When that is done, we record @down_load_time.

Thanks!
Jeff

--
http://testingjeff.wordpress.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] frames and url()

2007-06-19 Thread Bret Pettichord
Charley Baker wrote:
> I just added url to frame, you might want to download the latest code. 
> Check the wiki faq for installing building the latest gem from source.
Thanks!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] frames and url()

2007-06-19 Thread Bret Pettichord
Chong Jiang wrote:
> Sorry, I do not know how to append this message to my previous one in 
> threaded form.
Whatever you did worked, so no worries.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir no longer always waits for all frames to load

2007-06-19 Thread Charley Baker

wait_until is a  cleaner method to invoke. sleeps are too error prone,
wait_until a specific control exists. I removed the http error checks around
that time and there have been some changes in the frames handling.

-c

On 6/19/07, Brown, David <[EMAIL PROTECTED]> wrote:


Gems prior to 1.5.1.1166 would either give me the access denied errors
as it tried to wait for the inner frames to load - or if those were
suppressed, I had to put in a manual wait whenever I navigated to a new
page:  "sleep 0.1 until some_element_on_inner_frame.exists?".  After
installing 1166 all of these delay problems were fixed... Until now.

Now that this issue has surfaced I'm forced to put the manual delays in
again. It is not a big deal to do this, but, it's always cleaner if
watir handles the delays properly.

-David


From: Bret Pettichord <[EMAIL PROTECTED]>
Brown, David wrote:
> I've been using the development gem 1.5.1.1166 which includes the
> re-written wait logic to test a complex SAP web application.  The main

> content that I am automating is nested 4 frames deep.  Up until this
> past Friday this version of watir seemed to handle waiting for all of
> the inner frames to load properly.  Now however this wait logic isn't
> always waiting until the pages load completely which causes my scripts

> to fail.  I don't think there have been any changes in the web app I'm

> testing which would cause this. I did happen to install the
> important/critical Microsoft security patches for June which could
> have effected watir?
>  http://www.microsoft.com/technet/security/bulletin/ms07-jun.mspx
>
> Has any one else experienced this problem with the new wait logic not
> waiting quite long enough when there are many nested frames?
>
What happens if you use an earlier Watir gem, before we rewrote the
frame wait logic?

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Load Error

2007-06-19 Thread Charley Baker

require_gem 'watir'

or gem 'watir'

Try the same in irb. It may be due to the ruby update. I haven't tried it
due to my dependency on modal dialog support.

-c

On 6/19/07, Max Russell <[EMAIL PROTECTED]> wrote:


 My original question was:



On 6/15/07, Max Russell <[EMAIL PROTECTED]> wrote:

>

>  Hi there, I'm getting the following.

>

>

>

> `require': no such file to load -- watir (LoadError)

>

>

>

> I've checked the FAQs and downloaded the latest 1.5 version for my

> Ruby version 1.8.6.

>

> I've listed my local gems and I can see that water is installed, yet

> whenever I try and run my script, I still get the error?



My script was:



# Simple test harness







require 'watir'



require 'watir/testcase'



#require 'test/unit'







#$LOAD_PATH << '..' if $0 == __FILE__



$LOAD_PATH << './Tests'











class TestSuite < Watir::TestCase



File.open(ARGV[0]).each_line do |entry|



   code = lambda{load "#{entry.strip}.rb" }



   self.send(:define_method, entry.strip, code)#{load

"#{entry.strip}.rb" }#puts "#{entry.strip}"



#self.send(:public, entry.strip.to_sym )



end



end







if $0 == __FILE__



  require 'test/unit/ui/console/testrunner'



  Test::Unit::UI::Console::TestRunner.run(TestSuite)



End







Done, the only change I've made from the previously working version is

that this should take command line arguments.



I don't believe this has anything to do with my script at all, but

something to do with the environment it's running under.



Ruby 1.8.6 watir 1.5 - I did have all this working some time ago. The

only real updates have been the Ruby and WATiR versions.





*Max Russell*
Test Analyst
INPS**

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir no longer always waits for all frames to load

2007-06-19 Thread Brown, David
Gems prior to 1.5.1.1166 would either give me the access denied errors
as it tried to wait for the inner frames to load - or if those were
suppressed, I had to put in a manual wait whenever I navigated to a new
page:  "sleep 0.1 until some_element_on_inner_frame.exists?".  After
installing 1166 all of these delay problems were fixed... Until now.  

Now that this issue has surfaced I'm forced to put the manual delays in
again. It is not a big deal to do this, but, it's always cleaner if
watir handles the delays properly.

-David


From: Bret Pettichord <[EMAIL PROTECTED]>
Brown, David wrote:
> I've been using the development gem 1.5.1.1166 which includes the 
> re-written wait logic to test a complex SAP web application.  The main

> content that I am automating is nested 4 frames deep.  Up until this 
> past Friday this version of watir seemed to handle waiting for all of 
> the inner frames to load properly.  Now however this wait logic isn't 
> always waiting until the pages load completely which causes my scripts

> to fail.  I don't think there have been any changes in the web app I'm

> testing which would cause this. I did happen to install the 
> important/critical Microsoft security patches for June which could 
> have effected watir?
>  http://www.microsoft.com/technet/security/bulletin/ms07-jun.mspx
>
> Has any one else experienced this problem with the new wait logic not 
> waiting quite long enough when there are many nested frames?
>   
What happens if you use an earlier Watir gem, before we rewrote the
frame wait logic?

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] frames and url()

2007-06-19 Thread Charley Baker

I just added url to frame, you might want to download the latest code. Check
the wiki faq for installing building the latest gem from source.

-c

On 6/19/07, Chong Jiang <[EMAIL PROTECTED]> wrote:


Hello all,

Sorry, I do not know how to append this message to my previous one in
threaded form.
The suggestion of using ie.frames(:index, 1).url does not seem to work, as
I get an "undefined method 'LocationURL' for nil:nilClass", even when
ie.frames(:index, 1) exists. I've managed to avoid this entire issue
altogether by navigating to each of the individual pages that comprise the
main, frame-using page.

Thanks anyways,
Chong

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] From comp.lang.ruby

2007-06-19 Thread Paul Rogers

ha! I never noticed that. It was on a thread of today. I guess someone just 
added to this original thread.


- Original Message -
From: Bret Pettichord <[EMAIL PROTECTED]>
Date: Tuesday, June 19, 2007 12:57 pm
Subject: Re: [Wtr-general] From comp.lang.ruby

> Paul Rogers wrote:
> > From: Kev Jackson <[EMAIL PROTECTED]>
> > Date: Thu, 24 Nov 2005 17:24:33 +0900
> > Local: Thurs, Nov 24 2005 2:24 am
> > Subject: Watir - evaluation...
> > Reply to author | Forward | Print | Individual message | Show 
> original | Report this message | Find messages by this author
> > I've never been so impressed with a piece of software so quickly 
> in my
> > life.  This is perhaps the most useful piece of software I've ever
> > evaluated (for my current needs).
> >
> > Perfect fir to what I need
> >
> > Big thanks to the watir developers, and big thanks to matz for 
> ruby, big
> > thanks to the ruby community - this will make our testing here 
> so much
> > more rigorous
> >
> > Kev
> >   
> This post is a little dated.
> ___
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
> 
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] From comp.lang.ruby

2007-06-19 Thread Bret Pettichord
Paul Rogers wrote:
> From: Kev Jackson <[EMAIL PROTECTED]>
> Date: Thu, 24 Nov 2005 17:24:33 +0900
> Local: Thurs, Nov 24 2005 2:24 am
> Subject: Watir - evaluation...
> Reply to author | Forward | Print | Individual message | Show original | 
> Report this message | Find messages by this author
> I've never been so impressed with a piece of software so quickly in my
> life.  This is perhaps the most useful piece of software I've ever
> evaluated (for my current needs).
>
> Perfect fir to what I need
>
> Big thanks to the watir developers, and big thanks to matz for ruby, big
> thanks to the ruby community - this will make our testing here so much
> more rigorous
>
> Kev
>   
This post is a little dated.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Watir no longer always waits for all frames to load completely (gem 1.5.1.1166)

2007-06-19 Thread Brown, David
I've been using the development gem 1.5.1.1166 which includes the
re-written wait logic to test a complex SAP web application.  The main
content that I am automating is nested 4 frames deep.  Up until this
past Friday this version of watir seemed to handle waiting for all of
the inner frames to load properly.  Now however this wait logic isn't
always waiting until the pages load completely which causes my scripts
to fail.  I don't think there have been any changes in the web app I'm
testing which would cause this. I did happen to install the
important/critical Microsoft security patches for June which could have
effected watir?
 http://www.microsoft.com/technet/security/bulletin/ms07-jun.mspx

Has any one else experienced this problem with the new wait logic not
waiting quite long enough when there are many nested frames?

I wish this was a public web-app so I could provide an example w/html to
look at but it's not.


Thanks!
-David Brown
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] frames and url()

2007-06-19 Thread Chong Jiang

Hello all,

Sorry, I do not know how to append this message to my previous one in
threaded form.
The suggestion of using ie.frames(:index, 1).url does not seem to work, as I
get an "undefined method 'LocationURL' for nil:nilClass", even when
ie.frames(:index, 1) exists. I've managed to avoid this entire issue
altogether by navigating to each of the individual pages that comprise the
main, frame-using page.

Thanks anyways,
Chong
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] WYSIWYG editor inside - entire new tag I can't access

2007-06-19 Thread Chris McMahon
> Any thoughts???

I think this is the same issue I reported here:
http://jira.openqa.org/browse/WTR-152

There is a pure-javascript workaround, see if that does the job for you.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] From comp.lang.ruby

2007-06-19 Thread Paul Rogers
THis was posted on clr
http://groups.google.ca/group/comp.lang.ruby/browse_thread/thread/2170f6b9401536fc/77f9db176b92b8d0?lnk=raot#77f9db176b92b8d0

Thanks Kevin!



Kev Jackson 
View profile
I've never been so impressed with a piece of software so quickly in my life.  
This is perhaps the most useful piece of software I've ever evaluated (for my 
current needs). Perfect fir to what I need Big thanks to the watir developers, 
and big thanks to matz for ruby, big thanks to the ruby community - this will 
make our testing here so much more rigorous Kev
 More options Nov 24 2005, 2:24 am
Newsgroups: comp.lang.ruby
From: Kev Jackson <[EMAIL PROTECTED]>
Date: Thu, 24 Nov 2005 17:24:33 +0900
Local: Thurs, Nov 24 2005 2:24 am
Subject: Watir - evaluation...
Reply to author | Forward | Print | Individual message | Show original | Report 
this message | Find messages by this author
I've never been so impressed with a piece of software so quickly in my
life.  This is perhaps the most useful piece of software I've ever
evaluated (for my current needs).

Perfect fir to what I need

Big thanks to the watir developers, and big thanks to matz for ruby, big
thanks to the ruby community - this will make our testing here so much
more rigorous

Kev
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] And now Rbehave

2007-06-19 Thread Bret Pettichord
I've been using Rspec more and more lately and am working on a article 
describing how i use it. But today, I see this: 
http://dannorth.net/2007/06/introducing-rbehave 
 and realize that 
things are really moving in the Ruby world!

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] get all rows from table in webpage

2007-06-19 Thread B Smith
this doesn't work

v_1 = Array.new
ie.table(:index,5).rows.each_with_index do |row, i|
  end
  v_1.each do |i|
 puts v_1

it throws this error:: .rb:44: undefined method `rows' for 
# (NoMethodError)


What is so difficult about retrieving all the rows??? this should be easy

any help appreciated
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Is there any script to click on the image icon

2007-06-19 Thread Željko Filipin

Hi Sapna,

Try

ie.image(:src, /mailclosed/).click

Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Is there any script to click on the image icon

2007-06-19 Thread sapna
Hi,

Kindly let me know if there are any command to click on the image. Below the 
HTML snippet.



Regards
Sapna
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] WYSIWYG editor inside - entire new tag I can't access

2007-06-19 Thread Jason
I've got a WYSIWYG editor inside an ... the editor is actually TinyMCE, 
as offered here: http://tinymce.moxiecode.com/.

I'm having trouble accessing this in Watir.  Whilst I can access the , 
I can't find anything else inside the frame that resembles a field to 'use'.

Here's the HTML:

irb(main):015:0* ie.frame(:id, "mce_editor_0").html

=> "
http://www.w3.org/1999/xhtml\";>

blank_page
\r\n
\r\n




https://oscar-test.scee.net/content/editorial/edit/>
\r\n
 

"



When I view the item in Firebug, I'm presented with something +slightly+ 
different, but ultimately I think it's the same.  Still can't see anything 
useful in here:





http://www.w3.org/1999/xhtml";>

blank_page














Any thoughts???

- J
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Load Error

2007-06-19 Thread Max Russell
My original question was:

 

On 6/15/07, Max Russell <[EMAIL PROTECTED]> wrote:

> 

>  Hi there, I'm getting the following.

> 

> 

> 

> `require': no such file to load -- watir (LoadError)

> 

> 

> 

> I've checked the FAQs and downloaded the latest 1.5 version for my 

> Ruby version 1.8.6.

> 

> I've listed my local gems and I can see that water is installed, yet 

> whenever I try and run my script, I still get the error?

 

My script was:

 

# Simple test harness

 

 

 

require 'watir'

 

require 'watir/testcase'

 

#require 'test/unit'

 

 

 

#$LOAD_PATH << '..' if $0 == __FILE__

 

$LOAD_PATH << './Tests'

 

 

 

 

 

class TestSuite < Watir::TestCase

 

File.open(ARGV[0]).each_line do |entry|

 

   code = lambda{load "#{entry.strip}.rb" }

 

   self.send(:define_method, entry.strip, code)#{load

"#{entry.strip}.rb" }#puts "#{entry.strip}"

 

#self.send(:public, entry.strip.to_sym )

 

end

 

end

 

 

 

if $0 == __FILE__

 

  require 'test/unit/ui/console/testrunner'

 

  Test::Unit::UI::Console::TestRunner.run(TestSuite)

 

End

 

 

 

Done, the only change I've made from the previously working version is

that this should take command line arguments.

 

I don't believe this has anything to do with my script at all, but

something to do with the environment it's running under.

 

Ruby 1.8.6 watir 1.5 - I did have all this working some time ago. The

only real updates have been the Ruby and WATiR versions.

 

  

Max Russell
Test Analyst
INPS

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general