[wtr-general] Re: Watir ads at stackoverflow.com

2010-02-09 Thread Željko Filipin
Watir ad at stackoverflow.com! :) http://bit.ly/cPmfFn Željko -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines:

Re: [wtr-general] Re: Help required to access src element in the following code.

2010-02-09 Thread Željko Filipin
On Tue, Feb 9, 2010 at 6:23 AM, ashwin mahesh smashwi...@gmail.com wrote: Any idea how to overcome this problem. No, because you did not provide answers to my questions. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host

[wtr-general] Re: Help required to access src element in the following code.

2010-02-09 Thread ashwin mahesh
There is a chart which shows data in four formats namely 2D pie chart, 3D pie chart, bar chart and tabular table. So to change from one type of format to another I need to click on a image. I want to verify whether the chart shown is according to the image on which I clicked. When I click on image

RE: [wtr-general] Help with Modal Dialog boxes !!!!

2010-02-09 Thread Rohan Premvallabh Ojha
Hi, Thanks for the information/URL but I am still unable to move ahead with the modal dialogs. What I have tried so far is: Method I: Used all the methods in the watir.rb file for Class ModalDialog but they don't seem to work with Ruby ver 1.8.6 or 1.8.5 for that matter. So I had Ruby 1.8.2

Re: [wtr-general] Help with Modal Dialog boxes !!!!

2010-02-09 Thread Željko Filipin
On Tue, Feb 9, 2010 at 1:25 PM, Rohan Premvallabh Ojha rohan.o...@bsil.com wrote: I am still unable to move ahead with the modal dialogs. Why are you so sure it is a modal dialog? I am really not familiar with modal dialogs, but from the screen shot, it looks to me that it could be just a new

RE: [wtr-general] Help with Modal Dialog boxes !!!!

2010-02-09 Thread Rohan Premvallabh Ojha
It's a modal dialog window for sure since we cant refresh the new window or do a view source on the same. Also the title of the window just gives it awaydoesn't it ? From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of

[wtr-general] Re: Firewatir rpxnow

2010-02-09 Thread Gimle
Yes it worked. Thank you. On 1 helmi, 19:25, orde ohil...@gmail.com wrote: Take a look athttp://wiki.openqa.org/display/WTR/Frames To click a link in a frame, the syntax is the following: browser.frame(:id, id).link(:id, id).click Hope that helps. orde On Jan 31, 11:28 pm, Gimle

Re: [wtr-general] Help with Modal Dialog boxes !!!!

2010-02-09 Thread Željko Filipin
On Tue, Feb 9, 2010 at 1:46 PM, Rohan Premvallabh Ojha rohan.o...@bsil.com wrote: Also the title of the window just gives it away….doesn’t it ? Pop ups are black magic for me. I have been lucky so far and never had to deal with them, except for file uploads which work just fine. Željko -- You

[wtr-general] Re: Firewatir rpxnow

2010-02-09 Thread Gimle
Yes it worked. Thank you. On 1 helmi, 19:25, orde ohil...@gmail.com wrote: Take a look athttp://wiki.openqa.org/display/WTR/Frames To click a link in a frame, the syntax is the following: browser.frame(:id, id).link(:id, id).click Hope that helps. orde On Jan 31, 11:28 pm, Gimle

Re: [wtr-general] Re: Watir ads at stackoverflow.com

2010-02-09 Thread Frank Harper
I think the image needs to at least mention the name Watir. Bonus points for conveying that it's about testing with browsers. I'm graphicly handicapped, so I can't do it myself. Željko Filipin wrote: Want to see Watir ads on stackoverflow.com http://stackoverflow.com? This answer needs five

Re: [wtr-general] Re: Watir ads at stackoverflow.com

2010-02-09 Thread Željko Filipin
On Tue, Feb 9, 2010 at 3:14 PM, Frank Harper fhar...@greenliff.com wrote: I'm graphicly handicapped, so I can't do it myself. Exactly the reason why I did not do it too. :) There is tool tip when you mouse over the Watir image. If anybody ads some text to the image, I will upload it to stack

