[wtr-general] Re: Anyone have Firewatir jssh plugin working on Mac PPC Tiger?
The only reason for asking you to compile is that we don't have access to the kind of environment you were mentioning. Any ways happy coding with Firewatir on Windows :) - Angrez On Tue, Jun 16, 2009 at 3:29 AM, Bean Rider lab...@gmail.com wrote: Wow, I'm not trying that; I had a hard enough time doing the steps in the HiveLogic website guide to getting Ruby on the Mac (my background is Windows). For now I'll stick with testing on the Windows environment. Tiger OSX on PPC is losing a lot of support anyway. On Jun 9, 12:34 am, Angrez Singh ang...@gmail.com wrote: Hi, Can you try compiling the JSSh plugin using the instructions over here: http://www.daveliebreich.com/blog/?page_id=6https://developer.mozilla.org/en/Build_Documentation Thanks, Angrez On Mon, Jun 8, 2009 at 10:41 PM, Bean Rider lab...@gmail.com wrote: On firewatir forums someone said: '...the plugin works well for INTEL macs...It can't be used on PPC macs.' http://code.google.com/p/firewatir/issues/detail?id=35#c10 I'm hoping the issue is not a lost cause on Mac PowerPC Tiger, since folks with Mac Intel Leopard OSX also have the issue. The issue being referred to is the 'connection refused' issue, which is the same issue that I've run into on my Mac PPC Tiger. If someone has the jssh plugin running fine with Mac PPC Tiger, I may go back and troubleshoot. Otherwise I'll try firewatir on PC, and/or use SafariWatir (some simple safariwatir scripts have run successfully on my Mac PPC Tiger with Safari 3.2.1). --~--~-~--~~~---~--~~ 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: Languages supported by Watir
Yes. On Jun 15, 11:35 pm, Alister Scott alister.sc...@gmail.com wrote: Do you mean in your web application that you are testing? --~--~-~--~~~---~--~~ 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 static text value in a variable
Thanks Wesley, But the solutions shared by you doesn't seems to work for the reasons unknown to me. Getting an error: in `assert_exists': Unable to locate element, using :index, 1 (Watir::Exception::UnknownObjectException) Please suggest how to go ahead. Thanks Warm Regards, Rahul On Jun 15, 10:20 am, Wesley Chen cjq@gmail.com wrote: It is a little complex about the script. If you want the comment before the first Delete button, you can try below code: $ie.button(:class =MS_OneMerck_CommentSubmit, :index=1).parent.parent.cell(:index,1).texte If you want the comment before the second delete button, you just need change the :index =2 in the code above. Expect it could help. Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 8:12 PM, Rahul Ahuja mightyah...@gmail.com wrote: Hi, I am facing a similar issue at some other page in the application. Here is the sample HTML code for your ready reference: The text I am interested in is: Comments: This is article is for validating comments enabling using automation The attributes associated with it are: vAlign noWrap width TABLE width=100%TBODYTRTD vAlign=top noWrapH3 class=ms- standardheaderComments: /H3/TD/TRSPAN id=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_litDisplayComments style=DISPLAY: inline-block; WIDTH: 500pxTRTD class=ms- OneMerck_Comments_Formlable style=PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px colSpan=4IMG src=http://one-it.merck.com/_layouts/images/merck_images/ comment_bubble.jpghttp://one-it.merck.com/_layouts/images/merck_images/%0Acomment_bubbl... / TEST_MSS1: /TD/TRTRTD vAlign=top noWrap width=400Comments: This is article is for validating comments enabling using automation /TDTD vAlign=top noWrap align=right width=100INPUT class=MS_OneMerck_CommentSubmit style=TEXT-ALIGN: center onclick= location.href='http://one- it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx? DId=234cf2d8-99b7-4c5a-811a-dfc863e11623http://it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx...' type=button value=Delete / /TD/TRTRTD/TD/TRTRTD class=ms- OneMerck_Comments_DashLine vAlign=top noWrap width=100% colSpan=4June 15,2009 08:01AM /TD/TR/SPAN/TRTD class=ms- OneMerck_Comments_Formlable style=PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px colSpan=4IMG src=http://one-it.merck.com/_layouts/images/merck_images/ comment_bubble.jpghttp://one-it.merck.com/_layouts/images/merck_images/%0Acomment_bubbl... / TEST_MSS1: /TD/TRTRTD vAlign=top noWrap width=400Comments: This is article is for validating comments enabling using automation /TDTD vAlign=top noWrap align=right width=100INPUT class=MS_OneMerck_CommentSubmit style=TEXT-ALIGN: center onclick= location.href='http://one- it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx? DId=234cf2d8-99b7-4c5a-811a-dfc863e11623http://it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx...' type=button value=Delete / /TD/TRTRTD/TD/TRTRTD class=ms- OneMerck_Comments_DashLine vAlign=top noWrap width=100% colSpan=4June 15,2009 08:01AM /TD/TRTR/TRTRTD id=3000 style=PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px colSpan=4H3 class=ms-standardheaderAdd a Comment:/H3A name=comments/A/TD/TD//TD/ TRTRTDTEXTAREA class=MS_OneMerck_CommentTextBox id=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_txtComments style=WIDTH: 500px; HEIGHT: 100px name=ctl00$m $g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef$txtComments/TEXTAREA/TD/ TRTRTDINPUT class=MS_OneMerck_CommentSubmit id=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_btnSubmit onclick='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(ctl00$m$g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef $btnSubmit, , true, CommentSubmit, , false, false))' type=submit name=ctl00$m$g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef $btnSubmit value=Submit /nbsp;nbsp; SPAN id=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_rfvRequiredField style=VISIBILITY: hidden; COLOR: red controltovalidate=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_txtComments errormessage=Please, enter comment. validationGroup=CommentSubmit initialvalue= isvalidPlease, enter comment./SPAN/TDTD/TD/ TRTRTD class=ms-linksectionheader vAlign=middle width=100% ms-standardheader?=Thank you for your comments.H3/H3/TDTD/ TD/TR/TBODY/TABLE On Jun 15, 3:23 am, Prajakta Jadhav jadhav.praja...@gmail.com wrote: try this -- puts ie.cell(:class,ms-OneMerckQuickPollMessageDisplayCell).text Prajakta On Mon, Jun 15, 2009 at 12:44 PM, Rahul Ahuja mightyah...@gmail.com wrote: But, there is no :id property associated with it. Thanks Wesley Chen for your quick response. But, unfortunately the solution shared doesnt seem to work. html code is: TD class=ms-OneMerckQuickPollMessageDisplayCell You have already submitted your
[wtr-general] Re: How to get static text value in a variable
I am sure you can fix the problem by yourself. index =1 means the first element if index =2, means the second element in the HTML Thanks. Wesley Chen. On Tue, Jun 16, 2009 at 3:37 PM, Rahul Ahuja mightyah...@gmail.com wrote: Thanks Wesley, But the solutions shared by you doesn't seems to work for the reasons unknown to me. Getting an error: in `assert_exists': Unable to locate element, using :index, 1 (Watir::Exception::UnknownObjectException) Please suggest how to go ahead. Thanks Warm Regards, Rahul On Jun 15, 10:20 am, Wesley Chen cjq@gmail.com wrote: It is a little complex about the script. If you want the comment before the first Delete button, you can try below code: $ie.button(:class =MS_OneMerck_CommentSubmit, :index=1).parent.parent.cell(:index,1).texte If you want the comment before the second delete button, you just need change the :index =2 in the code above. Expect it could help. Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 8:12 PM, Rahul Ahuja mightyah...@gmail.com wrote: Hi, I am facing a similar issue at some other page in the application. Here is the sample HTML code for your ready reference: The text I am interested in is: Comments: This is article is for validating comments enabling using automation The attributes associated with it are: vAlign noWrap width TABLE width=100%TBODYTRTD vAlign=top noWrapH3 class=ms- standardheaderComments: /H3/TD/TRSPAN id=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_litDisplayComments style=DISPLAY: inline-block; WIDTH: 500pxTRTD class=ms- OneMerck_Comments_Formlable style=PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px colSpan=4IMG src=http://one-it.merck.com/_layouts/images/merck_images/ comment_bubble.jpg http://one-it.merck.com/_layouts/images/merck_images/%0Acomment_bubbl... / TEST_MSS1: /TD/TRTRTD vAlign=top noWrap width=400Comments: This is article is for validating comments enabling using automation /TDTD vAlign=top noWrap align=right width=100INPUT class=MS_OneMerck_CommentSubmit style=TEXT-ALIGN: center onclick= location.href='http://one- it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx? DId=234cf2d8-99b7-4c5a-811a-dfc863e11623 http://it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx.. .' type=button value=Delete / /TD/TRTRTD/TD/TRTRTD class=ms- OneMerck_Comments_DashLine vAlign=top noWrap width=100% colSpan=4June 15,2009 08:01AM /TD/TR/SPAN/TRTD class=ms- OneMerck_Comments_Formlable style=PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px colSpan=4IMG src=http://one-it.merck.com/_layouts/images/merck_images/ comment_bubble.jpg http://one-it.merck.com/_layouts/images/merck_images/%0Acomment_bubbl... / TEST_MSS1: /TD/TRTRTD vAlign=top noWrap width=400Comments: This is article is for validating comments enabling using automation /TDTD vAlign=top noWrap align=right width=100INPUT class=MS_OneMerck_CommentSubmit style=TEXT-ALIGN: center onclick= location.href='http://one- it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx? DId=234cf2d8-99b7-4c5a-811a-dfc863e11623 http://it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx.. .' type=button value=Delete / /TD/TRTRTD/TD/TRTRTD class=ms- OneMerck_Comments_DashLine vAlign=top noWrap width=100% colSpan=4June 15,2009 08:01AM /TD/TRTR/TRTRTD id=3000 style=PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px colSpan=4H3 class=ms-standardheaderAdd a Comment:/H3A name=comments/A/TD/TD//TD/ TRTRTDTEXTAREA class=MS_OneMerck_CommentTextBox id=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_txtComments style=WIDTH: 500px; HEIGHT: 100px name=ctl00$m $g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef$txtComments/TEXTAREA/TD/ TRTRTDINPUT class=MS_OneMerck_CommentSubmit id=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_btnSubmit onclick='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(ctl00$m$g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef $btnSubmit, , true, CommentSubmit, , false, false))' type=submit name=ctl00$m$g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef $btnSubmit value=Submit /nbsp;nbsp; SPAN id=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_rfvRequiredField style=VISIBILITY: hidden; COLOR: red controltovalidate=ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_txtComments errormessage=Please, enter comment. validationGroup=CommentSubmit initialvalue= isvalidPlease, enter comment./SPAN/TDTD/TD/ TRTRTD class=ms-linksectionheader vAlign=middle width=100% ms-standardheader?=Thank you for your comments.H3/H3/TDTD/ TD/TR/TBODY/TABLE On Jun 15, 3:23 am, Prajakta Jadhav jadhav.praja...@gmail.com wrote: try this -- puts ie.cell(:class,ms-OneMerckQuickPollMessageDisplayCell).text Prajakta On Mon, Jun 15,
[wtr-general] Automating a File uploader popup
Hi All, One of the links on our company website invokes a file uploader popup window. Techinally its a Flash method that calls the native OS file browser and then handles the response. Is it possible to automate it using Watir or any Ruby library? Thanks, Natasha --~--~-~--~~~---~--~~ 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] Automating a File uploader popup
Hi All, One of the links on our company website invokes a file uploader popup window. Techinally its a Flash method that calls the native OS file browser and then handles the response. Is it possible to automate it using Watir or any Ruby library? Thanks, Natasha --~--~-~--~~~---~--~~ 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 Podcast #25 with Dave Hoover of SafariWatir
I am recording a podcast with Dave Hoover of SafariWatir this Friday 7pm utc. If you have any questions for him, please post them here. What is that podcast thing, you ask? Take a look: http://watirpodcast.com/ Željko Filipin --~--~-~--~~~---~--~~ 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 form submit working???
Orde, thanks for looking at this. unfortunately thats not the answer - maybe even a little off track. I am getting a lot cases where form.submit does not work as expected. another case is www.monster.de ff.form(:index, 1).text_field(:name, ctl00$ctl00$searchBox $_ptbKeywords).value = 12345 ff.form(:index, 1).submit The page renders no result from the form.submit (just a page refresh). I thought that this might have something to do with the fact that that the form has no submit buttons in it - so tried a from that does have input buttons defined: https://careers3.accenture.com/taleo/taleo.asp?countryname=Germany ff.frame(:index, 1).form(:index, 1).text_field(:name, jobNumberSearch).value = 12345 ff.frame(:index, 1).form(:index, 1).submit also here, the page renders no result from the form.submit (it just refreshes the page) however, this page works just fine: http://www.jobware.de/ ff.form(:index, 1).text_field(:index, 1).value = ruby ff.form(:index, 1).submit and because i thought it might have somthing to do with iframes being declaired on in the page i built a html document with the google search page in the iframe, that also worked as expected. So I really am stuck on why. I cannot figure out what the causing this behaviour - it least if I knew, could try fixing it. has anyone got any ideas? I am more looking for the cause, rather than a work around. thanks a million. Jason. On 15 Jun., 22:43, orde ohil...@gmail.com wrote: Looks like it's a cross-domain issue. This code: browser = Watir::IE.start('http://www.adecco.de/GERMAN/candidates/ jobsuche/Pages/DEJobSuche.aspx') puts browser.show_frames yields this message: frame index: 1 Access Denied, seehttp://wiki.openqa.org/display/WTR/FAQ#access-denied So, check outhttp://wiki.openqa.org/display/WTR/FAQ#access-denied. There are a few workarounds listed there (e.g. go directly to frame URL, add URL to browser's trusted sites, tweak etc/host file). Hope that helps. orde PS: I'm using IE7 + watir 1.8.6 + ruby 1.6.2. On Jun 15, 8:08 am, jason jason.franklin.sto...@gmail.com wrote: HI I have a simple case that i cannot seem to make work. i.e. fill out a form and submit it and see a new resulting page. here the real example: ff.goto(http://www.adecco.de/GERMAN/candidates/jobsuche/Pages/ DEJobSuche.aspx) ff.frame(:index, 1).form(:index, 1).text_field(:index , 1).set (hello) ff.frame(:index, 1).form(:index, 1).submit the submit_form method in firewatir does get called and the browser does recieve the .submit command but the page just rebuilds the form - even with the word hello that i set it with. and ideas why a page is not being generated. hoping that i am missing somthing very simple. thanks for your help jason. --~--~-~--~~~---~--~~ 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: What languages are supported using Watir
On Mon, Jun 15, 2009 at 3:02 PM, Rahul Ahuja mightyah...@gmail.com wrote: Which all languages mentioned below are supported by Watir. What do you mean by that? Can you enter text written in those languages in text box with Watir? I know there are problems with some languages, but I also think there is way to make it work in any language. Ž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: Automating a File uploader popup
On Tue, Jun 16, 2009 at 10:47 AM, Natasha itsn...@yahoo.co.uk wrote: One of the links on our company website invokes a file uploader popup window. This does not work? http://wiki.openqa.org/display/WTR/File+Uploads Ž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] Running scripts on Mozilla 1.5.0.3
Hi, I have installed the mozilla version 1.5.0.3. But when I ran the scripts it gave me following error. = 1) Error: test_Gmail_Working(Gmail): Watir::Exception::UnableToStartJSShException: Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:271:in `set_defaults' c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:161:in `initialize' c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:65:in `new' c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:65:in `new' checkbox.rb:19:in `test_Gmail_Working' 1 tests, 0 assertions, 0 failures, 1 errors Exit code: 1 === Previously the same scripts were working fine with Mozilla 3.0. So is there any way to sort out this issue so that the same script would run on the older version of Mozilla browser? Thanks Regards Durgesh. --~--~-~--~~~---~--~~ 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] Why Do Exists? Exceptions Occur?
A little loop to run through a Hotmail inbox (line 59 is the if statement): puts TimeStr() + Back from in-box click sleep(1) (1..20).each do |x| inboxrow = $ie.frame(:id, 'UIFrame').table(:class, 'InboxTable').row (:index, x).cell(:class, 'Sbj') if inboxrow.exist? then puts TimeStr() + x.to_s + + inboxrow.text else puts TimeStr() + No row + x.to_s break end # if inboxrow.exist? end # each The output:08:45:25 Back from in-box click 08:45:26 1 FW: * TEST * 20090615HTMLEmail - Friend * TEST *? 08:45:26 2 20090609HTMLEmail - Friend? 08:45:26 3 20090609HTMLEmail - Friend? 08:45:26 4 ECS Automation? 08:45:26 5 ECS Automation? 08:45:27 6 ECS Automation? 08:45:27 7 ECS Automation? 08:45:27 8 Welcome to Eloqua Conversion Suite? 08:45:27 9 sub? 08:45:27 10 Hotmail gives you more than just email in May? 08:45:27 11 Check this out! You roc...@#$*? 08:45:27 12 la di da? c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex ists': Unable to locate element, using :index, 13 (Watir::Exception::UnknownObje ctException) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:126 :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/ table.rb:328:i n `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:273 :in `exist?' from C:/QA/ECS_Tests/HotWatir.rb:59 from C:/QA/ECS_Tests/HotWatir.rb:57:in `each' from C:/QA/ECS_Tests/HotWatir.rb:57 So what good is exists?; I know how to fix this, I replace the .exists? with a begin/rescue/end bracket, but that seems like a lot of trouble when I would have expected exists? to have simply said no. --~--~-~--~~~---~--~~ 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: Automating a File uploader popup
Hi Thanks for the pointer. Unfortunately I don't think it will help, as it looks for HTML tag input type = file :( But following is the piece of code that invokes the popup in my case: div a href=# class=linkbutton alt span class=left/span span id=spnUploadButton class=middleUpload your images to MOO/span span class=right/span /a /div And the above is using a Flash method to invoke File uploader. Thanks, Natasha From: Željko Filipin zeljko.fili...@wa-research.ch To: watir-general@googlegroups.com Sent: Tuesday, 16 June, 2009 12:46:15 Subject: [wtr-general] Re: Automating a File uploader popup On Tue, Jun 16, 2009 at 10:47 AM, Natasha itsn...@yahoo.co.uk wrote: One of the links on our company website invokes a file uploader popup window. This does not work? http://wiki.openqa.org/display/WTR/File+Uploads Ž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] Firewatir browser incorrectly reading URLs that contain a hash (#) symbol
I'm using Firewatir to navigate a website that uses AJAX links. When one of these AJAX links are clicked, the URL some/url turns into some/url#something/else. However, the url field of my browser object only returns some/url; it ignores whatever is after the hash symbol. This only occurs when Watir uses Firefox; I get the full URL when Watir uses Internet Explorer. Is it possible to work around this? --~--~-~--~~~---~--~~ 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 #25 with Dave Hoover of SafariWatir
I'd like to know if SafariWatir will one day be compatible with the PC... On Jun 16, 3:11 am, Željko Filipin zeljko.fili...@gmail.com wrote: I am recording a podcast with Dave Hoover of SafariWatir this Friday 7pm utc. If you have any questions for him, please post them here. What is that podcast thing, you ask? Take a look: http://watirpodcast.com/ Željko Filipin --~--~-~--~~~---~--~~ 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: Automating a File uploader popup
Hi Natasha, Have you tried file_field? browser = Watir::IE.attach(...) browser.file_field(:id,open_file).set(filepath) On Jun 16, 6:26 am, Natasha Ranney itsn...@yahoo.co.uk wrote: Hi Thanks for the pointer. Unfortunately I don't think it will help, as it looks for HTML tag input type = file :( But following is the piece of code that invokes the popup in my case: div a href=# class=linkbutton alt span class=left/span span id=spnUploadButton class=middleUpload your images to MOO/span span class=right/span /a /div And the above is using a Flash method to invoke File uploader. Thanks, Natasha From: Željko Filipin zeljko.fili...@wa-research.ch To: watir-general@googlegroups.com Sent: Tuesday, 16 June, 2009 12:46:15 Subject: [wtr-general] Re: Automating a File uploader popup On Tue, Jun 16, 2009 at 10:47 AM, Natasha itsn...@yahoo.co.uk wrote: One of the links on our company website invokes a file uploader popup window. This does not work? http://wiki.openqa.org/display/WTR/File+Uploads Ž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: Why Do Exists? Exceptions Occur?
I'm fairly sure your script isn't even getting to the exists? line. You need to tack it directly onto the $ie.frame.etc. instead of trying to assign it to a variable first and then using .exists? on it. I agree it would be nice if you could write it the way you have, but it does make sense the way it's implemented. James On Jun 16, 8:48 am, Bill Mosteller w...@greatdecals.com wrote: A little loop to run through a Hotmail inbox (line 59 is the if statement): puts TimeStr() + Back from in-box click sleep(1) (1..20).each do |x| inboxrow = $ie.frame(:id, 'UIFrame').table(:class, 'InboxTable').row (:index, x).cell(:class, 'Sbj') if inboxrow.exist? then puts TimeStr() + x.to_s + + inboxrow.text else puts TimeStr() + No row + x.to_s break end # if inboxrow.exist? end # each The output:08:45:25 Back from in-box click 08:45:26 1 FW: * TEST * 20090615HTMLEmail - Friend * TEST *? 08:45:26 2 20090609HTMLEmail - Friend? 08:45:26 3 20090609HTMLEmail - Friend? 08:45:26 4 ECS Automation? 08:45:26 5 ECS Automation? 08:45:27 6 ECS Automation? 08:45:27 7 ECS Automation? 08:45:27 8 Welcome to Eloqua Conversion Suite? 08:45:27 9 sub? 08:45:27 10 Hotmail gives you more than just email in May? 08:45:27 11 Check this out! You roc...@#$*? 08:45:27 12 la di da? c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex ists': Unable to locate element, using :index, 13 (Watir::Exception::UnknownObje ctException) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:126 :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/ table.rb:328:i n `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:273 :in `exist?' from C:/QA/ECS_Tests/HotWatir.rb:59 from C:/QA/ECS_Tests/HotWatir.rb:57:in `each' from C:/QA/ECS_Tests/HotWatir.rb:57 So what good is exists?; I know how to fix this, I replace the .exists? with a begin/rescue/end bracket, but that seems like a lot of trouble when I would have expected exists? to have simply said no. --~--~-~--~~~---~--~~ 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 1.6.2 unittests don't run
I got past this error, but not all of the tests appear to be working yet. After getting the latest code from git, I copied the watir \commonwatir\unittests\setup folder to Ruby\lib\ruby\gems\1.8\gems \watir-1.6.2\unittests. However, core_tests.rb won't run any tests, but window_test.rb will run fine. On May 4, 2:43 pm, satish spanchumar...@gmail.com wrote: Hi Paul, Can you please let us know what you did you to get this Unit Tests to work. I am having same problem too. Can you please let me know where to create that folders and what to copy etc. Really appreate your help. Thank you very much. Satish. On Apr 9, 11:35 am, Moochie dduph...@redbrickhealth.com wrote: Paul, Did you ever update the wiki? I'm not finding you direction sto get passed this issue, and since I'm hitting the issue, and believe others will. It would be nice to help other so the will not get a frustrated. Many thanks, Darin On Apr 7, 12:14 am, Paul Carvalho tester.p...@gmail.com wrote: I opened Jira ticket #WTR-301 to address the problem. I'll look over the wiki information again and see what I can do to help clarify the steps to get up and running until the problem is addressed in a future gem release/install. The present wiki information seems to be really geared towards developers, which is a big turn-off for me. ;) Cheers. Paul C. (BTW, I apologised to Al off-list for my prior post. I didn't mean to harsh on him.. I was just frustrated at the time I spent trying to resolve the problem when the only advice I could find on the wiki said that I need to Get the source code and unit tests from SVN. To me, asking a tester to install development tools to retrieve development source to make something work just seems like the wrong way to go, you know? Ah well,suchis life sometimes in the Open Source world. ;) Keep moving forward.) On Apr 6, 11:27 am, Bret Pettichord b...@pettichord.com wrote: Paul, Could you update the wiki with this information please? Bret- 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: Why Do Exists? Exceptions Occur?
-Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Bill Mosteller Sent: Tuesday, June 16, 2009 7:49 AM To: Watir General Cc: arti.si...@eloqua.com Subject: [wtr-general] Why Do Exists? Exceptions Occur? A little loop to run through a Hotmail inbox (line 59 is the if statement): puts TimeStr() + Back from in-box click sleep(1) (1..20).each do |x| inboxrow = $ie.frame(:id, 'UIFrame').table(:class, 'InboxTable').row (:index, x).cell(:class, 'Sbj') I believe that the line above is where your exception is happening, and it never reaches the .exist? test below. If it can't find a row with :index of 13, then it is going to have trouble finding a cell on that row. I tend to overproof my code, confirming that each item in a chain exists so that if the table isn't there, I get the error at the table level. Let me know if you need additional help. if inboxrow.exist? then puts TimeStr() + x.to_s + + inboxrow.text else puts TimeStr() + No row + x.to_s break end # if inboxrow.exist? end # each The output:08:45:25 Back from in-box click 08:45:26 1 FW: * TEST * 20090615HTMLEmail - Friend * TEST *? 08:45:26 2 20090609HTMLEmail - Friend? 08:45:26 3 20090609HTMLEmail - Friend? 08:45:26 4 ECS Automation? 08:45:26 5 ECS Automation? 08:45:27 6 ECS Automation? 08:45:27 7 ECS Automation? 08:45:27 8 Welcome to Eloqua Conversion Suite? 08:45:27 9 sub? 08:45:27 10 Hotmail gives you more than just email in May? 08:45:27 11 Check this out! You roc...@#$*? 08:45:27 12 la di da? c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex ists': Unable to locate element, using :index, 13 (Watir::Exception::UnknownObje ctException) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:126 :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/ table.rb:328:i n `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:273 :in `exist?' from C:/QA/ECS_Tests/HotWatir.rb:59 from C:/QA/ECS_Tests/HotWatir.rb:57:in `each' from C:/QA/ECS_Tests/HotWatir.rb:57 So what good is exists?; I know how to fix this, I replace the .exists? with a begin/rescue/end bracket, but that seems like a lot of trouble when I would have expected exists? to have simply said no. __ Information from ESET NOD32 Antivirus, version of virus signature database 4160 (20090616) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.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: Why Do Exists? Exceptions Occur?
I believe Mark has it right. Crisper script, exists? is on line 65: inboxtbl = $ie.frame(:id, 'UIFrame').table(:class, 'InboxTable') rows = inboxtbl.row_count_excluding_nested_tables() puts TimeStr() + Back from in-box click, + rows.to_s + rows if inboxtbl.row(:index, (rows + 1).to_s).cell(:class, 'Sbj').exist? puts TimeStr() + Row + (rows + 1).to_s + exists! end # if exists? similar results: 16:11:31 Back from in-box click, 12 rows c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex ists': Unable to locate element, using :index, 13 (Watir::Exception::UnknownOb jectException) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:126 :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/ table.rb:328:i n `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:273 :in `exist?' from C:/QA/ECS_Tests/HotWatir.rb:65 So I guess what we're saying is that the .exists? really applies only to the immediately previous element, if an earlier element fails, we get the exception. That's orderly, if not desirable. Bill Mosteller Eloqua --~--~-~--~~~---~--~~ 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] 30 Second Pauses When Scripting Hotmail
I'm whipping up a script for Hotmail that signs on, goes to the inbox, refreshes it, and opens a message from the inbox. When the script hits the inbox for the first time, or the message, it often pauses for about 30 seconds. I suspect it's waiting for the animated ad on the right hand side of the window to finish, but I cannot prove it. Thirty seconds is a long time for a script to waste, any ideas how to get around this? Thanks. Bill Mosteller Eloqua --~--~-~--~~~---~--~~ 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 form submit working???
Took a closer look. WORKS: http://www.jobware.de/ ff.form(:index, 1).text_field(:index, 1).value = ruby ff.form(:index, 1).submit DOESN'T WORK: http://www.monster.de ff.form(:index, 1).text_field(:name, ctl00$ctl00$searchBox $_ptbKeywords).value = 12345 ff.form(:index, 1).submit BUT THIS WORKS: browser.form(:index, 1).text_field(:name, ctl00$ctl00$searchBox $_ptbKeywords).value = 12345 browser.link(:id, 'ctl00_ctl00_searchBox_MessagizedButton1').click The above link has an href attribute of javascript:AjaxSearch_DoSearchRedirect(), so there's some redirect magic going on there. COMPARING THE FORM TAGS: http://www.jobware.de - form style=display: inline; method=get action=/st/index.html name=easyfinder http://www.monster.de - form id=aspnetForm class=mainForm action=home.aspx method=post name=aspnetForm Since action=home.aspx in form id=aspnetForm, it looks like the form data is sent to the home page, which then refreshes. Hope that helps... orde On Jun 16, 4:08 am, jason jason.franklin.sto...@gmail.com wrote: Orde, thanks for looking at this. unfortunately thats not the answer - maybe even a little off track. I am getting a lot cases where form.submit does not work as expected. another case iswww.monster.de ff.form(:index, 1).text_field(:name, ctl00$ctl00$searchBox $_ptbKeywords).value = 12345 ff.form(:index, 1).submit The page renders no result from the form.submit (just a page refresh). I thought that this might have something to do with the fact that that the form has no submit buttons in it - so tried a from that does have input buttons defined: https://careers3.accenture.com/taleo/taleo.asp?countryname=Germany ff.frame(:index, 1).form(:index, 1).text_field(:name, jobNumberSearch).value = 12345 ff.frame(:index, 1).form(:index, 1).submit also here, the page renders no result from the form.submit (it just refreshes the page) however, this page works just fine: http://www.jobware.de/ ff.form(:index, 1).text_field(:index, 1).value = ruby ff.form(:index, 1).submit and because i thought it might have somthing to do with iframes being declaired on in the page i built a html document with the google search page in the iframe, that also worked as expected. So I really am stuck on why. I cannot figure out what the causing this behaviour - it least if I knew, could try fixing it. has anyone got any ideas? I am more looking for the cause, rather than a work around. thanks a million. Jason. On 15 Jun., 22:43, orde ohil...@gmail.com wrote: Looks like it's a cross-domain issue. This code: browser = Watir::IE.start('http://www.adecco.de/GERMAN/candidates/ jobsuche/Pages/DEJobSuche.aspx') puts browser.show_frames yields this message: frame index: 1 Access Denied, seehttp://wiki.openqa.org/display/WTR/FAQ#access-denied So, check outhttp://wiki.openqa.org/display/WTR/FAQ#access-denied. There are a few workarounds listed there (e.g. go directly to frame URL, add URL to browser's trusted sites, tweak etc/host file). Hope that helps. orde PS: I'm using IE7 + watir 1.8.6 + ruby 1.6.2. On Jun 15, 8:08 am, jason jason.franklin.sto...@gmail.com wrote: HI I have a simple case that i cannot seem to make work. i.e. fill out a form and submit it and see a new resulting page. here the real example: ff.goto(http://www.adecco.de/GERMAN/candidates/jobsuche/Pages/ DEJobSuche.aspx) ff.frame(:index, 1).form(:index, 1).text_field(:index , 1).set (hello) ff.frame(:index, 1).form(:index, 1).submit the submit_form method in firewatir does get called and the browser does recieve the .submit command but the page just rebuilds the form - even with the word hello that i set it with. and ideas why a page is not being generated. hoping that i am missing somthing very simple. thanks for your help jason. --~--~-~--~~~---~--~~ 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] Can't click on text in a cell which is located in undefined tables
Hi all, Below name texts (Jayasooriya, Jayawardena) are located in cells of a un named table. But they are working like links. When double click on that text, method 'select submit' is getting called. I am not being able to double click on this text using watir. Appreciate your help on this problem with working code segments. table width=100% border=0 cellpadding=0 cellspacing=0 tr tdtable width=100% border=0 cellpadding=1 cellspacing=0 tr class=ActionValueData id='Cricket' style='cursor:hand;' ondblclick=SelectSubmit('525','789','','100','Jayasooriya','10');A id=anchorListRow style='display: none;'/a td width=110 nowrap align=left valign=top class=ActionValueData onclick=SetCricketerName('53','9852','','Sri Lanka','Jayasooriya,'39'); Jayasooriya /td td width=300 align=left valign=top class=ActionValueData onclick=SetCricketerName ('58','5874','','105','Mahela Jayawardena','32'); Jayawardena /td --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---