[wtr-general] Re: Watir + test unit + windows strange behavior
The unit test is running according to the name of the def. So you should make the definition for the name as following: def test_a .. end def test_b end def test_c . end and so on. It will running on order,hope that help. -Zhong On Oct 22, 7:25 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi Frédéric ! I'm not seeing this issue on Watir 1.6.2, ruby 1.8.6 patchlevel 0. Can you give us the code that is establishing your browser and running your tests? I've posted an example Test::Unit framework here if you'd like to compare it to what you're doing: http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Dat... Hope this helps! -Tiffany On Oct 21, 9:59 am, de Villamil Frédéric fdevilla...@gmail.com wrote: Hi list, I'm running Watir 1.6.2 under ruby 1.8.6 patchlevel 111 It seems that when I'm running my test suit, it starts all tests in parallel, launching as many Internet Explorer windows as test, which gets a bit messy. I have the same issue using Firewatir under Windows. Things are running smoothly with both Safari and Firefox on OS X. Have anyone ever met such a behavior or may have any useful resource to point me to? Regards, Frédéric -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.com tel: +33 (0)6 62 19 1337http://t37.net Typo :http://typosphere.org --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: After upgrading to Watir 1.6.2, it is not working fine.
Hi, I tried adding require rubygems but i did not get the error rectified and i got following C:\irb irb(main):001:0 require rubygems = false irb(main):002:0 require watir LoadError: no such file to load -- watir from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `require' from (irb):2 irb(main):003:0 require 'watir' LoadError: no such file to load -- watir from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `require' from (irb):3 irb(main):004:0 C:\ Please let me what i need to do further Thanks in advance Naveen On Oct 22, 7:13 am, Bret Pettichord b...@pettichord.com wrote: Željko Filipin wrote: I'm using the latest release candidate of Ruby 1.8.6-27 on a PC I do not think that is the problem, buthttp://watir.com/installation/ says: We recommend using Ruby 1.8.6-26 with Watir 1.6. Željko Zeljko, We say this because of a click-no-wait bug in 1.8.6-27. FYI, this bug is fixed in watir 1.6.5 (forthcoming). Bret -- Bret Pettichord Lead Developer, Watir,www.watir.com Blog,www.io.com/~wazmo/blog Twitter,www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Problem with Checkbox
Any suggestions on the above issue? Please help On Wed, Oct 21, 2009 at 5:49 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: No,it does not flash up anything. It also does not display any error and goes to next step On Wed, Oct 21, 2009 at 5:39 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Does this flash what you want? Browser.span(:text, Ratingsanity1).flash Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Problem with radio button
Help required on above issue :-) 2009/10/21 Amit Kulkarni amitkkulkarni...@gmail.com -- Forwarded message -- From: Amit Kulkarni amitkkulkarni...@gmail.com Date: Wed, Oct 21, 2009 at 4:40 PM Subject: Re: [wtr-general] Re: Problem with radio button To: watir-general@googlegroups.com No it does not flashed the radio button but again it is popping the window. I dont know why it is getting popped up. Any suggestions?? On Wed, Oct 21, 2009 at 4:25 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Oct 21, 2009 at 12:51 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: It pops up a small window saying Please select an operation along with OK button. Is the correct radio button flashed if you do this? browser.radio(:after?, browser.cell(:text, Test)).flash Maybe you have to fire some javascript event. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Browse an Image
Thanks a lot Željko . On Wed, Oct 21, 2009 at 1:43 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Oct 21, 2009 at 9:06 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Browser.file_field(:name, photo).set(path name i.e. C:\\abc\\abc.jpg) Please dont forget to enter double slash. If you use single quotes, I think you do not need double slash: browser.file_field(:name, photo).set('C:\abc.jpg') Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Help required regarding link method
Hello all, Following is my scenario: I have a list of images and below that image contains Edit link. Now i want to click on that Edit so that i can Edit the Title and Description. Following is the html code: div style=width: 150px; height: 150px;input id=attachment[218] type= checkbox value=1 name=attachment[218]/ img title=Photogallerysanity src= http://s3.amazonaws.com/staging-brandpotion-prints/images/63/large_thumb.jpg alt=Photogallerysanity/ a class=underline href= /Nikes/photo_gallery/attachments/218/edit?media=printEdit/a /div From the above script my image title is Photogallerysanity.And below is Edit link. Now i can click on that Edit link using :href method but it will contain the link /Nikes/photo_gallery/attachments/218/edit?media=print Now the above link uses a no. to recognize.But i want to recognize this Edit link using the image title. Is it possible to do? Please help...! --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
On Thu, Oct 22, 2009 at 10:05 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: i want to recognize this Edit link using the image title. browser.link(:after?, browser.image(:title, Photogallerysanity)).click Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Thanks for any support you can offer
Thomas, I do not think this e-mail is appropriate for watir-general. I have removed it from the web site. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Team (was: Sai)
On Thu, Oct 22, 2009 at 1:31 AM, Paul Rogers paul.rog...@shaw.ca wrote: until I read that I thought I was still an active member of watir, even though I cant remember the last time I did a check in ;-( Paul, I have no problem with moving you to active members. I just thought it would be appropriate to put you in Alumni section, since (as far as I know) you did not contribute for a long time. Would you like me to make the change? Anybody do not think it would be a good idea? Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to access methods from Modules
On Thu, Oct 22, 2009 at 4:07 AM, Bret Pettichord b...@pettichord.com wrote: I don't know if any one is using it any more. Sounds to me like it should be removed from Watir. :) Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Team (was: Sai)
On Thu, Oct 22, 2009 at 10:18 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Anybody do not think it would be a good idea? This should be: Anybody thinks it would not be a good idea? Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Team (was: Sai)
I think, Watir general is a great group, it is kind of because there are many kind men who are generous. I think we won't reject any guys who wants to contribute. We may allow any talent to share their ideas, even if they may leave in seconds. Do you think so? Thanks. Wesley Chen. For life, the easier, the better. On Thu, Oct 22, 2009 at 5:15 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 10:18 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Anybody do not think it would be a good idea? This should be: Anybody thinks it would not be a good idea? Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir + test unit + windows strange behavior
Hello, Thank you for teling me. I've been developping with Ruby for more than 6 years now and know how to make test suits. My issue is more like as soon as a test attaches the browser, it starts the next one, opens a new browser windows and tries to run it as a parallel process. I'm digging for a Ruby issue (and patchlevel was 110) Regards, Frédéric Le 22 oct. 2009 à 08:26, yuping zhong a écrit : The unit test is running according to the name of the def. So you should make the definition for the name as following: def test_a .. end def test_b end def test_c . end and so on. It will running on order,hope that help. -Zhong On Oct 22, 7:25 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi Frédéric ! I'm not seeing this issue on Watir 1.6.2, ruby 1.8.6 patchlevel 0. Can you give us the code that is establishing your browser and running your tests? I've posted an example Test::Unit framework here if you'd like to compare it to what you're doing: http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with +Dat... Hope this helps! -Tiffany On Oct 21, 9:59 am, de Villamil Frédéric fdevilla...@gmail.com wrote: Hi list, I'm running Watir 1.6.2 under ruby 1.8.6 patchlevel 111 It seems that when I'm running my test suit, it starts all tests in parallel, launching as many Internet Explorer windows as test, which gets a bit messy. I have the same issue using Firewatir under Windows. Things are running smoothly with both Safari and Firefox on OS X. Have anyone ever met such a behavior or may have any useful resource to point me to? Regards, Frédéric -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337http://t37.net Typo :http://typosphere.org -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to access methods from Modules
Hi Tiffany, Thanks for the reply. I have modified my code require 'test/unit' require watir require 'watir/testcase' require 'watir/watir_simple' include Watir::Simple class Login Watir::TestCase def test_login ie=Watir::IE.new ie.goto(SOME LINK) ie.link(:href,some link).click ie.link(:href,some link).click ie.new_browser_at (www.google.com) # WILL WORK ie.navigate_to (www.google.com) # WILL NOT WORK ie.assert_text_in_body(Please enter your Username ,nil)# WILL NOT WORK end end Some Methods like new_browser_at will work since @@browser variable was initialized But Methods like navigate_to and assert_text_in_body' will not work since browser class variable was not initialized. --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to access methods from Modules
On Thu, Oct 22, 2009 at 12:28 PM, abhisheksreepal abhisheksree...@gmail.com wrote: require 'watir/watir_simple' include Watir::Simple I think that watir simple is not supported any more. You should use regular watir, it is not more complicated. Start here: http://wiki.openqa.org/display/WTR/Tutorial Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
Hi Željko, I tried browser.link(:after?, browser.image(:title, Photogallerysanity)).click but no success I also tried using .flash method but it does not flash anything. Can you please tell me what is going wrong? On Thu, Oct 22, 2009 at 1:40 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 10:05 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: i want to recognize this Edit link using the image title. browser.link(:after?, browser.image(:title, Photogallerysanity)).click Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
On Thu, Oct 22, 2009 at 12:36 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: I tried browser.link(:after?, browser.image(:title, Photogallerysanity)).click but no success Amit, You have posted a few very similar questions in the last two days. Have you read the tutorial? http://wiki.openqa.org/display/WTR/Tutorial Does your application use frames? I tested the code I posted with html that you have provided, and it worked. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
Sorry for the trouble. I got it that my queries are similar. But i dont know why is it not working on my side. No my application does not use frames. Even i try to flash any object it does not. Can you tell me what is the problem? On Thu, Oct 22, 2009 at 4:17 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:36 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: I tried browser.link(:after?, browser.image(:title, Photogallerysanity)).click but no success Amit, You have posted a few very similar questions in the last two days. Have you read the tutorial? http://wiki.openqa.org/display/WTR/Tutorial Does your application use frames? I tested the code I posted with html that you have provided, and it worked. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
On Thu, Oct 22, 2009 at 1:10 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Even i try to flash any object it does not. Can you tell me what is the problem? No. It could help if the application is public and you provided the link to it, so I could take a look. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
Sorry again, Yes i read the tutorial. I tried some stunts but no success.So posted my queries here. On Thu, Oct 22, 2009 at 4:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:47 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Have you read the tutorial? http://wiki.openqa.org/display/WTR/Tutorial You did not answer this. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
I also tried to use using Xpath. i.e. Browser.link(:xpath,//a...@href='/Nikes/photo_gallery/attachments/218/edit?media=print']/).text # = Edit Still no success.Is there something wrong with the above code? On Thu, Oct 22, 2009 at 4:55 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: Sorry again, Yes i read the tutorial. I tried some stunts but no success.So posted my queries here. On Thu, Oct 22, 2009 at 4:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:47 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Have you read the tutorial? http://wiki.openqa.org/display/WTR/Tutorial You did not answer this. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] firewatir not able to recognise the text box
Hi All, When i am running the ruby test from eclipse , the text box in the firefox is not getting recognised because of id=advSearchFirstSearchTerm class=adv_searchTerm type=text value= name=firstSearchTerm onfocus=select() style=background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial I've used all the possible methods like set/type in the text box by using id/name but no result. ( The section in the red is coming automatically) The same test is working ok if i dont run it from eclipse ( of course the section in the red is not coming ). Always working ok in IE6.0/IE7.0 any solution to this Thanks arihan --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
can you try this? Browser.link(:xpath,//i...@title='Photogallerysanity']/a).flash() or click() - Angrez On Thu, Oct 22, 2009 at 5:03 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: I also tried to use using Xpath. i.e. Browser.link(:xpath,//a...@href='/Nikes/photo_gallery/attachments/218/edit?media=print']/).text # = Edit Still no success.Is there something wrong with the above code? On Thu, Oct 22, 2009 at 4:55 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Sorry again, Yes i read the tutorial. I tried some stunts but no success.So posted my queries here. On Thu, Oct 22, 2009 at 4:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:47 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Have you read the tutorial? http://wiki.openqa.org/display/WTR/Tutorial You did not answer this. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to access methods from Modules
Hi Zeljko, Thanks for the reply. I'll start using Regular watir But incase if anyone wanted to use .. i got a SOLUTION Solution 1:Better one I just added this setter method in this file (C:\Ruby\lib\ruby\gems \1.8\gems\watir-1.6.2\lib\watir\watir_simple) def assignBrowser(browser) @@browser = browser; #Abhishek Sreepal added for his convenience end To access another methods First we have to call this method (assignBrowser)and then we can call another methods like navigate_to and assert_text_in_body' Solution 2: To access methods like navigate_to and assert_text_in_body' , first we need to call the first method which is new_browser_at(url) and then we can call methods like navigate_to and assert_text_in_body' --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
Hi Angrez, I tried with the link you provided but it shows below error Unable to locate element, using :xpath, //i...@title='Photogallerysanity']/ (Watir::Exception::UnknownObjectException) Same error appears when i use .click or .flash On Thu, Oct 22, 2009 at 5:14 PM, Angrez Singh ang...@gmail.com wrote: can you try this? Browser.link(:xpath,//i...@title='Photogallerysanity']/a).flash() or click() - Angrez On Thu, Oct 22, 2009 at 5:03 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: I also tried to use using Xpath. i.e. Browser.link(:xpath,//a...@href='/Nikes/photo_gallery/attachments/218/edit?media=print']/).text # = Edit Still no success.Is there something wrong with the above code? On Thu, Oct 22, 2009 at 4:55 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Sorry again, Yes i read the tutorial. I tried some stunts but no success.So posted my queries here. On Thu, Oct 22, 2009 at 4:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:47 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Have you read the tutorial? http://wiki.openqa.org/display/WTR/Tutorial You did not answer this. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: firewatir not able to recognise the text box
Can you post the HTML and your ruby code for the same? On Thu, Oct 22, 2009 at 5:14 PM, arihan sinha arihan.si...@googlemail.comwrote: Hi All, When i am running the ruby test from eclipse , the text box in the firefox is not getting recognised because of id=advSearchFirstSearchTerm class=adv_searchTerm type=text value= name=firstSearchTerm onfocus=select() style=background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial I've used all the possible methods like set/type in the text box by using id/name but no result. ( The section in the red is coming automatically) The same test is working ok if i dont run it from eclipse ( of course the section in the red is not coming ). Always working ok in IE6.0/IE7.0 any solution to this Thanks arihan --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Problem with radio button
Try something like this where value=delete or update ie.radio(:name,'act2[165]',value).focus ie.radio(:name,'act2[165]'',value).set --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Problem with radio button
Thanks a lot.But the name act2[165] is not going to be same all the time. I have my poll title as Test.So i want to set my focus on delete radio button whose title is Test. Is it possible to do this? This is my html script tr tdTest/td tdUnpublished/td td class=actions label for=Update input id=act2_165_update type=radio value=update name=act2 [165]/ Update /label label for=del2 input id=act2_165_delete type=radio value=delete name=act2 [165]/ Delete /label /td Now here tdTest/td is the title of the poll. So i want to click on delete radio button which has a title named Test :-) On Thu, Oct 22, 2009 at 6:51 PM, Super Kevy kpe...@scholarshipamerica.orgwrote: Try something like this where value=delete or update ie.radio(:name,'act2[165]',value).focus ie.radio(:name,'act2[165]'',value).set --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Problem with radio button
Interesting... I'm assuming table matching is the ticket and dynamic variables being the pain... Try this snippet and modify to suit for page require 'watir' require 'watir/ie' require 'watir/dialog' require 'Win32API' ie = Watir::IE.new sURL='http://www.google.com' sURL='C:\Documents and Settings\kpetry\Desktop\t.html' ie.goto(sURL) ie.bring_to_front() myTable=ie.table(:index,1) # loop through the table by indexing the first variable if needed until a match pollText=myTable[1][1].text.upcase #Obvious Text matching here Then invoke this code stream theParse=myTable[1][3].attribute_value(InnerHTML) puts theParse iStart = theParse.rindex('id=')+3 iEnd = theParse.rindex('type=radio')-1 theId= theParse.slice!(iStart..iEnd).strip! puts iStart.to_s puts iEnd.to_s puts theId+'..' ie.radio(:id, theId ).flash ie.radio(:id, theId ).set On Oct 22, 8:31 am, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Thanks a lot.But the name act2[165] is not going to be same all the time. I have my poll title as Test.So i want to set my focus on delete radio button whose title is Test. Is it possible to do this? This is my html script tr tdTest/td tdUnpublished/td td class=actions label for=Update input id=act2_165_update type=radio value=update name=act2 [165]/ Update /label label for=del2 input id=act2_165_delete type=radio value=delete name=act2 [165]/ Delete /label /td Now here tdTest/td is the title of the poll. So i want to click on delete radio button which has a title named Test :-) On Thu, Oct 22, 2009 at 6:51 PM, Super Kevy kpe...@scholarshipamerica.orgwrote: Try something like this where value=delete or update ie.radio(:name,'act2[165]',value).focus ie.radio(:name,'act2[165]'',value).set- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Team (was: Sai)
no, dont worry about making the change. Maybe if I do some commits I can work my way back up to active. On Thu, Oct 22, 2009 at 2:18 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 1:31 AM, Paul Rogers paul.rog...@shaw.ca wrote: until I read that I thought I was still an active member of watir, even though I cant remember the last time I did a check in ;-( Paul, I have no problem with moving you to active members. I just thought it would be appropriate to put you in Alumni section, since (as far as I know) you did not contribute for a long time. Would you like me to make the change? Anybody do not think it would be a good idea? Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Team (was: Sai)
On Thu, Oct 22, 2009 at 5:02 PM, Paul Rogers paul.rog...@shaw.ca wrote: Maybe if I do some commits I can work my way back up to active. We are all waiting for that drag and drop stuff. :) Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: firewatir not able to recognise the text box
Thanks Angrez for looking into it. The html code div class=adv_search_box input type=text onfocus=select() class=adv_searchTerm id= advSearchFirstSearchTerm name=firstSearchTerm value=/ in select size=1 name=firstFieldName id=firstFieldName option value=AllFields All Fields /option option value=ArticleTitleAbstractKeywords Article Title, Abstract, Keywords /option option value=Authors Authors /option option value=ArticleTitle Article Title /option option value=Abstract Abstract /option /select *The rubycode* require 'watir' # the controller include Watir require 'test/unit/ui/console/testrunner' require 'test/unit/testsuite' require 'firewatir' include FireWatir class Sampletest Test::Unit::TestCase def test_firefox $ie = FireWatir::Firefox.new $ie.goto('http://www.thelancet.com/advancedsearch') $ie.text_field(:name, firstSearchTerm).set(blood) sleep 5.0 $ie.close end end *The errors* 1) Error: test_firefox(Sampletest): SystemStackError: stack level too deep c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container. rb:451:in `js_eval_method' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBas eElement.rb:991:in `enabled?' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBas eElement.rb:977:in `assert_enabled' c:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:266:in `focus' c:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:267:in `focus' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/htmlelemen ts.rb:1339:in `set' watir_Sample.rb:22:in `test_firefox' 1 tests, 0 assertions, 0 failures, 1 errors Please let me know if you need anything else. Thanks Arihan On Thu, Oct 22, 2009 at 1:58 PM, Angrez Singh ang...@gmail.com wrote: Can you post the HTML and your ruby code for the same? On Thu, Oct 22, 2009 at 5:14 PM, arihan sinha arihan.si...@googlemail.com wrote: Hi All, When i am running the ruby test from eclipse , the text box in the firefox is not getting recognised because of id=advSearchFirstSearchTerm class=adv_searchTerm type=text value= name=firstSearchTerm onfocus=select() style=background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial I've used all the possible methods like set/type in the text box by using id/name but no result. ( The section in the red is coming automatically) The same test is working ok if i dont run it from eclipse ( of course the section in the red is not coming ). Always working ok in IE6.0/IE7.0 any solution to this Thanks arihan --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Use Rpec in SciTE
Hi, I am executing my Watir Scripts using SciTE tool.I was using Unit Test framework I recently came to know about Rspec framework But i can execute only in cmd prompt for e.g C:\spec test.rb --format specdoc But i want to Run the Script using Rspec in SciTE. Please help me how to run in my script in SciTE using Rspec framework --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: firewatir not able to recognise the text box
works for me: require 'watir' # the controller require 'test/unit/ui/console/testrunner' require 'test/unit/testsuite' class Sampletest Test::Unit::TestCase def test_firefox $ie = FireWatir::Firefox.new $ie.goto('http://www.thelancet.com/advancedsearch') $ie.text_field(:name, firstSearchTerm).set(blood) sleep 5.0 $ie.close end end - Angrez On Thu, Oct 22, 2009 at 9:07 PM, arihan sinha arihan.si...@googlemail.comwrote: Thanks Angrez for looking into it. The html code div class=adv_search_box input type=text onfocus=select() class=adv_searchTerm id= advSearchFirstSearchTerm name=firstSearchTerm value=/ in select size=1 name=firstFieldName id=firstFieldName option value=AllFields All Fields /option option value=ArticleTitleAbstractKeywords Article Title, Abstract, Keywords /option option value=Authors Authors /option option value=ArticleTitle Article Title /option option value=Abstract Abstract /option /select *The rubycode* require 'watir' # the controller include Watir require 'test/unit/ui/console/testrunner' require 'test/unit/testsuite' require 'firewatir' include FireWatir class Sampletest Test::Unit::TestCase def test_firefox $ie = FireWatir::Firefox.new $ie.goto('http://www.thelancet.com/advancedsearch') $ie.text_field(:name, firstSearchTerm).set(blood) sleep 5.0 $ie.close end end *The errors* 1) Error: test_firefox(Sampletest): SystemStackError: stack level too deep c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container. rb:451:in `js_eval_method' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBas eElement.rb:991:in `enabled?' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBas eElement.rb:977:in `assert_enabled' c:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:266:in `focus' c:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:267:in `focus' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/htmlelemen ts.rb:1339:in `set' watir_Sample.rb:22:in `test_firefox' 1 tests, 0 assertions, 0 failures, 1 errors Please let me know if you need anything else. Thanks Arihan On Thu, Oct 22, 2009 at 1:58 PM, Angrez Singh ang...@gmail.com wrote: Can you post the HTML and your ruby code for the same? On Thu, Oct 22, 2009 at 5:14 PM, arihan sinha arihan.si...@googlemail.com wrote: Hi All, When i am running the ruby test from eclipse , the text box in the firefox is not getting recognised because of id=advSearchFirstSearchTerm class=adv_searchTerm type=text value= name=firstSearchTerm onfocus=select() style=background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial I've used all the possible methods like set/type in the text box by using id/name but no result. ( The section in the red is coming automatically) The same test is working ok if i dont run it from eclipse ( of course the section in the red is not coming ). Always working ok in IE6.0/IE7.0 any solution to this Thanks arihan --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: cannot register window class in IE8
Hi Bret, I am getting an unspecified WIN32OLERuntimeError. Not much information, I know. Aidy 2009/10/22 Bret Pettichord b...@pettichord.com: I haven't heard of this. Can your provide a stack trace and complete error message? Bret aidy lewis wrote: Hi, Has anyone received 'cannot register window class' errors when running Watir tests in IE8? Aidy -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: cannot register window class in IE8
Couple of thoughts in the following: http://www.microsoft.com.nsatc.net/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.internetexplorer.betatid=77003381-d793-4236-a6a6-5466c779b85dcat=lang=cr=sloc=p=1 In a nutshell, three potential options: 1. Ctrl-F5 2. Delete temporary internet files 3. Disable Fireshot plugin in FF and try again On Thu, Oct 22, 2009 at 11:38 AM, aidy lewis aidy.le...@googlemail.comwrote: Hi Bret, I am getting an unspecified WIN32OLERuntimeError. Not much information, I know. Aidy 2009/10/22 Bret Pettichord b...@pettichord.com: I haven't heard of this. Can your provide a stack trace and complete error message? Bret aidy lewis wrote: Hi, Has anyone received 'cannot register window class' errors when running Watir tests in IE8? Aidy -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: cannot register window class in IE8
Jason, Looks like the fireshot plugin for IE. Aidy 2009/10/22 Jason Trebilcock jason.trebilc...@gmail.com: Couple of thoughts in the following: http://www.microsoft.com.nsatc.net/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.internetexplorer.betatid=77003381-d793-4236-a6a6-5466c779b85dcat=lang=cr=sloc=p=1 In a nutshell, three potential options: 1. Ctrl-F5 2. Delete temporary internet files 3. Disable Fireshot plugin in FF and try again On Thu, Oct 22, 2009 at 11:38 AM, aidy lewis aidy.le...@googlemail.com wrote: Hi Bret, I am getting an unspecified WIN32OLERuntimeError. Not much information, I know. Aidy 2009/10/22 Bret Pettichord b...@pettichord.com: I haven't heard of this. Can your provide a stack trace and complete error message? Bret aidy lewis wrote: Hi, Has anyone received 'cannot register window class' errors when running Watir tests in IE8? Aidy -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Watir 1.6.5.rc2 - release candidate available for testing
Hi all, We have a new version of Watir for testing, 1.6.5.rc2. the release is here with instructions: http://wiki.openqa.org/display/WTR/Development+Builds If you have a chance to take a look at it, let us know. There have been a few changes since the last release candidate, most of those are bug fixes for installation and additional fixes for tables, you can view the git history here: http://github.com/bret/watir/commits/master/ I'll be updating the release notes for the recent changes before the final release. Please let us know what you think and any troubles you might have. Cheers, Charley --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Team (was: Sai)
Moved team page to watir.com. http://watir.com/team/ I think it is important for any project to say who is behind it. If you think anybody/anything should be added/removed/edited, please let me know. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] ohloh.net/p/watir
I have spent some time with this today: http://www.ohloh.net/p/watir Take a look. Some interesting statistics about Watir project. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Testing with Windows 7
Hello, I'm not sure if this has been posted before...with the advent of Windows 7, has anyone tried using their Watir scripts against this OS? Our company is gearing up to do this and just wanted to be ready for whatever comes up. Thanks, George --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: `method_missing': unknown property or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba
Can you show us this code? C:/ruby/qa_scripts/OMS/testOrderAck.rb:41 Bret LaurenL wrote: About two weeks ago I stopped being able to run all watir scripts on my machine. I have not updated or changed anything. The same scripts run on a different computer, so I know its not the script. I was wondering if anyone had any ideas on what I could try. The IE6 browser opens but crashes as soon as the script calls the url. This is the error I'm receiving. C:\ruby\qa_scripts\OMStestOrderAck.rb Beginning of test: OrderAck. Step 1: go to the site: Step 2: Go to OrderAck.jsp . c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 447:in `method_ missing': unknown property or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable.from c:/ruby/lib/ruby/gems/1.8/ gems/wati r-1.6.2/lib/watir/ie-class.rb:447:in `document' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ locator.rb:31: in `each_element' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ locator.rb:38: in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ container.rb:7 49:in `locate_tagged_element' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ link.rb:24:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:49: in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:284 :in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:56: in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:229 :in `click!' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:215 :in `click' from C:/ruby/qa_scripts/OMS/testOrderAck.rb:41 Thanks. ~L --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Testing with Windows 7
Testing on windows 7 should be about the same as on Vista, if that's what you're on. If you're on XP now, the major change is with process integrity, introduced in Vista. Basically, if you have to navigate to local files you'll have to either disable some security enhancements in IE (by unchecking Enable Protected Mode in IE options), or run ruby as administrator. This is based on very limited testing I have done in 7, so there may be more issues that I haven't run into. -Ethan On Thu, Oct 22, 2009 at 19:46, George george.sand...@gmail.com wrote: Hello, I'm not sure if this has been posted before...with the advent of Windows 7, has anyone tried using their Watir scripts against this OS? Our company is gearing up to do this and just wanted to be ready for whatever comes up. Thanks, George --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: ohloh.net/p/watir
Željko Filipin wrote: I have spent some time with this today: http://www.ohloh.net/p/watir Take a look. Some interesting statistics about Watir project. This is interesting. You might be interested to see the list of contributors. Please note, however, that I get credit for much of Angrez's work because I committed most of his contributions. https://www.ohloh.net/p/watir/contributors Bret --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required regarding link method
Your this question has taken so much time. I think you still have not described your question clearly enough. For the html code you provided, of course it is easy for us to help you to locate. Please give us the whole page source you failed to locate, and show the error message you got. Thanks. Wesley Chen. For life, the easier, the better. 2009/10/22 Amit Kulkarni amitkkulkarni...@gmail.com Hi Angrez, I tried with the link you provided but it shows below error Unable to locate element, using :xpath, //i...@title='Photogallerysanity']/ (Watir::Exception::UnknownObjectException) Same error appears when i use .click or .flash On Thu, Oct 22, 2009 at 5:14 PM, Angrez Singh ang...@gmail.com wrote: can you try this? Browser.link(:xpath,//i...@title='Photogallerysanity']/a).flash() or click() - Angrez On Thu, Oct 22, 2009 at 5:03 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: I also tried to use using Xpath. i.e. Browser.link(:xpath,//a...@href='/Nikes/photo_gallery/attachments/218/edit?media=print']/).text # = Edit Still no success.Is there something wrong with the above code? On Thu, Oct 22, 2009 at 4:55 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Sorry again, Yes i read the tutorial. I tried some stunts but no success.So posted my queries here. On Thu, Oct 22, 2009 at 4:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:47 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Have you read the tutorial? http://wiki.openqa.org/display/WTR/Tutorial You did not answer this. Ž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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] SafariWatir-general mailing list retired
Hi all - In an effort to consolidate things a bit we've shut down the safariwatir-general mailing list and recommended (as a final message to the list) that folks head over here for questions. The archives are here in case someone needs to look around for historical stuff: http://infoether.com/~tom/safariwatir-general-archives/ So if you notice more safariwatir-related traffic here, that's why :-) Yours, Tom --~--~-~--~~~---~--~~ 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: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---