Re: [wtr-general] Re: click_no_wait fails when multiple tabs are open in IE7

2010-02-09 Thread Alan Baird
Jarmo - I think I eventually tried the 2nd option which is why I knew it wasn't finding the link. That's a good trick replacing start rubyw with ruby -e...I'll have to try that. Alan On Feb 8, 2010 3:44 AM, Jarmo Pertman jarm...@gmail.com wrote: Hello. unique_number is an method for

Re: [wtr-general] fix funky command line behavior in watir-console

2010-02-09 Thread Alan Baird
Marekj- You are using windows right? What I understood about this is that window commandline already had readline in it so putting it in irb was doing it twice which is what was messing up the commandline in windows. I'm not sure what tab tab and ctrl-r does, but I don't use them and i'd rather

Re: [wtr-general] Help with Modal Dialog boxes !!!!

2010-02-09 Thread Charley Baker
It's a modal dialog alright. puts ie.modal_dialog.html puts ie.modal_dialog.title etc etc Works fine for us with latest Watir and Ruby 186. I've made sure that it does work for each revision of Watir, including recompiling our custom win32ole.so since we have apps that use it fairly extensively

[wtr-general] Watir, Rspec, and radio buttons.

2010-02-09 Thread James
I'm trying to check if a radio button is checked or not, using the Rspec should command, but it's not acting as I would expect. My code: puts questionframe.radio(:id, rlbYesNo_0).checked? questionframe.radio(:id, rlbYesNo_0).checked? should equal true It outputs true for the first line,

Re: [wtr-general] Watir, Rspec, and radio buttons.

2010-02-09 Thread Charley Baker
Wrong matcher, use be_true instead: questionframe.radio(:id, rlbYesNo_0).checked? should be_true -Charley Lead Developer, Watir, http://watir.com On Tue, Feb 9, 2010 at 8:58 AM, James jgcpal...@gmail.com wrote: I'm trying to check if a radio button is checked or not, using the Rspec

[wtr-general] OT: Testing Podcast

2010-02-09 Thread Željko Filipin
If you listen to Watir Podcast, maybe Testing Podcast site will be of interest to you. All audio files on software testing in one place: http://testingpodcast.com/ Feel free to spread the word. If you use Twitter, you can use #TestingPodcast hash tag:

Re: [wtr-general] fix funky command line behavior in watir-console

2010-02-09 Thread Charley Baker
The other option is to install the pure ruby readline gem which replaces the broken version of readline that's otherwise used in Windows. http://github.com/luislavena/rb-readline Luis has also packaged this in the new rubyinstaller for Windows. -Charley On Tue, Feb 9, 2010 at 8:50 AM, Alan

[wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread James
Hmm, that's not working for me. I have: questionframe.radio(:id, rlbYesNo_0).checked? should(be_true) (I also tried it without parentheses and got the same error, plus a warning that I should have parentheses.) This is the output: 1) ArgumentError in 'Yesno should answer Yes on first question'

[wtr-general] Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Matt
Followed these instructions: Install Ruby Install Ruby using the one-click installer for Windows. We recommend using Ruby 1.8.6-26 with Watir 1.6. More details. Watir drivers are packaged as gems, Ruby libraries that can be installed over the internet. Install Watir Type these commands at a

Re: [wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread Charley Baker
Oopsy daisy. I left out a dot. Note the dot before should. questionframe.radio(:id, rlbYesNo_0).checked?.should be_true that.should work :) -c On Tue, Feb 9, 2010 at 9:48 AM, James jgcpal...@gmail.com wrote: Hmm, that's not working for me. I have: questionframe.radio(:id,

[wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread James
That worked perfectly, thanks! James On Feb 9, 12:13 pm, Charley Baker charley.ba...@gmail.com wrote: Oopsy daisy. I left out a dot. Note the dot before should. questionframe.radio(:id, rlbYesNo_0).checked?.should be_true that.should work :) -c On Tue, Feb 9, 2010 at 9:48AM, James

Re: [wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread marekj
On Tue, Feb 9, 2010 at 11:21 AM, James jgcpal...@gmail.com wrote: That worked perfectly, thanks! James On Feb 9, 12:13 pm, Charley Baker charley.ba...@gmail.com wrote: Oopsy daisy. I left out a dot. Note the dot before should. questionframe.radio(:id, rlbYesNo_0).checked?.should be_true

Re: [wtr-general] Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Nathan Lane
I just tried to install the latest Watir and had a similar experience using Ruby 1.8.6. I seem to have heard that 1.9 had been tested on most OSs and so I am uninstalling Ruby 1.8.6 and installing 1.9 to see if I get better results. I will let you know what happens. Nathan On Tue, Feb 9, 2010 at

[wtr-general] How to handle js pop-up confirm windows on a MAC

2010-02-09 Thread QAguy
I am trying to delete a video in my account in the app I'm testing. When I click delete a JS pop-up opens asking if I'm sure I want to do this with a Ok/Cancel button. I am using safariwatir. I found ie/ windows examples for handling these kinds of pop-ups but can't find any examples for

Re: [wtr-general] Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Nathan Lane
I installed Ruby 1.9 from http://rubyinstaller.com/ and ran gem install watir [in MSYS if it matters] and did not experience any problems. I have yet to fully test watir, but so far I am impressed. Upgrade to Ruby 1.9. Nathan On Tue, Feb 9, 2010 at 10:42 AM, Nathan Lane

Re: [wtr-general] Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Nathan Lane
Sorry that was http://rubyinstaller.org/ On Tue, Feb 9, 2010 at 10:55 AM, Nathan Lane nathamberl...@gmail.comwrote: I installed Ruby 1.9 from http://rubyinstaller.com/ and ran gem install watir [in MSYS if it matters] and did not experience any problems. I have yet to fully test watir, but so

[wtr-general] Re: Firewatir cannot find an element on the page

2010-02-09 Thread QAguy
Ok on the folder page if you select a video via a checkbox select and click the move option this is being invoked: li span class=tiny_dot nbsp; /span a onfocus=if(this.blur)this.blur(); onclick=MOBX.Modal.show('move', { folder_id: 706027, verbose: true}); return false; href=#Move/a /li This

[wtr-general] Tried to run unit tests

2010-02-09 Thread Nathan Lane
Alright, I was going to run the unit tests for Watir 1.6, but I keep getting an unusual error. I don't understand it. I do understand what is failing. I'm looking into it more, but so far I haven't gotten anywhere. It has been a lng time since I ran the Watir unit tests, and so maybe something

Re: [wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread Charley Baker
Actually that's a good point, I definitely agree it's cleaner syntax. We use that same syntax all over, rarely check for checked, but certainly use it for exists, include, displayed, etc. Follow Marek's advice. :) -c On Tue, Feb 9, 2010 at 10:39 AM, marekj marekj@gmail.com wrote: On Tue,

[wtr-general] Re: Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Matt
Thanks for the info Nathan. I will do the same. On Feb 9, 12:59 pm, Nathan Lane nathamberl...@gmail.com wrote: Sorry that washttp://rubyinstaller.org/ On Tue, Feb 9, 2010 at 10:55 AM, Nathan Lane nathamberl...@gmail.comwrote: I installed Ruby 1.9 fromhttp://rubyinstaller.com/and ran gem

Re: [wtr-general] Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Alan Baird
See the faq on this ... you need to download rubygems separately (this recently changed)...AB On Feb 9, 2010 11:59 AM, Nathan Lane nathamberl...@gmail.com wrote: Sorry that was http://rubyinstaller.org/ On Tue, Feb 9, 2010 at 10:55 AM, Nathan Lane nathamberl...@gmail.com wrote: I installed

Re: [wtr-general] fix funky command line behavior in watir-console

2010-02-09 Thread marekj
On Tue, Feb 9, 2010 at 9:50 AM, Alan Baird aba...@bairdsnet.net wrote: Marekj- You are using windows right?  What I understood about this is that window commandline already had readline in it so putting it in irb was doing it twice which is what was messing up the commandline in windows. Hi

[wtr-general] Re: Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Matt
ok, I got past the first command and received an error on the 'gem install watir' command. Here is the output: ### C:\Windows\system32gem update --system Updating RubyGems Nothing to update

Re: [wtr-general] Re: Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Nathan Lane
Yeah I was wondering if that might be a problem. I have experienced the same problem in the past. So I guess it did matter that I was using MSYS and MinGW to install the gem. On Tue, Feb 9, 2010 at 11:48 AM, Matt thurman_m...@yahoo.com wrote: ok, I got past the first command and received an

[wtr-general] Re: Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Matt
uninstalling ruby and starting fresh... On Feb 9, 1:54 pm, Nathan Lane nathamberl...@gmail.com wrote: Yeah I was wondering if that might be a problem. I have experienced the same problem in the past. So I guess it did matter that I was using MSYS and MinGW to install the gem. On Tue,

Re: [wtr-general] Tried to run unit tests

2010-02-09 Thread Ethan
Ruby 1.9 switched from Test::Unit to MiniTest. Test::Unit is now available as a gem - do gem install test-unit It's possible you may need to change the test setup code to require the gem version, but I don't think you do. On Tue, Feb 9, 2010 at 13:11, Nathan Lane nathamberl...@gmail.com wrote:

[wtr-general] Re: Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Matt
followed Alan's instructions and this is the outcome of the watir install...notice the ERROR and No Definition messages? ### C:\Windows\system32gem install watir

Re: [wtr-general] Re: Install Error: While executing gem ... (Gem::InstallError)

2010-02-09 Thread Nathan Lane
Well that's not too bad -- you only have problems in the documentation part. So I'd say you are good to go with Watir. Also install the test-unit gem. It was mentioned to me that it doesn't come with Ruby 1.9. On Tue, Feb 9, 2010 at 12:24 PM, Matt thurman_m...@yahoo.com wrote: followed Alan's

[wtr-general] Re: div values in table

2010-02-09 Thread tester86
Hi The value 601 is stored in total and I want to make sure that 'total' matches the value on the screen (overall total). Is there any way that I can compare to make sure that is it the correct total. if total 601 and overall total is 601 passed. I tried to do if $b.contains_text(total) but it

[wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread James
Thanks guys! I'm having similar issues trying to match the value of a text field. textfield.value should equal test gives similar problems I was having before. What should I be using? And is there a list somewhere that I can find all these matchers? I'm having trouble finding a comprehensive

[wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread James
Ok, solved it myself: textfield.value.should == test is what I needed to do. On Feb 9, 3:21 pm, James jgcpal...@gmail.com wrote: Thanks guys! I'm having similar issues trying to match the value of a text field. textfield.value should equal test gives similar problems I was having before.

[wtr-general] Re: div values in table

2010-02-09 Thread orde
browser.contains_text(total) is matching against the string total. If you looking check the value of the variable named total, then you would do this: browser.contains_text(#{total}). Also, the .contains_text method has been deprecated in favor of .text.include? See

Re: [wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread Alan Baird
So charley, does that mean that the rspec predicate matcher for exists? would be ... obj.should be_exists ? On Feb 9, 2010 2:46 PM, James jgcpal...@gmail.com wrote: Ok, solved it myself: textfield.value.should == test is what I needed to do. On Feb 9, 3:21 pm, James jgcpal...@gmail.com

[wtr-general] Re: Running watir tests from command line and from hudson

2010-02-09 Thread Shlomit Gazit
This is a very strange behavior and I am sure it has to do with Microsoft Windows, IE etc. I installed hudson on a brand new machine (VMWare) and it used to run watir with a batch file command (cd the tests directory and runing the .rb test), and then after some days it doesn't work anymore. The

[wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread James
According to http://rspec.rubyforge.org/rspec/1.1.9/classes/Spec/Matchers.html it would just be obj.should exist On Feb 9, 4:26 pm, Alan Baird aba...@bairdsnet.net wrote: So charley, does that mean that the rspec predicate matcher for exists? would be ... obj.should be_exists ? On Feb 9,

[wtr-general] Re: Help required to access src element in the following code.

2010-02-09 Thread jw
ok i get it. it's an embed element as opposed to a button or link, etc. if you have an IE object you can use the html method to get the html text. not great but might do the trick On Feb 9, 6:11 am, ashwin mahesh smashwi...@gmail.com wrote: There is a chart which shows data in four formats

RE: [wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread Alan Baird
According to http://rspec.rubyforge.org/rspec/1.1.9/classes/Spec/Matchers.html it would just be obj.should exist James - I agree that it should be this way, but the way I'm reading this line leads me to believe otherwise: All you need to do is write +should be_+ followed by the predicate

[wtr-general] watir install fubared by win32-api-1.4.6 ??

2010-02-09 Thread Alan Baird
All - Maybe I'm the only one that is having this problem but as I was trying to install Watir today from a fresh install (using ruby 1.8.6 and downloading the rubygems installer), I get the following message: Y:\abaird\ruby_install\rubygems-1.3.5\rubygems-1.3.5gem install watir Building native

[wtr-general] Re: Help with Modal Dialog boxes !!!!

2010-02-09 Thread jw
By having the access right do you mean access as in permissions or just you're not accessing it correctly? I have been using enabled_popup and WinClicker to interact with javascript modal dialogs with decent success. The button I had to click was labelled Open but the button name I had to pass to

Re: [wtr-general] Re: Watir, Rspec, and radio buttons.

2010-02-09 Thread marekj
On Tue, Feb 9, 2010 at 4:54 PM, Alan Baird alan.ba...@riskmetrics.com wrote: According to http://rspec.rubyforge.org/rspec/1.1.9/classes/Spec/Matchers.html it would just be obj.should exist James - I agree that it should be this way, but the way I'm reading this line leads me to believe

[wtr-general] Re: How much time does Watir waits for the page to load?

2010-02-09 Thread Logic Bomb
Thanks Wesley! On Feb 9, 2:56 pm, Wesley Chen cjq@gmail.com wrote: Of course not. It will wait no more than 300s. Please search in the group, I think you can get what you want. Wesley. For life, the easier, the better. On Tue, Feb 9, 2010 at 11:39 AM, Logic Bomb januwa...@yahoo.com

RE: [wtr-general] Help with Modal Dialog boxes !!!!

2010-02-09 Thread Rohan Premvallabh Ojha
HI Charley, I had tried the method that you have specified and re-tried it after your post again. This is the message that comes up when I try to use it : ruby nn.rb c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.2/./watir.rb:2775:in `initialize': IE#modal_dialog not supported with the current

[wtr-general] Difference in behaviour of .text method in Watir and FireWatir.

2010-02-09 Thread Betsy
Hi Angrez, We have a scenario wherein we need to confirm the presence of a particular text string on a page. String as it appears on screen = New Delhi to Mumbai Html = bNew Delhi/b to bMumbai/b String returned by .text in Watir = New Delhi to Mumbai String returned by .text in FiewWatir =

[wtr-general] Re: .text method in Watir and FireWatir

2010-02-09 Thread Betsy
Hi Tiffany, Waiting for your response on the issue with the .text method. On Feb 8, 8:40 am, Betsy joybe...@gmail.com wrote: Hi Tiffany, Hope you have received the source code and other details as required. Kindly help us out with a resolution. Thanks in advance,BetsyJoy. On Feb 5, 9:14