[wtr-general] Re: bring_to_front
Hi, I am using watir 1.6.2(installed yesterday-17/Feb/2009). ie.bring_to_front() is not working. application is not coming front but the script runs fine. wats the problem. Thanks, Venkat On Feb 18, 2:08 pm, venky venkatesh...@gmail.com wrote: Hi, I am using watir 1.6.2(installed yesterday-17/Feb/2009). ie.bring_to_front() is not working. application is not coming front but the script runs find. wats the problem. Thanks, Venkat --~--~-~--~~~---~--~~ 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] dd element of HTML
Hi, I have a dd (Data Definition) element inder a dl (Definition list). The x-path for it is : /html/body/d...@id='vidmn']/d...@id='content']/d...@id='vid_pnp']/div[2]/d...@id='onecol']/d...@id='rel_outer']/div/d...@id='pnp_relvid1']/d...@id='rvid4']/d...@id='rel_4']/dl/dd[1] I want to declare the object in the repository file as :- @data = @browser.* class*(:xpath, /html/body/d...@id='vidmn']/d...@id='content']/d...@id='vid_pnp']/div[2]/d...@id='onecol']/d...@id='rel_outer']/div/d...@id='pnp_relvid1']/d...@id='rvid4']/d...@id='rel_4']/dl/dd[1]) What should be the class in the above definition ? Kindly help me... Regards Niharika --~--~-~--~~~---~--~~ 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: click_no_wait firefox walkaround not working
Looks like bug to me .. could you please log this into JIRA - Angrez On Tue, Feb 17, 2009 at 11:04 PM, zeng0030 zeng0...@gmail.com wrote: Hi guys, I tried the click_no_wait walkaround for firefox posted on the firewatir compability page, def click_no_wait(object_name) $jssh_socket.send(browser.contentWindow.setTimeout(function() {document.forms[0].#{object_name}.click()},0);\n, 0) self.read_socket() end However, I got NoMethodError: undefined method `read_socket' for error. I include require 'firewatir', require 'win32ole' in my script. Did I miss something? Thanks! --~--~-~--~~~---~--~~ 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: click_no_wait firefox walkaround not working
Just went through the code for click_no_wait don't think that if it is supported right now you can use startClicker for dealing with js pop ups. Look at the unit tests for more details. - Angrez On Wed, Feb 18, 2009 at 4:28 PM, Angrez Singh ang...@gmail.com wrote: Looks like bug to me .. could you please log this into JIRA - Angrez On Tue, Feb 17, 2009 at 11:04 PM, zeng0030 zeng0...@gmail.com wrote: Hi guys, I tried the click_no_wait walkaround for firefox posted on the firewatir compability page, def click_no_wait(object_name) $jssh_socket.send(browser.contentWindow.setTimeout(function() {document.forms[0].#{object_name}.click()},0);\n, 0) self.read_socket() end However, I got NoMethodError: undefined method `read_socket' for error. I include require 'firewatir', require 'win32ole' in my script. Did I miss something? Thanks! --~--~-~--~~~---~--~~ 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] Failed to start because msvcr80-ruby18.dll was not found
When I try to require watir and run this file I got the error This application failed to start because msvcr80-ruby18.dll was not found. Re-installing the application may fix this problem. I reinstalled ruby and watir gem two times but still have this error. Windows-pr gem is installed too. Did anybody saw this error before? --~--~-~--~~~---~--~~ 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: dd element of HTML
Thanks John :) Yes, I would shorten the xpath to //d...@id='rel_outer']/div/d...@id='pnp_relvid1']/d...@id='rvid4']/d...@id='rel_4']/dl/dd[1] Regards Niharika On Wed, Feb 18, 2009 at 4:26 PM, John Kolokotronis johnj...@gmail.comwrote: I don't think there is a class for a dd element - but since you are using xpath to identify your element anyway, you don't need it - just use: @browser.element_by_xpath(//yourxpathExpressionGoesHere) And it might be a good idea to shorten that xpath if you it identifies correctly further down the tree, like on the last div or something. Regards, John --~--~-~--~~~---~--~~ 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: dd element of HTML
I had the same thing. Goto C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir Open non_control_elements Find This: # this class is used to deal with Div tags in the html page. http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/div.as p?frame=true # It would not normally be created by users class Div NonControlElement TAG = 'DIV' end Place this under that line. # this class is used by My Companhy instead of a div tag. class DD NonControlElement TAG = 'DD' end Include this in your script def dd(how, what) return dd.new(self, how, what) end #I use it like this. label_id = $ie.dd(:after?, $ie.label(:text,label)) Hope this helps. Remember to add this to your documentation because when you update you may have to re-add Darin From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Niharika Patro Sent: Wednesday, February 18, 2009 4:25 AM To: watir-general@googlegroups.com Subject: [wtr-general] dd element of HTML Hi, I have a dd (Data Definition) element inder a dl (Definition list). The x-path for it is : /html/body/d...@id='vidmn']/d...@id='content']/d...@id='vid_pnp']/div[2 ]/d...@id='onecol']/d...@id='rel_outer']/div/d...@id='pnp_relvid1']/d...@i d='rvid4']/d...@id='rel_4']/dl/dd[1] I want to declare the object in the repository file as :- @data = @browser.class(:xpath, /html/body/d...@id='vidmn']/d...@id='content']/d...@id='vid_pnp']/div[2 ]/d...@id='onecol']/d...@id='rel_outer']/div/d...@id='pnp_relvid1']/d...@i d='rvid4']/d...@id='rel_4']/dl/dd[1]) What should be the class in the above definition ? Kindly help me... Regards Niharika --~--~-~--~~~---~--~~ 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] Win32::API::Error
Hello, untill recently Watir worked fine, but today, when I run a script I get the Error message: c:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/api.rb: 333:in 'initialize' : Attempt to format message failed (Win32::API::Error) In my script I have: require 'win32ole' How do I solve this problem? Cheers! --~--~-~--~~~---~--~~ 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] problem accessing textfield property
I don't know why but it takes 20 seconds to do this, anybody knows another way to do it? The problem comes up when you try to access a property like for example 'name' 20.times{ nameFields=ie.text_fields.each { |t| t.name } } Thanks in advance --~--~-~--~~~---~--~~ 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] installing Firewatir and running tests
Please guide me in installing Firewatir and Safarwatir on Linux and Mac OS. I have installed it looking into each and every doc/link available on net, and also posted but no solution and its really testing my patience.. so plz tell me in detail (step by step) how to install and run tests on firewatir. thanks sachin --~--~-~--~~~---~--~~ 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: Win32::API::Error
you may need to reinstall a gem. please see the recent notice, gem recall. bret magn...@ifi.uio.no wrote: Hello, untill recently Watir worked fine, but today, when I run a script I get the Error message: c:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/api.rb: 333:in 'initialize' : Attempt to format message failed (Win32::API::Error) In my script I have: require 'win32ole' How do I solve this problem? Cheers! --~--~-~--~~~---~--~~ 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] Code to Create Test Suite/Set in Watir or Run Series of scripts
Hi I'm a tester who is new to Watir. I set up Watir on my machine just last week. I know only a little bit of coding and was looking for some code or explanation on how to run a series of test scripts in Watir. Would anyone be willing to share some code or anyone care to elaborate on how to create a test suite or how to run a series of scripts created in Watir? Thanks much, Jim VA --~--~-~--~~~---~--~~ 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: Code to Create Test Suite/Set in Watir or Run Series of scripts
I would go to the Start Here section of the following link. http://wiki.openqa.org/display/WTR/Project+Home -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of jimamdg Sent: Wednesday, February 18, 2009 1:49 PM To: Watir General Subject: [wtr-general] Code to Create Test Suite/Set in Watir or Run Series of scripts Hi I'm a tester who is new to Watir. I set up Watir on my machine just last week. I know only a little bit of coding and was looking for some code or explanation on how to run a series of test scripts in Watir. Would anyone be willing to share some code or anyone care to elaborate on how to create a test suite or how to run a series of scripts created in Watir? Thanks much, Jim VA --~--~-~--~~~---~--~~ 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: Popup clicknowait question
All, I have tried all of the proposed methods on the Watir OpenQa site, but for some reason click_no_wait is not accessing the specified button. When I try it, whatever popup scheme I am using just times out. What is wrong with my code!!! Below is a snippet of my last attempt. Any new popup schemes would be greatly appreciated. Thanks in advance. $ie.button(:text, 'More').click_no_wait hwnd = $ie.enabled_popup(5) if (hwnd) popup = WinClicker.new popup.makeWindowActive(hwnd) popup.clickWindowsButton(Explorer User Prompt, OK, 30) end - Shelton From: jas.shel...@hotmail.com To: watir-general@googlegroups.com Subject: [wtr-general] Popup clicknowait question Date: Tue, 17 Feb 2009 17:17:12 -0500 All, I am trying the click_no_wait method to click the button in my application that causes a popup, but when I use it the script times out, and the button is never clicked. When I just use 'click' the button is clicked, and the popup is prompted. To use all of the popup techniques described on the Watir OpenQA site, I would have to use click no wait. Any ideas what could be the issue? Thanks in advance. - Shelton Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn Now _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/ --~--~-~--~~~---~--~~ 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: Popup clicknowait question
Do you have the following? require 'watir/dialog' require 'watir/winClicker' require 'watir\contrib\enabled_popup' Can you get Popup Text? #Get popup text puts popup.getStaticText_hWnd(hwnd) Are you getting the Popup button clicked? #Click button on the popup popup.clickWindowsButton_hwnd(hwnd, #{OK} ) From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Jason Shelton Sent: Wednesday, February 18, 2009 4:05 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Popup clicknowait question All, I have tried all of the proposed methods on the Watir OpenQa site, but for some reason click_no_wait is not accessing the specified button. When I try it, whatever popup scheme I am using just times out. What is wrong with my code!!! Below is a snippet of my last attempt. Any new popup schemes would be greatly appreciated. Thanks in advance. $ie.button(:text, 'More').click_no_wait hwnd = $ie.enabled_popup(5) if (hwnd) popup = WinClicker.new popup.makeWindowActive(hwnd) popup.clickWindowsButton(Explorer User Prompt, OK, 30) end - Shelton From: jas.shel...@hotmail.com To: watir-general@googlegroups.com Subject: [wtr-general] Popup clicknowait question Date: Tue, 17 Feb 2009 17:17:12 -0500 All, I am trying the click_no_wait method to click the button in my application that causes a popup, but when I use it the script times out, and the button is never clicked. When I just use 'click' the button is clicked, and the popup is prompted. To use all of the popup techniques described on the Watir OpenQA site, I would have to use click no wait. Any ideas what could be the issue? Thanks in advance. - Shelton Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn Now http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-c ns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008 /html --~--~-~--~~~---~--~~ 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: Code to Create Test Suite/Set in Watir or Run Series of scripts
One thing that might be useful is to look at the Watir unit tests. For 1.6.2 on Windows the path to the files would be something like this: C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\unittests Start with all_tests.rb and setup.rb. BTW, not sure if the unit tests are all running successfully on 1.6.2 yet, you may see some errors but that'll probably be OK. The structure used there is a good starting point for figuring out how to create a structure for running tests. --- On Wed, 2/18/09, jimamdg jalabas...@yahoo.com wrote: From: jimamdg jalabas...@yahoo.com Subject: [wtr-general] Code to Create Test Suite/Set in Watir or Run Series of scripts To: Watir General watir-general@googlegroups.com Date: Wednesday, February 18, 2009, 11:48 AM Hi I'm a tester who is new to Watir. I set up Watir on my machine just last week. I know only a little bit of coding and was looking for some code or explanation on how to run a series of test scripts in Watir. Would anyone be willing to share some code or anyone care to elaborate on how to create a test suite or how to run a series of scripts created in Watir? Thanks much, Jim VA --~--~-~--~~~---~--~~ 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] Playback Issue
I'm new to Watir and have a question. When I click on the playback button in WatirRecorder++ it pops up a new WatirRecorder++ dialog box with the same text. It does not playback. I just downloaded Ruby and installed Watir last week, so it should be the latest version. I'm sure this is a very basic issue, but I wanted to add a comment. From IRB If I type: require 'rubygems' require 'watir' ie = Watir::IE.new It opens a new Explorer window. But, if i put the exact same code in to WatirRecorder++ and click Playback or if I save it and run it from a command prompt it opens a new Watir Recorder++ dialog with the exact same code above listed. It does not open IE. I must be missing something. Thanks, --~--~-~--~~~---~--~~ 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: Prolems with starting FireWatir on Mac
Is there another workaround. When I add require rubygems' I get: `gem_original_require': no such file to load -- unittests/setup/lib (LoadError) It just seems to transfer what are incompatible or outdated file references somewhere else. I've tried both the built-in Leopard Ruby and the MacPorts ruby to try to get this to work. With the built-in Ruby 'require watir' works at the irb command line but not in the firewatir unittests. With MacPorts require watir fails both at the irb command and in the firewatir unittests. On Dec 22 2008, 12:58 pm, al3kc aleks.kiev...@gmail.com wrote: Thanks. It works :) --~--~-~--~~~---~--~~ 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: Does Watir 1.6.2 install on Mac OS X?
Many of us are running fine on OSX. If you give us some more information about your problem maybe we can help you. It seems like you are having a different problem than John. Bret jbgene wrote: Was the lack of full support for watir on OSX ever resolved. I've tried both the built-in Leopard ruby install and the MacPorts ruby installs and neither help me avoid this error from the firewater unittests: require': no such file to load -- watir (LoadError) On Feb 10, 2:28 am, John Kolokotronis johnj...@gmail.com wrote: I have to get back to my Mac later today to check, but I definitely can't get Safari set as the default. This actually does give me the same feedback in irb on my system: Watir::Browser.default = 'safari' = safari But then Watir::Browser.new attempts to launch FF anyway. I wonder if the gem installation order affects anything? As I did a rubygems system update first, then SafariWatir, then FireWatir last (which also installed commonWatir methods - didn't work at all with only SafariWatir installed) - I might try that later. Watir::Safari.new does work though and launches Safari as expected... On Feb 10, 2:19 am, Bret Pettichord b...@pettichord.com wrote: 1. What you report is a bug. It should work with Safari. It does on my machine. derrida:~ bret$ irb require 'watir' = true Watir::Browser.default = 'safari' = safari Watir::Browser.new = #Watir::Safari:0x11218e8 @scripter=#Watir::AppleScripter:0x111b344 @typing_lag=0.08, @app=app(/Applications/Safari.app), @document=app(/Applications/Safari.app).documents[1], @js=#Watir::JavaScripter:0x111b31c 2. If you don't want to use FireWatir at all, you should be able to just install safariwatir and commonwatir (directly). derrida:~ bret$ gem uninstall firewatir Select gem to uninstall: 1. firewatir-1.2.1 2. firewatir-1.6.1 3. All versions 3 Successfully uninstalled firewatir-1.2.1 Successfully uninstalled firewatir-1.6.1 derrida:~ bret$ irb require 'watir' = true Watir::Browser.default = 'safari' = safari Watir::Browser.new = #Watir::Safari:0x113a3d4 @scripter=#Watir::AppleScripter:0x1133ed0 @app=app(/Applications/Safari.app), @document=app(/Applications/Safari.app).documents[1], @js=#Watir::JavaScripter:0x1133ea8, @typing_lag=0.08 Bret John Kolokotronis wrote: Thanks for the reply Bret. I hadn't installed Firewatir yet and it seems commonwatir is only installed with that, not with Safariwatir. However, after installing both, the methods do work, but at least in irb, even after setting Watir::Browser.default = safari', Watir::Browser.new continues to launch Firefox? On Feb 9, 8:37 pm, Bret Pettichord b...@pettichord.com wrote: John Kolokotronis wrote: The wiki also still mentions that Mac installation is done with: sudo gem update --system sudo gem install firewatir sudo gem install safariwatir But that doesn't give you common Watir methods, like Watir::Browser.new - so in that context, how do you use Watir::Browser.default = 'safari'? If you are not getting these methods in this scenario, that is a bug. Is that really what is happening? --~--~-~--~~~---~--~~ 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: Prolems with starting FireWatir on Mac
The firewatir unit tests won't run from the gem install on any platform. Bret jbgene wrote: Is there another workaround. When I add require rubygems' I get: `gem_original_require': no such file to load -- unittests/setup/lib (LoadError) It just seems to transfer what are incompatible or outdated file references somewhere else. I've tried both the built-in Leopard Ruby and the MacPorts ruby to try to get this to work. With the built-in Ruby 'require watir' works at the irb command line but not in the firewatir unittests. With MacPorts require watir fails both at the irb command and in the firewatir unittests. On Dec 22 2008, 12:58 pm, al3kc aleks.kiev...@gmail.com wrote: Thanks. It works :) --~--~-~--~~~---~--~~ 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: dd element of HTML
Thanks Darin, the info is very useful :) Regards Niharika On Wed, Feb 18, 2009 at 7:50 PM, Darin Duphorn dduph...@redbrickhealth.comwrote: I had the same thing. Goto C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir Open non_control_elements Find This: # this class is used to deal with Div tags in the html page. http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/div.asp?frame=true # It would not normally be created by users class Div NonControlElement TAG = 'DIV' end Place this under that line. # this class is used by My Companhy instead of a div tag. class DD NonControlElement TAG = 'DD' end Include this in your script def dd(how, what) return dd.new(self, how, what) end** * * * * *#I use it like this.* *label_id = $ie.dd(:after?, $ie.label(:text,label)) * * * *Hope this helps.* * * * * *Remember to add this to your documentation because when you update you may have to re-add* * * * * *Darin* * * -- *From:* watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] *On Behalf Of *Niharika Patro *Sent:* Wednesday, February 18, 2009 4:25 AM *To:* watir-general@googlegroups.com *Subject:* [wtr-general] dd element of HTML Hi, I have a dd (Data Definition) element inder a dl (Definition list). The x-path for it is : /html/body/d...@id='vidmn']/d...@id='content']/d...@id='vid_pnp']/div[2]/d...@id='onecol']/d...@id='rel_outer']/div/d...@id='pnp_relvid1']/d...@id='rvid4']/d...@id='rel_4']/dl/dd[1] I want to declare the object in the repository file as :- @data = @browser. *class*(:xpath, /html/body/d...@id='vidmn']/d...@id='content']/d...@id='vid_pnp']/div[2]/d...@id='onecol']/d...@id='rel_outer']/div/d...@id='pnp_relvid1']/d...@id='rvid4']/d...@id='rel_4']/dl/dd[1]) What should be the class in the above definition ? Kindly help me... Regards Niharika --~--~-~--~~~---~--~~ 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....
Hi, Kindly help me in this issue. Iam using Watir 1.6.2 installed on 17- Feb-09. The Problem is $ie.bring_to_front() is not working application does't comes to front but the script is running fine. Please help me in this. Is it a problem in Gem Thanks, Venkat --~--~-~--~~~---~--~~ 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: installing Firewatir and running tests
Isn't this helpful? http://wiki.openqa.org/display/WTR/FireWatir+Installation What is the exact problem that you are facing while running Firewatir? A detail description would be helpful in solving your problem. - Angrez On Wed, Feb 18, 2009 at 8:59 PM, Sachin mali04.sac...@gmail.com wrote: Please guide me in installing Firewatir and Safarwatir on Linux and Mac OS. I have installed it looking into each and every doc/link available on net, and also posted but no solution and its really testing my patience.. so plz tell me in detail (step by step) how to install and run tests on firewatir. thanks sachin --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---