[wtr-general] FW: Elf M. Sternberg: Doing basic tests with FireWatir and TDD

2009-04-14 Thread Al Snow
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.

[wtr-general] Re: Testing for Buffer Overflows

2009-04-14 Thread SushilKarwa
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

[wtr-general] Re: click_no_wait and click! not working javascript popup

2009-04-14 Thread spike
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

[wtr-general] Re: WATiR DSL I have been using

2009-04-14 Thread Ruf, Wadud
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

[wtr-general] Re: Multiple Attributes

2009-04-14 Thread Татьяна Запольская
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,

[wtr-general] Threading Issue....

2009-04-14 Thread catepillar
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

[wtr-general] Multiple Attributes

2009-04-14 Thread Isabel
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 ,

[wtr-general] Re: Error in handling popup

2009-04-14 Thread spike
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

[wtr-general] Re: Count Open Browsers

2009-04-14 Thread zeroin23
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:

[wtr-general] Re: the ie.goto() problem

2009-04-14 Thread Chai Taolun
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 =

[wtr-general] Re: SelectList behaves differently with 1.6.2?

2009-04-14 Thread Jarmo Pertman
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.

[wtr-general] Re: why the ruby says Unable to locate element?

2009-04-14 Thread Chai Taolun
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,

[wtr-general] Re: Accessing text elements in a span

2009-04-14 Thread andrew . dahl
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,

[wtr-general] can watir check to see if a tab on a web page is highlighted

2009-04-14 Thread Tester78
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

[wtr-general] Re: can watir check to see if a tab on a web page is highlighted

2009-04-14 Thread Tester78
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 

[wtr-general] First level children only

2009-04-14 Thread andrew . dahl
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

[wtr-general] Re: Cannot find Server error.

2009-04-14 Thread dkurtz
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

[wtr-general] Watircraft and Safari

2009-04-14 Thread keith shaw
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

[wtr-general] Re: Count Open Browsers

2009-04-14 Thread Michael Hwee
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

[wtr-general] Re: First level children only

2009-04-14 Thread Michael Hwee
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

[wtr-general] Re: Watircraft and Safari

2009-04-14 Thread Bret Pettichord
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

[wtr-general] Re: why the ruby says Unable to locate element?

2009-04-14 Thread George
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.

[wtr-general] Re: can watir check to see if a tab on a web page is highlighted

2009-04-14 Thread Nathan Lane
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

[wtr-general] Re: why the ruby says Unable to locate element?

2009-04-14 Thread George
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

[wtr-general] Re: can watir check to see if a tab on a web page is highlighted

2009-04-14 Thread 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

[wtr-general] Re: Watircraft and Safari

2009-04-14 Thread keith shaw
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,

[wtr-general] Re: Watircraft and Safari

2009-04-14 Thread Chuck van der Linden
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

[wtr-general] Re: First level children only

2009-04-14 Thread andrew . dahl
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

[wtr-general] Re: Watircraft and Safari

2009-04-14 Thread keith shaw
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

[wtr-general] Re: FW: Elf M. Sternberg: Doing basic tests with FireWatir and TDD

2009-04-14 Thread Chuck van der Linden
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.

[wtr-general] Re: the ie.goto() problem

2009-04-14 Thread Chuck van der Linden
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

[wtr-general] Re: JavaScript events timing problems with Watir

2009-04-14 Thread Chuck van der Linden
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

[wtr-general] Ggood example of adding WS security headers to a soap request using Ruby/Watir?

2009-04-14 Thread eric
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

[wtr-general] Re: Ggood example of adding WS security headers to a soap request using Ruby/Watir?

2009-04-14 Thread Chuck van der Linden
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

[wtr-general] Re: Ggood example of adding WS security headers to a soap request using Ruby/Watir?

2009-04-14 Thread Eric Morris
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

[wtr-general] Re: firewatir and jssh

2009-04-14 Thread Moochie
#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?

[wtr-general] Re: Watircraft and Safari

2009-04-14 Thread Bret Pettichord
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

[wtr-general] Re: Watir Podcast #23 is live

2009-04-14 Thread George
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

[wtr-general] can't open internet explorer

2009-04-14 Thread Samar Javid
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

[wtr-general] Scripting a foreign subframe

2009-04-14 Thread Brian Rosenthal
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

[wtr-general] cannot open internet explorer

2009-04-14 Thread Samar Javid
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

[wtr-general] Re: cannot open internet explorer

2009-04-14 Thread Paul Rogers
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

[wtr-general] Drag n Drop Not working

2009-04-14 Thread Jonty
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'

[wtr-general] How to run Tests continuously?

2009-04-14 Thread Prince3105
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,

[wtr-general] Re: firewatir and jssh

2009-04-14 Thread Angrez Singh
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