[wtr-general] Re: Test Results output capturing
Thanks A lot JArkelen, This is exciting :-) I have started using this Class ;-) On Jan 15, 8:03 pm, JArkelen johnvanarke...@gmail.com wrote: http://wiki.openqa.org/display/WTR/HTML+report+class On Jan 15, 7:53 am, Jagdeep Jain jagdeep.j...@gmail.com wrote: I got it through Rspec: spec usingrspec.rb --format html testresult.html On Jan 15, 11:31 am, Jagdeep Jain jagdeep.j...@gmail.com wrote: I want to populate Watir results to HTML format. Is there any way to do this? Or is there any way to have all 'puts' goes to HTML file? --~--~-~--~~~---~--~~ 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 hangs after a div click
click_no_wait won't work. Actually when clicking on the div, there will be new operation(delete, open) links appear. If I used click_no_wait, the new links won't appear. Thanks! On Jan 15, 8:32 pm, wesley chen cjq@gmail.com wrote: What's the detail information about your div? When the div is clicked, what will happen? Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 9:14 AM, Michael Hwee michael_h...@yahoo.comwrote: Try click_no_wait() - Original Message From: zeng0...@gmail.com zeng0...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, January 15, 2009 11:20:10 AM Subject: [wtr-general] Code hangs after a div click I have the following code: $browser.link(:text, Media).click $browser.link(:text, Content Manager).click Watir::Waiter.wait_until { $browser.text.include? tag all items } $browser.div(:class, collection-container-scroller).table (:index, 1)[1][1].div(:class,collection-entry-title-thumb- compact).click puts(after click the collection) It did click the div, but seems after the click, the code hangs and the next line never gets executed. I also tried irb, it's the same, after click the div, the irb command line never comes back, I have to use Ctrl-C to stop it. Does anyone have idea about this? 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] Re: Code hangs after a div click
I used click! method on the div element and it works. But I am not clear about the difference between click and click!. Does anyone have some idea? Thanks! On Jan 15, 8:32 pm, wesley chen cjq@gmail.com wrote: What's the detail information about your div? When the div is clicked, what will happen? Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 9:14 AM, Michael Hwee michael_h...@yahoo.comwrote: Try click_no_wait() - Original Message From: zeng0...@gmail.com zeng0...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, January 15, 2009 11:20:10 AM Subject: [wtr-general] Code hangs after a div click I have the following code: $browser.link(:text, Media).click $browser.link(:text, Content Manager).click Watir::Waiter.wait_until { $browser.text.include? tag all items } $browser.div(:class, collection-container-scroller).table (:index, 1)[1][1].div(:class,collection-entry-title-thumb- compact).click puts(after click the collection) It did click the div, but seems after the click, the code hangs and the next line never gets executed. I also tried irb, it's the same, after click the div, the irb command line never comes back, I have to use Ctrl-C to stop it. Does anyone have idea about this? 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] Re: Drag and Drop with widgets
JQuery -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Paul Rogers Sent: Thursday, January 15, 2009 4:38 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Drag and Drop with widgets Ive been working on getting this done. Do you know what library is being used? Paul On Thu, Jan 15, 2009 at 3:22 PM, Moochie dduph...@redbrickhealth.com wrote: Does anyone know how to move widgets on a page? The class is ui-sortable. I've search all over and I'm unable to find any helpful information about drag and drop. --~--~-~--~~~---~--~~ 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] Need to automate pressing of Enter key
Hello All, I need to automate pressing the Enter key from the keyboard. Is there any key press function that Watir supports? Please could you provide the details. Thanks in advance, 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] Re: Need to automate pressing of Enter key
#Keyboard Click $ie.send_keys({enter]) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Natasha Sent: Friday, January 16, 2009 8:45 AM To: Watir General Subject: [wtr-general] Need to automate pressing of Enter key Hello All, I need to automate pressing the Enter key from the keyboard. Is there any key press function that Watir supports? Please could you provide the details. Thanks in advance, 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] Re: Need to automate pressing of Enter key
Thanks Darin. Just to sum up, the following statement worked: $ie.send_keys({ENTER}) Thanks, Natasha On Jan 16, 2:46 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: #Keyboard Click $ie.send_keys({enter]) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Natasha Sent: Friday, January 16, 2009 8:45 AM To: Watir General Subject: [wtr-general] Need to automate pressing of Enterkey Hello All, I need to automate pressing the Enterkeyfrom the keyboard. Is there anykeypressfunction that Watir supports? Please could you provide the details. Thanks in advance, 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] Re: Need to automate pressing of Enter key
How would you send an enter key if the window that is open is not a ie window? On Jan 16, 10:11 am, Natasha itsn...@yahoo.co.uk wrote: Thanks Darin. Just to sum up, the following statement worked: $ie.send_keys({ENTER}) Thanks, Natasha On Jan 16, 2:46 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: #Keyboard Click $ie.send_keys({enter]) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Natasha Sent: Friday, January 16, 2009 8:45 AM To: Watir General Subject: [wtr-general] Need to automate pressing of Enterkey Hello All, I need to automate pressing the Enterkeyfrom the keyboard. Is there anykeypressfunction that Watir supports? Please could you provide the details. Thanks in advance, Natasha- 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] ruby.exe hangs
ruby .exe hangs under watir execution --~--~-~--~~~---~--~~ 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: Need to automate pressing of Enter key
You would just replace the $ie. With whatever you called your browser property. The $ie in my test case is referring to the following #Set ie to current browser $ie = Watir::IE.attach(url,www.somthing.com) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Louie Sent: Friday, January 16, 2009 9:20 AM To: Watir General Subject: [wtr-general] Re: Need to automate pressing of Enter key How would you send an enter key if the window that is open is not a ie window? On Jan 16, 10:11 am, Natasha itsn...@yahoo.co.uk wrote: Thanks Darin. Just to sum up, the following statement worked: $ie.send_keys({ENTER}) Thanks, Natasha On Jan 16, 2:46 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: #Keyboard Click $ie.send_keys({enter]) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Natasha Sent: Friday, January 16, 2009 8:45 AM To: Watir General Subject: [wtr-general] Need to automate pressing of Enterkey Hello All, I need to automate pressing the Enterkeyfrom the keyboard. Is there anykeypressfunction that Watir supports? Please could you provide the details. Thanks in advance, Natasha- 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: Need to automate pressing of Enter key
Well that is another problem Because the script I have a JavaAlert window is appearing and I dont know how to attach to it since it is not an IE window. I can just hit enter on the keyboard and the window goes away but I can not get my script to identify the window. so another questions how to identify an non IE window? How can you see all windows available? Thank you Louie On Jan 16, 10:33 am, Darin Duphorn dduph...@redbrickhealth.com wrote: You would just replace the $ie. With whatever you called your browser property. The $ie in my test case is referring to the following #Set ie to current browser $ie = Watir::IE.attach(url,www.somthing.com) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Louie Sent: Friday, January 16, 2009 9:20 AM To: Watir General Subject: [wtr-general] Re: Need to automate pressing of Enter key How would you send an enter key if the window that is open is not a ie window? On Jan 16, 10:11 am, Natasha itsn...@yahoo.co.uk wrote: Thanks Darin. Just to sum up, the following statement worked: $ie.send_keys({ENTER}) Thanks, Natasha On Jan 16, 2:46 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: #Keyboard Click $ie.send_keys({enter]) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Natasha Sent: Friday, January 16, 2009 8:45 AM To: Watir General Subject: [wtr-general] Need to automate pressing of Enterkey Hello All, I need to automate pressing the Enterkeyfrom the keyboard. Is there anykeypressfunction that Watir supports? Please could you provide the details. Thanks in advance, Natasha- Hide quoted text - - Show quoted text -- 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: Need to automate pressing of Enter key
So, you have a popup appear after you click (button or link)? Correct? If so, would search for popup in the form. I can help, but this is the wrong thread. -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Louie Sent: Friday, January 16, 2009 9:48 AM To: Watir General Subject: [wtr-general] Re: Need to automate pressing of Enter key Well that is another problem Because the script I have a JavaAlert window is appearing and I dont know how to attach to it since it is not an IE window. I can just hit enter on the keyboard and the window goes away but I can not get my script to identify the window. so another questions how to identify an non IE window? How can you see all windows available? Thank you Louie On Jan 16, 10:33 am, Darin Duphorn dduph...@redbrickhealth.com wrote: You would just replace the $ie. With whatever you called your browser property. The $ie in my test case is referring to the following #Set ie to current browser $ie = Watir::IE.attach(url,www.somthing.com) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Louie Sent: Friday, January 16, 2009 9:20 AM To: Watir General Subject: [wtr-general] Re: Need to automate pressing of Enter key How would you send an enter key if the window that is open is not a ie window? On Jan 16, 10:11 am, Natasha itsn...@yahoo.co.uk wrote: Thanks Darin. Just to sum up, the following statement worked: $ie.send_keys({ENTER}) Thanks, Natasha On Jan 16, 2:46 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: #Keyboard Click $ie.send_keys({enter]) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Natasha Sent: Friday, January 16, 2009 8:45 AM To: Watir General Subject: [wtr-general] Need to automate pressing of Enterkey Hello All, I need to automate pressing the Enterkeyfrom the keyboard. Is there anykeypressfunction that Watir supports? Please could you provide the details. Thanks in advance, Natasha- Hide quoted text - - Show quoted text -- 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] using a table cell variable
Hi, Has anyone had problems using a variable in the cell array? checkbox_id = ingest.find_enabled_checkbox(Search_ItemDetail_SpoolGrid).id row = checkbox_id.match(/\d\d/) browser.table(:id, /Search_ItemDetail_SpoolGrid/)[row][3].text This is the stack trace undefined method `-' for #MatchData:0x6012f10 (NoMethodError) c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:159:in `_row' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:99:in `[]' This will work the though browser.table(:id, /Search_ItemDetail_SpoolGrid/)[15][3].text Aidy --~--~-~--~~~---~--~~ 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 hangs after a div click
click() -- does click!() and wait. click!() -- ole object click click_no_wait() -- does click!() in separate thread. But, no wait. - Original Message From: zeng0...@gmail.com zeng0...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Friday, January 16, 2009 6:22:05 AM Subject: [wtr-general] Re: Code hangs after a div click I used click! method on the div element and it works. But I am not clear about the difference between click and click!. Does anyone have some idea? Thanks! On Jan 15, 8:32 pm, wesley chen cjq@gmail.com wrote: What's the detail information about your div? When the div is clicked, what will happen? Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 9:14 AM, Michael Hwee michael_h...@yahoo.comwrote: Try click_no_wait() - Original Message From: zeng0...@gmail.com zeng0...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, January 15, 2009 11:20:10 AM Subject: [wtr-general] Code hangs after a div click I have the following code: $browser.link(:text, Media).click $browser.link(:text, Content Manager).click Watir::Waiter.wait_until { $browser.text.include? tag all items } $browser.div(:class, collection-container-scroller).table (:index, 1)[1][1].div(:class,collection-entry-title-thumb- compact).click puts(after click the collection) It did click the div, but seems after the click, the code hangs and the next line never gets executed. I also tried irb, it's the same, after click the div, the irb command line never comes back, I have to use Ctrl-C to stop it. Does anyone have idea about this? 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] Re: Test Results output capturing
Hi I am trying to use this class but constantly getting Error: HTML Result file is created but No results added. Can someone help please ?? 1) Error: test_print_assertion(TC_demo): NameError: undefined local variable or method `r' for #TC_demo: 0x3a4682c temp.rb:49:in `test_print_assertion' Thanks. On Jan 16, 2:56 am, Jagdeep Jain jagdeep.j...@gmail.com wrote: Thanks A lot JArkelen, This is exciting :-) I have started using this Class ;-) On Jan 15, 8:03 pm, JArkelen johnvanarke...@gmail.com wrote: http://wiki.openqa.org/display/WTR/HTML+report+class On Jan 15, 7:53 am, Jagdeep Jain jagdeep.j...@gmail.com wrote: I got it through Rspec: spec usingrspec.rb --format html testresult.html On Jan 15, 11:31 am, Jagdeep Jain jagdeep.j...@gmail.com wrote: I want to populate Watir results to HTML format. Is there any way to do this? Or is there any way to have all 'puts' goes to HTML file? --~--~-~--~~~---~--~~ 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: Issue with using arguments within Open Office (column, row) code
you need to pass (row,column) for the function sheet1.getCellByPosition(id)...arity of this function is 2. On Sat, Jan 17, 2009 at 2:01 AM, dmitry...@gmail.com dmitry...@gmail.comwrote: Hello everyone, Running into an issue, would really appreciate some help. I have to files. One has a method with arguments defined for the Open Office Calc code like so: firstscript.rb: class FirstTest def test(id) noArgs = [] file_uri = file:///c:/test.ods serviceManager = WIN32OLE.new(com.sun.star.ServiceManager) coreReflection = serviceManager.createInstance (com.sun.star.reflection.CoreReflection) desktop = serviceManager.createInstance (com.sun.star.frame.Desktop) spreadsheet = desktop.loadComponentFromURL(file_uri, _blank, 0, noArgs) sheetsCollection = spreadsheet.Sheets sheet1 = sheetsCollection.getByIndex(0) $browser.text_field(:id, 'position_req_id').value = sheet1.getCellByPosition(id).Formula end end My other script sets the id: require firstscript FirstTest.new.test (1, 0) results in an error: method_missing': getCellByPosition (WIN32OLERuntimeError) OLE error code:1001 in [automation bridge] InterfaceOleWrapper_Impl::Invoke : [automation bridge]UnoConversionUtilitiesT::variantToAny Cannot convert the value of vartype :8 to the expected UNO type of type class: 6 HRESULT error code:0x80020009 Any ideas? Thank you. --~--~-~--~~~---~--~~ 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: button.Click_No_Wait only highlights the button, does not click
I ran into this issue and have been able to resolve what was causing this on Windows XP. This may not be what's causing it for other folks but hopefully it will point them in the right direction. We have an TeamCity server that will execute our tests using Rake on the build agents running Windows XP. When my scripts that were dealing with popups ran on the agents they failed every time with the same issue described in this thread. So what I did was take the simple Google sample and run it in a Command Prompt on the agent directly and it worked fine. I used the Command Prompt window and executed my full test case and it ran fine. I shut down the TeamCity build agent service, and ran their agent batch files directly (not the service). I kicked the build off again and it ran fine this time. The problem seemed to be related to the Ruby process executing under the SYSTEM user account. I stopped running them through the service and instead as normal batch files in the Startup and they're working fine now. It seems like there is an issue related to the @page_container.eval_in_spawned_process when running under this type of security setup. Make sure whatever process is launching Ruby is running as a normal user account and see if that resolves the problem. Hope this helps. On Dec 12 2008, 9:19 am, Bret Pettichord b...@pettichord.com wrote: Your code is correct. There is something about your configuration that causes this to fail. Bret HAHAHA wrote: I have tried, using this code: require 'watir' browser = Watir::IE.new browser.goto('http://www.google.com') browser2 = Watir::IE.attach(:title, /Google/) browser2.text_field(:name, 'q').set('Watir') browser2.button(:name, 'btnG').click_no_wait The click_no_wait still cannot run. Is the code right? On Dec 12, 9:58 am, larryni...@gmail.com larryni...@gmail.com wrote: Pramod, could you show us an example of your code? On Dec 11, 11:01 pm, pramod D petkar.pra...@gmail.com wrote: Hi Michael, Initially i also faced same problem when i use Click_no_wait control was going but never clicked it, To come around this initially i opened the IE (IE7)with blank page and then, i will attach the browser at the start of the script and continue to execute my script as usual and worked correctly. For time being you can fallow this turn around method. Thanks, Pramod On Fri, Dec 12, 2008 at 1:46 AM, Michael Hwee michael_h...@yahoo.comwrote: That is disappointing. I believe that is something like OS and/or configuration issues, rather than watir itself. Michael - Original Message From: larryni...@gmail.com larryni...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, December 11, 2008 12:00:00 PM Subject: [wtr-general] Re: button.Click_No_Wait only highlights the button, does not click Sorry, Michael, your code doesn't work either. It opens the page, highlights the button yellow, and then just sits there. No popup is ever launched because it doesn't actually click the button. Watir doesn't report any errors, but it never completes, either. If I change click_no_wait to click!, it does launch the popup, but the handle_nextpopup command never executes - it's been sitting here for 90-120 seconds with the popup open not doing anything. So, again, to summarize: click_no_wait is incapable of firing any events, but click! makes the script hang.- 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] clicking on link with with raquo
I am trying to click on a link which looks like the following: a href=/dashboardSkip for now »/a I tried: browser.link(:text, Skip for now ).click which did not work. I believe the character is actually raquo. Solutions? Thanks, Jeremy --~--~-~--~~~---~--~~ 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: clicking on link with with raquo
You can try two ways: First: browser.link(:text, /Skip for now/).click Second: Replace with amp; On Sat, Jan 17, 2009 at 3:32 AM, Jeremy Owens jer...@weplay.com wrote: I am trying to click on a link which looks like the following: a href=/dashboardSkip for now »/a I tried: browser.link(:text, Skip for now ).click which did not work. I believe the character is actually raquo. Solutions? Thanks, Jeremy -- Thanks. Wesley Chen. --~--~-~--~~~---~--~~ 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: using a table cell variable
Try : row = checkbox_id.match(/\d\d/).to_i On Sat, Jan 17, 2009 at 1:43 AM, aidy lewis aidy.le...@googlemail.comwrote: Hi, Has anyone had problems using a variable in the cell array? checkbox_id = ingest.find_enabled_checkbox(Search_ItemDetail_SpoolGrid).id row = checkbox_id.match(/\d\d/) browser.table(:id, /Search_ItemDetail_SpoolGrid/)[row][3].text This is the stack trace undefined method `-' for #MatchData:0x6012f10 (NoMethodError) c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:159:in `_row' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:99:in `[]' This will work the though browser.table(:id, /Search_ItemDetail_SpoolGrid/)[15][3].text Aidy -- Thanks. Wesley Chen. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---