[wtr-general] select_list does not seem to fire event in Oracle ADF
I have cases where selecting a value from a select_list should cause the page to refresh based on the value selected. When I select a value with a watir, does not seem to cause this page refresh. I am testing with Oracle ADF pages, so I put up a little demo using the Oracle ADF demo. I have the sleep in the code to show, that when I select the value by hand, while the watir test is running, the test passes. But if I leave watir only if fails --- # test select list with Oracle ADF require 'rubygems' require 'watir' require 'watir/testcase' require 'test/unit' class TestSelectList Watir::TestCase def test_oracle_one_choice test_site = http://jdevadf.oracle.com/adf-richclient-demo/faces/ components/selectOneChoice.jspx ie = Watir::IE.new puts Beginning of test ie.goto test_site ie.select_list(:id, demoTemplate:j_id_id68::content).set (fatal) # put a sleep here, so that I can test with intervention sleep 5 fatal_xpath = //div/table/tbody/tr/td[2]/table/tbody/tr/td/div/ div/div/div/table/tbody/tr/td[2] message = ie.span(:xpath,fatal_xpath).text expected_message = Critical Error: Fatal message SUMMARY text. puts message =+message assert(message.eql?(expected_message)) end end --- Any help with a work around on this would be appreciated. Thanks Ben --~--~-~--~~~---~--~~ 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] Noob problem
I finally got watir and ruby installed I believe. I am now trying to do the google seach example, but when I run the .rb file I get: google_search.rb:14: in `require' : no such file to load -- watir (LoadError) Do I need to do anything special to load watir before I run the file? I thought the file call up watir? I am running all of this from the command line, is that correct? The google_search.rb is taken from the examples. I am running windows xp Thanks for all the help 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] Setting Internet Explorer Options
Hi, My settings for IE sometimes get reset by my IT department and causes my tests to fail. Can anyone point me in the direction of some info on how to set internet options in IE so that I can incorporate this into my test framework. 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: Watir Podcast #24 MarekJ and Charley Baker
On Wed, May 27, 2009 at 7:40 PM, Tiffany Fodor tcfo...@comcast.net wrote: Nice that Baby Z* made his podcast debut - maybe he'll grow up to be a media mogul too! I think you could hear him in a podcast or two before, but from the other side of the door. This was the first time he got into the room. :) Ž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] How I can verify whether all the images of a web page have been loaded or not?
Hi, Iam new in Watir. We are designing a web site through which user can buy items like we have in AMAZON. I have written a script to capture the landing page load response timing (see below) require 'watir' # watir controller include Watir require 'test/unit' #require 'watir/WindowHelper' class TC_TimeResponse Test::Unit::TestCase def test_TimeResponse ie = Watir::IE.new ie.goto(URL) ie.text_field(:name, 'userName').set('') ie.text_field(:name, 'password').set('') ie.button(:value, 'Login').click ie.maximize ie.image(:src, /logo/).click p 'ie.down_load_time_Home Page for 85: '+ie.down_load_time.to_s end end This script works fine and it displayed the page load timing in console. Basically, the landing page contains information about 9 items along with their image of fixed size 79 * 79. I observed that sometime the script runs and displayed the result of page load timing but few of the images is still not loaded. My question:- 1. How I can verify whether all the images have been loaded or not? 2. Is there any other way to find out the actual page load timing including the images of the items. Please this is an urgent requirement for my project. Waiting for solution. Thanks Maumita --~--~-~--~~~---~--~~ 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: Noob problem
Do a gem list from the command line. Is Watir listed? Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Wed, May 27, 2009 at 5:31 PM, James j.s.west...@gmail.com wrote: I finally got watir and ruby installed I believe. I am now trying to do the google seach example, but when I run the .rb file I get: google_search.rb:14: in `require' : no such file to load -- watir (LoadError) Do I need to do anything special to load watir before I run the file? I thought the file call up watir? I am running all of this from the command line, is that correct? The google_search.rb is taken from the examples. I am running windows xp Thanks for all the help 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] Re: how to get what is currently selected now in the select_list?
Hi All, I am unable to select a value from a list in Firefox.The same script if modified for IE works fine.I have to further click a radio button.The select list and radio button appear on ajax response. Code ... ff.select_list(:id, 'main_form:source').select('Phone') ff.select_list(:id, 'main_form:languages').select('English') ff.radio(id,'main_form:data_panel').set Error .. -FAIL-][Select: 'main_form:source'] Step failed: Check present: [Select: 'main_form:source'] Unexpected error from Watir runner: Unable to locate element, using :id, main_form:source Exit code: Thanks, Appreciate your help, Prashant --~--~-~--~~~---~--~~ 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] Deleting cookies in VISTA
Vista seems to hang on to the files associated with Cookies - it looks like several processes are attached. The typical means (under XP anyway) of deleting the files associated with the cookies won't work. IE: Watir::CookieManager::WatirHelper.deleteSpecialFolderContents (Watir::CookieManager::WatirHelper::COOKIES) And the method listed in the FAQ: http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdeleteallcookies Won't work with Vista... Anyone know if the the OO cookie controller will work with Vista? http://api.rubyonrails.org/classes/ActionController/Cookies.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: jssh (firefox) and unicode
Hello Frank, I was having the same problem with portuguese characters and your code solved all issues :) Thanks for sharing. FK 2009/5/14 Frank fschm...@web.de: Hallo, with the following code i got i working on Windows with IE and Firefox (for Linux you might need to omit or change the conversion to a different encoding than CP1252). The first part i got from the other thread Watir utf-8 (japnese) support. It might not work for Japanese strings, because the Windows encoding does not contain these characters, but for European characters its fine. The additional elements (dd, dt, dl, strong) might be useful for you. Regards, Frank # set encoding $KCODE = u WIN32OLE.codepage = WIN32OLE::CP_UTF8 require 'iconv' module FireWatir class DD NonControlElement TAG='DD' end class DL NonControlElement TAG='DL' end class DT NonControlElement TAG='DT' end class STRONG NonControlElement TAG='STRONG' end class TextField def doKeyPress( value ) # do not ask me why value = Iconv.conv('CP1252', 'UTF-8', value) �...@o.value = value fire_key_events end end end On May 1, 2:57 pm, John Kolokotronis johnj...@gmail.com wrote: I'm having similar problems working with double byte unicode, like Japanese and yes, I'm certain the problem is with the jssh extension - unfortunately, I don't know of any real solution and given that jssh is abandonware, it's very hard to get any help with it on any platform. Unicode works for me when it comes to getting values from the browser, e.g doing this on button with a Japanese value, will work: @browser.button(:id, btn_back).value.should == JapaneseString # I have to load the string from an Excel sheet though to avoid problems, so the assertion checks against a variable or constant that is loading the string content from within the Excel file... But setting a text_field with unicode, like: @browser.text_field(:id, whatever).set(JapaneseString) # again loading the unicode string from Excel... results in garbage characters... The value method does not work either: @browser.text_field(:id, whatever).value = JapaneseString I'm not sure jssh can even be compiled with proper unicode support, but I just don't know enough about it to be able to try on my own... Sorry I didn't have any real solution for you... Regards, John On May 1, 12:54 am, Stacia baka...@gmail.com wrote: I've been working all day to try to get unicode displayed in text fields properly. I've come to the conclusion that probably the JSSH socket connection doesn't support having unicode sent over it - is there anyone who can confirm this? I saw a fix for Chinese, but this was for IE, and other fixes involved ugliness like using Excel. Every time I try to send unicode data (encoded in various ways with different libraries) the output is always junk. Would building Firefox with JSSH support built in help at all? (not that it's an easy option on windows, but still). I was trying to experiment with JSSH myself using my own telnet client, but I couldn't find a unicode friendly telnet client at all (not a good sign). I've tried everything: I changed the default encoding of Firefox to utf8, I tried nkf, iconv, and packing arrays of ints into unicode chars. All of these just output junk (although the last method I could write to text files fine) I've learned a lot about unicode in *Ruby* but if the problem is unicode over JSSH that's beyond me. I also have rewritten the doKeyPressMethod for quite a while now, it looks like this: class FireWatir::TextField def doKeyPress( value ) @o.value = value fire_key_events end end this solves the slow text input problem on linux. I don't care about inputting the text character by character, which may have caused an issue with the unicode. I tried just putting in some unicode at that low level by setting @o.value to a unicode value directly (not sure how to get even lower level at the JSSH level) and that didn't help. Please, if I could just get a simple yes or no about whether this is even possible over JSSH, that would help a lot, 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: how to get what is currently selected now in the select_list?
Is the radio button created (rendered) as a result of the list selection? You might just have to do a little sleep after the selection to give the javascript time to render the element, so it can be found on the page. If you use IRB to run that code manually, does it work? if so it's likely just timing.. If not, then please tell us exactly what happens. On May 28, 8:43 am, leva parivar anilcpa...@gmail.com wrote: Hi All, I am also working on drop down lists...(select_list) and am facing a problem in selecting list in Firefox. The following piece of code works fine with IE(ie.select_list), but fails to work with Firefox 3.0.10. I want to select the value from drop down list and then further click a radio button on same page.The select list and radio buttons are on a Ajax response. Code ... ff.select_list(:id, 'capture_main_form:source').select('Phone') ff.select_list(:id, 'capture_main_form:languages').select('English') ff.radio(id,'capture_main_form:data_panel').set Error displayed ... -FAIL-][Select: 'capture_main_form:source'] Step failed: Check present: [Select: 'capture_main_form:source'] Unexpected error from Watir runner: Unable to locate element, using :id, capture_main_form:source If any one know this please let me know. Appreciate your help. Thanks Prashant --~--~-~--~~~---~--~~ 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: Noob problem
You may need to add require 'rubygems' to the top of your script, depending upon how ruby has been installed for you. Alex Collins On 28 May 2009, at 00:31, James wrote: I finally got watir and ruby installed I believe. I am now trying to do the google seach example, but when I run the .rb file I get: google_search.rb:14: in `require' : no such file to load -- watir (LoadError) Do I need to do anything special to load watir before I run the file? I thought the file call up watir? I am running all of this from the command line, is that correct? The google_search.rb is taken from the examples. I am running windows xp Thanks for all the help 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] Re: Unable to click on Tabs
Here is the command that we have used to register AutoIt: regsvr32 C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoItX3.dll -Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Vishal Sent: Thursday, May 28, 2009 12:36 AM To: Watir General Subject: [wtr-general] Re: Unable to click on Tabs I am getting the following message when I try to click on the tabs. this is the code $ie.span(:text ,Documents).span(:index,1).fire_event ('onclick') $ie.div(:id,tabContent5).file_field(:name, theFile).set(d: \testcase.txt) Exception which i am getting is d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/windowhelper.rb: 44:in `check_autoit_installed': The AutoIt dll must be correctly registered for this feature to work properly (Watir::Exception::WatirException) Please let me know how to fix this. Thanks, Badri On Apr 28, 10:11 pm, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: I'm a no0b, when it comes to things like this, but if the tabs exist in frames, then you can use the id to drill down to the section you want. i.e.: browser.frame(:id, tabs).button(:id, tab1).click Using this method, you don't need to explicity call out the onClick or onFire methods. Given that I can't, currently, view the entire source of the page, I would suggest using something like: browser.button(:id, ext-comp-1002__ext-comp-1006).click Granted, I know they aren't buttons; I'm just using sample code to illustrate how you could fire off an event, without explicitly using an assertion to call on the event. On Apr 28, 5:06 am, Vishal bvkon...@gmail.com wrote: I checked few other discussions on similar issues. But in none of them there is a solution available. Is this Issue can't be fixed? On Apr 27, 12:29 pm, Shweta nagman...@gmail.com wrote: Hi I tried like this,But it does not clicks on tab,I need toclickhere on Selection tab,Can anyone suggest me the solution for this. ie.cell(:class,tab).image(:src,../images/tabBetween.jpg).click HTML Code: TR TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ quoteShellValidationAction.do?dispatch=ShellInfo'); CLASS=tabSelectednbsp;nbsp;nbsp;nbsp; Infonbsp;nbsp;nbsp;nbsp;/TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=CarrierInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Selectionnbsp;nbsp;nbsp;nbsp;/ TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=ShellCoverageInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Quote Coveragenbsp;nbsp;nbsp;nbsp;/TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=ShellProducerInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Producernbsp;nbsp;nbsp;nbsp;/ TD TD width = 99%IMG SRC=../images/tabBetween.jpg BORDER=0/TD /TR TR On Apr 27, 12:09 pm, Vishal bvkon...@gmail.com wrote: I asked the developers, we checked the in websitehttp://extjs.com/deploy/dev/docs/ documents onTabpanel. We think following event is fired i)activate : ( Ext.Panel p ) Fires after the Panel has been visually activated. Note that Panels do not directly support being activated, but some... Fires after the Panel has been visually activated. Note that Panels do not directly support being activated, but some Panel subclasses do (like Ext.Window). Panels which are child Components of a TabPanel fire the activate and deactivate events under the control of the TabPanel. Listeners will be called with the following arguments: * p : Ext.Panel The Panel that has been activated. ii)beforetabchange : ( TabPanel this, Panel newTab, Panel currentTab ) Fires before the activetabchanges. Handlers can return false to cancel thetabchange. Fires before the activetabchanges. Handlers can return false to cancel thetabchange. Listeners will be called with the following arguments: * this : TabPanel * newTab : Panel Thetabbeing activated * currentTab : Panel The current activetab When we implement this in our code $ie.span(:text ,Documents).span(:index,1).fire_event(activate) I get an exception D:/ruby/lib/ruby/gems/1.8/gems/watir- 1.6.2/lib/watir/element.rb:257:in `method_m issing': fireEvent (WIN32OLERuntimeError) OLE error code:80070057 in htmlfile Invalid argument. I guess there is no such Event, thats why I am getting this message. Let me know if we test do this in a different way. On Apr 24, 5:55 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri,
[wtr-general] Re: Multiple Attributes for Text Fields
Your issue is using :id Per html spec there should not be a second instance of the same id on the page. if element with :id is found on the page Watir will not look for another instance on the page If you are stuck with :id and your developer absolutesly refuses to only maintain one instance of id then ie.text_fields.select {|tf| tf.id == aaa}[1].click #will blow up if there is no second one. marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Thu, May 28, 2009 at 1:05 PM, Parvinder Ghotra parvinder.gho...@gmail.com wrote: Did watir ever provide multiple attribute support for Text fields and Drop downs. I was very surprised to find that the following doesn't work: $ie.text_field(:id = aaa, :index = 2) Is there plan to provide multiple attribute support for things like Text fields, drop downs, radio buttons, checkboxes and etc. Thank you! Parvinder Ghotra --~--~-~--~~~---~--~~ 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 Podcast #24 MarekJ and Charley Baker
Thanks a lot. That was fun. I would like to do a that again in this fun format and actually discuss some technical issues. Fun and Learning podcast and I will promise to sing more 'texas songs' about 'watir' marekj On Thu, May 28, 2009 at 2:35 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 27, 2009 at 7:40 PM, Tiffany Fodor tcfo...@comcast.net wrote: Nice that Baby Z* made his podcast debut - maybe he'll grow up to be a media mogul too! I think you could hear him in a podcast or two before, but from the other side of the door. This was the first time he got into the room. :) Ž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: Multiple Attributes for Text Fields
i updated to 1.6.2 and all of sudden i'm getting the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': failed to create WIN32OLE object from `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x8007007e The specified module could not be found. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `new' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `autoit' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:425:in `autoit' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:413:in `bring_to_front' from test.rb:34 When i do this: -- 1. require 'watir' 2. browser = Watir::IE.new()#(:title, /elements f/i) 3. browser.goto(file:///C:/fit/unittests/html/elements_index.html) 4. browser.bring_to_front 5. browser.text_field(:id=txt_description, :index=3).flash 6. browser.select_list(:id=dd_status, :index=2).flash() -- Error is occurring at line 4 every single time. If i comment it out the script works fine. Any help is appreciated. Thanks, Parvinder On Thu, May 28, 2009 at 3:32 PM, Parvinder Ghotra parvinder.gho...@gmail.com wrote: Thanks Charlie. i'm running watir-1.5.6. so i should move to 1.6.2? Parvinder On Thu, May 28, 2009 at 2:07 PM, Charley Baker charley.ba...@gmail.comwrote: Multiple attribute support for input elements is supported in the latest version. Which version are you running? -c On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra parvinder.gho...@gmail.com wrote: Did watir ever provide multiple attribute support for Text fields and Drop downs. I was very surprised to find that the following doesn't work: $ie.text_field(:id = aaa, :index = 2) Is there plan to provide multiple attribute support for things like Text fields, drop downs, radio buttons, checkboxes and etc. Thank you! Parvinder Ghotra -- Parvinder Ghotra -- Parvinder Ghotra --~--~-~--~~~---~--~~ 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: Multiple Attributes for Text Fields
This was resolved by doing regsvr32 C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoitX3.Control On Thu, May 28, 2009 at 4:02 PM, Parvinder Ghotra parvinder.gho...@gmail.com wrote: i updated to 1.6.2 and all of sudden i'm getting the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': failed to create WIN32OLE object from `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x8007007e The specified module could not be found. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `new' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `autoit' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:425:in `autoit' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:413:in `bring_to_front' from test.rb:34 When i do this: -- 1. require 'watir' 2. browser = Watir::IE.new()#(:title, /elements f/i) 3. browser.goto(file:///C:/fit/unittests/html/elements_index.html) 4. browser.bring_to_front 5. browser.text_field(:id=txt_description, :index=3).flash 6. browser.select_list(:id=dd_status, :index=2).flash() -- Error is occurring at line 4 every single time. If i comment it out the script works fine. Any help is appreciated. Thanks, Parvinder On Thu, May 28, 2009 at 3:32 PM, Parvinder Ghotra parvinder.gho...@gmail.com wrote: Thanks Charlie. i'm running watir-1.5.6. so i should move to 1.6.2? Parvinder On Thu, May 28, 2009 at 2:07 PM, Charley Baker charley.ba...@gmail.comwrote: Multiple attribute support for input elements is supported in the latest version. Which version are you running? -c On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra parvinder.gho...@gmail.com wrote: Did watir ever provide multiple attribute support for Text fields and Drop downs. I was very surprised to find that the following doesn't work: $ie.text_field(:id = aaa, :index = 2) Is there plan to provide multiple attribute support for things like Text fields, drop downs, radio buttons, checkboxes and etc. Thank you! Parvinder Ghotra -- Parvinder Ghotra -- Parvinder Ghotra -- Parvinder Ghotra --~--~-~--~~~---~--~~ 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 can I open message in gmail inbox.
Thanks et., al YES, your idea works and easy way. if just top of message like that ie = IE.new ie.goto('http://mail.google.com/mail/') ie.text_field(:id, 'Email').set('yourID') ie.text_field(:id, 'Passwd').set('yourPwd') ie.button(:name, 'signIn').click ie.link(:xpath, '//span').click then ,able to view message body. thank you very much all. On May 27, 2:27 am, Felipe Knorr Kuhn fkn...@gmail.com wrote: Did you try the basic (HTML) view as well? It should be much easier to parse and interact with Watir. FK 2009/5/26 tknv rreedd...@gmail.com: hi et,.al. I'd like to open gmail message for test sending password is collect or not. That's why need to open message to see message body. Then I try that code below. ie = IE.attach(:url ,'http://mail.google.com/mail/?shva=1#inbox') canvas_frame = ie.frame(:id, 'canvas_frame') after above try below canvas_frame.span(:text, 'MymessageName').click but not works,watir click it,but not open message.(just MymessageName was yellow highlighten) and also try below.72 is MymessageName span index. canvas_frame.span(:index, 72).click and also try below canvas_frame.span(:index, 72).text.click This is error,not works How can I open? 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: How can I open message in gmail inbox.
Thanks,but now OWA is not required for our team. On May 27, 2:05 pm, Prajakta Jadhav jadhav.praja...@gmail.com wrote: Is it okay if the account concerned is Outlook Web Access.. or you require only gmail or yahoo and such other mail accounts? I have implemented exactly same functionality taht you are seraching for.. but in OWA I can share it with you incase you can work with OWA On Tue, May 26, 2009 at 10:37 PM, tknv rreedd...@gmail.com wrote: Thanks quick reply. It is useless in Watir General ? It is too complex...I can not know how complex that will be. Do you know another solution ? Because the aim is just check mail body,any web mail account is ok for testing. And more over,when use web mail for testing,at 1st try to use Gmail in general. Because most popular web mail account. It will be most common test case. Just I feel strange your content or I do not understand what is Watir General. Thanks On May 26, 4:08 pm, Wesley Chen cjq@gmail.com wrote: Please don't try on Gmail. It is too complex and it can't represent the common cases, so it is useless. Thanks. Wesley Chen. On Tue, May 26, 2009 at 1:51 PM, tknv rreedd...@gmail.com wrote: hi et,.al. I'd like to open gmail message for test sending password is collect or not. That's why need to open message to see message body. Then I try that code below. ie = IE.attach(:url ,'http://mail.google.com/mail/?shva=1#inbox') canvas_frame = ie.frame(:id, 'canvas_frame') after above try below canvas_frame.span(:text, 'MymessageName').click but not works,watir click it,but not open message.(just MymessageName was yellow highlighten) and also try below.72 is MymessageName span index. canvas_frame.span(:index, 72).click and also try below canvas_frame.span(:index, 72).text.click This is error,not works How can I open? 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] Is Watir supports if application has developed with (struts2, JPA, JSP, Ajax, Flash, Google gadgets) technologies.
Hi, I'm QA Engineer I would like to automate tests in watir for web application which was developed using (struts2, JPA, JSP, Ajax, Flash, Google gadgets). Please let me know whether Watir supports the above technologies? ThanksRegards, Narendra. --~--~-~--~~~---~--~~ 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: Is Watir supports if application has developed with (struts2, JPA, JSP, Ajax, Flash, Google gadgets) technologies.
Watir(Web App Testing in Ruby) is mainly for web application testing. On Fri, May 29, 2009 at 11:10 AM, Narendra Gollapilli narendra.gollapi...@gmail.com wrote: Hi, I'm QA Engineer I would like to automate tests in watir for web application which was developed using (struts2, JPA, JSP, Ajax, Flash, Google gadgets). Please let me know whether Watir supports the above technologies? ThanksRegards, Narendra. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---