FYI: Article on Firewatir: Doing basic tests with FireWatir and TDD)
by Elf M. Sternberg: http://elfs.livejournal.com/1046720.html
Al
_
Rediscover Hotmail®: Get e-mail storage that grows with you.
Thanks all for your inputs and guidance. I have got lot of information
now to start with.
Chuck, special thanks for sharing information about those books and I
did realize that one of those books author has actually replied to me
post in this thread :)
Thanks,
S.K
On Apr 13, 11:38 pm, Chuck van
sir,
I used the method you suggested but, it is not working i've to click
the popup button manually to go further testing the application. I'm
putting the code i'm using for the handling popup below, please
suggest me corrections that are to be made
require 'Watir'
require 'test/unit'
require
There is no audio to the screencast (I should put up a message saying so!).
I need to speak to a few people regarding how I go about progressing this,
but the general view is that we us it further on a few more internal
projects and also open source it.
I'm glad you mentioned cucumber, as that
Hi, Isabel!
For me Multiple Attributes works. I'm also using watir 1.6.2.
I have tried this code when 'Portal application (IBM)' link is already
clicked (class = active):
ie=Watir::IE.attach(:title, /Help/)
temp = ie.frame(:name, HelpFrame).frame(:name, NavFrame).frame(:name,
I am very new to ruby and am having some problems with threading...
It just hangs up.. never does anything. And when I abort it, I get
this error message:
C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
firefox.rb:1078:in 'raise': exception class/object expected
from
Hi,
I tried to click on a link 'Portal application (IBM)' on
http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/rzamm/rzammportletsRefIFrame.htm
using the script below:-
require 'watir'
ie=Watir::IE.attach(:title, //)
ie.frame(:name , 'HelpFrame').frame(:name ,
sir,
I used the method you suggested but, it is not working i've to click
the popup button manually to go further testing the application. I'm
putting the code i'm using for the handling popup below, please
suggest me corrections that are to be made
require 'Watir'
require 'test/unit'
require
am getting the below error... (vista) dont mind, I am a noobie.
NameError: uninitialized constant Watir::Process::WIN32OLE
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
process.rb:6:in `count'
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
process.rb:17:
Hi~ Chuck
Thank you for your advice. That is good for me.
I already add the ie.close in the while loop.
And I change the code a little bit. Is this seems ok?
I don't know ruby and network develop much, so I may made some mistakes.
require 'watir'
require 'win32ole'
require 'thwait'
inputfile =
Okey, I've finally found the culprit of my failing tests.
I don't know exactly, what has changed in Watir to make my tests to
fail, but I know that it is not Watir's fault per se.
I also changed subject of this topic, because original problem is not
related with this seem-to-be-greater problem.
Hi~
Thank you all for the advice.
However, My problem still not settle.
this is the information that IE developer toolbar shows.
file:///C:/Users/Ctcoo/Desktop/QQ%E6%88%AA%E5%9B%BE%E6%9C%AA%E5%91%BD%E5%90%8D.bmp
I trid
ie.text_field(:name, fahrenheit).set(arg1.to_s)
ie.text_field(:id,
Thanks, It worked - except that before_text and after_text seem to be
reversed in watir 1.6.3. I used after_text and got what I needed.
Andy
On Apr 13, 7:09 pm, orde ohil...@gmail.com wrote:
Looks like this would do it:
puts browser.link(:index, 1).before_text
On Apr 13, 2:31 pm,
Minor problem but tab on the homepage wasn't highlighting when clicked
on. Is there a way to test verify that the navigational tab is
highlighted when clicked on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Sorry, let me be more detailed. Every time a tab is highlighted its
shown in the body id.
Here is the home page shown in fire bug:
body id=ctl00_ctl00_cphContent_Body class=Home
Is there a way to verify that the class is Home when on the
homepage? Thanks I'm very new at Watir.
On Apr 14, 9:54
I have a large tree of nested divs, and I want to get an array of just
the direct children of any particular div. I do not know ahead of time
how many divs there will be at any level. Starting from a div, what is
the Watir code for getting the divs that are direct children (and yes,
there are
Looks like it might be a network synchronization issue of some sort.
I've long noted that on odd occasions it DID work, and a little
experimentation today suggests that introducing some delay between
launching the browser and issuing the GOTO (.navigate in WSH) seems to
increase the chance of
I have begun using the watir craft tool to run my test on mac os x in
safari. Running just one test by itself works fine. As soon as I add a
second test to my suite I see a weird behavior. The first test ends fine
and closes the brower, the problem is that another browser is never launched
to
If you want someone's suggestion, you need to provide your codes where it
happens.
Not just telling everyone that you have below error.
Don't assume everyone knows your problem already.
- Original Message
From: zeroin23 zeroi...@gmail.com
To: Watir General
Can you try xpath?
- Original Message
From: andrew.d...@lthree.com andrew.d...@lthree.com
To: Watir General watir-general@googlegroups.com
Sent: Tuesday, April 14, 2009 7:54:53 AM
Subject: [wtr-general] First level children only
I have a large tree of nested divs, and I want to get
I wonder why the browser is being closed after the first test. The
framework doesn't do this. Does your test?
Bret
keith shaw wrote:
I have begun using the watir craft tool to run my test on mac os x in
safari. Running just one test by itself works fine. As soon as I add
a second test
If you're trying to attach an image, I wasn't able to see it...
On Apr 14, 5:44 am, Chai Taolun ctco...@gmail.com wrote:
Hi~
Thank you all for the advice.
However, My problem still not settle.
this is the information that IE developer toolbar shows.
You can match that class name and the current URL of the browser I believe.
That seems like a good solution.
On Tue, Apr 14, 2009 at 8:12 AM, Tester78 hmtest...@gmail.com wrote:
Sorry, let me be more detailed. Every time a tab is highlighted its
shown in the body id.
Here is the home page
I think Chuck is on to something...the text field is probably located
in another frame. Try using ie.show_frames, then identify which frame
holds the field. Then use something like:
ie.frame(:index, 2).text_field(:id, 'fahrenheit').flash
On Apr 14, 10:00 am, Chuck van der Linden
I think we'd need to see a bit more of the code to give you a totally
reliable answer
what kind of object is the tab? is it a frame?
We have something similar (a nav bar with tabs) and they are defined
as divs, and the class of the selected one is different, so what I do
is mostly just do an
I just took a look at the test and realized I di have a browser.close at the
end of the first test. Now I realize that framework tries to start the
second test where the first one leaves off. Is it supposed to reset the
browser to url specified in the environments file?
-Keith
On Tue, Apr 14,
Yes I beleve so
On Apr 14, 10:42 am, keith shaw keithsha...@gmail.com wrote:
I just took a look at the test and realized I di have a browser.close at the
end of the first test. Now I realize that framework tries to start the
second test where the first one leaves off. Is it supposed to
How can xpath be used to return an array of divs? What would the xpath
look like?
On Apr 14, 10:30 am, Michael Hwee michael_h...@yahoo.com wrote:
Can you try xpath?
- Original Message
From: andrew.d...@lthree.com andrew.d...@lthree.com
To: Watir General
Do I need to do anything to make sure that happens? Currently it's not
working.
-Keith
On Tue, Apr 14, 2009 at 2:00 PM, Chuck van der Linden sqa...@gmail.comwrote:
Yes I beleve so
On Apr 14, 10:42 am, keith shaw keithsha...@gmail.com wrote:
I just took a look at the test and realized I
Wow what a small world.. I've known Elf for years and years.. last
I knew he was a real python head.. interesting to see he's into
firewater and ruby..
On Apr 13, 7:46 pm, Al Snow jas...@hotmail.com wrote:
FYI: Article on Firewatir: Doing basic tests with FireWatir and TDD)
by Elf M.
Seems that now we are down to not 'seeing' the text field, we have
duplicate threads, so we might be best off to pursue that in the other
thread, where there's a series of questions for you
Secondly, general coding thing.. don't obscure the exit condition of
the while loop, it makes the code
On Apr 14, 5:42 am, Jarmo Pertman jarm...@gmail.com wrote:
Anyway, now I have completely different problem. Problem is related
with fire_event. I have always assumed that Watir knows when
fire_event call has finished, but it seems that IE will respond
immediately to this call.
The firing of the
I am trying to test a web service and I am unadble to get the security
header in the envelope. Below is an example of the soap envelope I am
trying to create followed by an example of the code I have written and
what the service is returning
Example Soap envelope:.
soapenv:Envelope
I think you might need to head over to a ruby forum and ask about
this.
Watir is a web browser driver. it doens't interact with the server at
the HTTP level, it lets the browser do that.
now if you can intereact with your web service via the browser, and do
what you want entirely through the
Thanks Chuck will try the Soap4r group
Eric
On Tue, Apr 14, 2009 at 1:18 PM, Chuck van der Linden sqa...@gmail.comwrote:
I think you might need to head over to a ruby forum and ask about
this.
Watir is a web browser driver. it doens't interact with the server at
the HTTP level, it lets
#open first occurance of FF
$ie = Firefox.new :attach = true
#Navigate it to cnn.com
$ie.goto cnn.com
#This now works (Doesn't Hang)
system(C:\\Program Files\\Mozilla Firefox\\firefox.exe -
jssh)
#This still fails
$ie = FireWatir::Firefox.attach(:title,Google)
puts $ie.title
Any suggestions?
I was going to agree with Chuck, but actually the framework doesn't do
that right now. Clearly it should.
I think you can correct this by adding the following to your steps file:
Before do
goto ''
end
Bret
keith shaw wrote:
Do I need to do anything to make sure that happens? Currently
These are great...I appreciate the work put in to this! :)
Zeljko, let me know if you need some original music...I have plenty to
offer if you're interested.
On Apr 14, 1:47 pm, Tiffany Fodor tcfo...@comcast.net wrote:
Hi all!
Watir Podcast #23 with Zeljko Filipin switching roles to the
Hi
I've tried several times to open internet explorer in watir but it
doesn't
work. I've tried following statements:
ie=Watir::IE.new
ie=Watir::Browser.new
but all in vain, no internet explorer window pops up. What am i doing
wrong?
--~--~-~--~~~---~--~~
You
In Vista, IE7, I cannot seem to click on a button located inside of a foreign
subframe (a subframe with a domain that is different from the main frame).
The issue is that when Watir reaches into a foreign subframe, somehow it's in
an incorrect security context to access the DOM of the
Hi,
I'm a newbee at Watir. I've installed ruby and watir and am trying the
quickstart tutorials. However, I can't get to open internet explorer.
I get following error message:
C:\irb
irb(main):001:0 require watir
= true
irb(main):002:0 ie=Watir::IE.new
NameError: uninitialized constant
this is a problem with a gem that watir installs. search the mailing list
for Windows::API and you should find the solution
Paul
On Tue, Apr 14, 2009 at 10:04 AM, Samar Javid sfja...@gmail.com wrote:
Hi,
I'm a newbee at Watir. I've installed ruby and watir and am trying the
quickstart
Hi All,
I was trying to Automate Drag n Drop for a web Application and I tried
the Drag and Drop code mentioned in the below link.
http://feedraider.com/item/24826/Z-Bar-Zone/Drag-and-Drop-with-Watir/
When i execute the below code its only Clicking on the Element ('ext-
gen617') 'onmousedown'
Hi All,
I use below structure for batch running,
require 'watir/ie'
require 'watir/testcase'
class Test1 Watir::TestCase
def test_a
end
def test_b
end
end
class Test2 Watir::TestCase
def test_a
end
def test_b
end
def test_c
end
end
I expect to run the tests one by one,
I tried the code with system() command and following might be the reason it
is not working:
When you try to open firefox using system command it returns when firefox
shows up. But it doesn't wait for the default page to be loaded (which is
google.com) so it is not able to find the window with
45 matches
Mail list logo