[wtr-general] Button click in IE8 using watir web-driver.
Hello, I am just following this script on http://watirwebdriver.com/: require 'watir-webdriver' b = Watir::Browser.new b.goto 'bit.ly/watir-webdriver-demo' b.text_field(:id = 'entry_0').set 'your name' b.select_list(:id = 'entry_1').select 'Ruby' b.select_list(:id = 'entry_1').selected? 'Ruby' #~ b.div(:class = 'ss-form-entry').button.click -- This line gives 'element not found' error, so changed this to: b.button(:name = 'submit').click b.text.include? 'Thank you' The b.button(:name = 'submit').click does not work in IE8. I tried .focus and .flash and they work, but .click does not. It works correctly on chrome and firefox. I have also tried: b.button(:name = 'submit').fire_event mouseover b.button(:name = 'submit').fire_event click which again does not work. My protected mode setting is ON in all places and the pop-up blocker is OFF. I do not have a Google Toolbar that might block anything. Could somebody please help me find the problem here? Could you try this script on your IE8 browser and see if it works for you? Thanks, Prajakta -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Related to multiple instance of IE
Try these: http://wiki.openqa.org/display/WTR/New+Browser+Windows http://wiki.openqa.org/display/WTR/New+Browser+Windows http://stackoverflow.com/questions/5630084/how-to-handle-new-browser-pop-up-after-clicking-a-js-button-in-watir http://stackoverflow.com/questions/5630084/how-to-handle-new-browser-pop-up-after-clicking-a-js-button-in-watir -Prajakta On Fri, Apr 15, 2011 at 11:17 AM, vicky vicky.jador...@gmail.com wrote: Hi, I am new to watir.I have 1 query plz help me if you can I have launched the 1 browser instance by watir code. now the link is present on that page by clicking on this page new window will gwt open new window gets opened then my test case passed and if not the it failed. but i don't know how to identify that new window? do i need to create another instance of browser? Plz help me if u know...Thanks in advance Regards, Vikrant -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Intermittent Watir issue with Firefox
How are you using 'watir' for firefox? You should be using 'firewatir', right? -Prajakta On Thu, Feb 3, 2011 at 7:43 PM, Stephen Mc Gowan mccl...@gmail.com wrote: Hi, I'm seeing an intermittent watir issue with firefox. I really don't know whats causing it, I can't seem to cause it to happen reliably. I've seen a thread from last may discussing something similar and a really hacky work around:http://osdir.com/ml/watir-general/2010-05/msg00134.html I guess I'm hoping some better solution might have popped up in the meantime. It's giving me the following error. C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:19:in `js_eval': this.docShell is null (JsshSocket::JSTypeError) C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:194:in `set_browser_document' C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:52:in `initialize' C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/watir/browser.rb:65:in `new' C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/watir/browser.rb:65:in `new' from ./Ruby/goto.rb:7 and goto.rb is here: require rubygems require watir puts('ruby: Using firefox') Watir::Browser.default = 'firefox' puts('ruby: Starting browser') b = Watir::Browser.new puts('ruby: Browser started') b.maximize b.goto(ARGV[0]) Any ideas? Cheers, -- Stephen Mc Gowan. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Automating the object with in TD tag
you could use src to identify it. browser.image(:src = /gtk-ok/).click Find more info here: http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html#M000324 -Prajakta On Thu, Jan 13, 2011 at 10:43 AM, sweet flower ure...@gmail.com wrote: Hi, I was able to automate that using the Cell method. I have one more question. I have an object with in IMG tag.. but the properties are not enough to identify the same I have title, class, src and align properties alone. how can i use the image method to identify this? kindly help. By, Sanu. T On Wed, Jan 12, 2011 at 8:58 PM, Sanu ure...@gmail.com wrote: Hi, I have an object with TD tag with out any object type specified. That is actually a tag in the application. please find the HTML code below TR TD class=styleTabUnSelected id=S3Role #text SCRIPT and goes like this if i spy the tab i am getting the below Attributs, Name Value align left background-image(css) url(../images/AsTabBackMiddle.gif) class styleTabUnSelected= color(css) #00 cursor(css) pointer height 24 id S3Role onclick JavaScript:pushTab('S3Role'); onmouseout JavaScript:mouseOutTab('S3Role') onmouseover JavaScript:mouseOverTab('S3Role') style BACKGROUND-IMAGE: url(../images/ AsTabBackMiddle.gif); CURSOR: pointer; COLOR: #00 I am very new to Ruby kindly provide your ideas. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-generalwatir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Watir 1.7.0 Released
Happy New Year to you too! And thanks for the new Watir. :) Is this Watir version tested on latest Ruby, i.e 1.9.2 or is Ruby 1.8.6 still the recommended ruby version for Watir? Regards, Prajakta On Thu, Jan 6, 2011 at 2:26 PM, Jarmo jarm...@gmail.com wrote: Hello and Happy New Year to everyone! This year's first Watir is here - version 1.7.0! Install it with: Windows: gem install watir Linux/OS X: gem install firewatir Changelog: === IE improvements * Fixed Watir::IE#close_all to close all IE windows, even the ones with tabs. Closes http://jira.openqa.org/browse/WTR-463 (Jarmo Pertman) * IE#wait waits now again until browser has a state of READYSTATE_COMPLETE due to strange timing issues. Closes http://jira.openqa.org/browse/WTR-466(Jarmo Pertman) * Added CSS3 selectors with usage like browser.text_field(:css = input[name='text1']) (Jonas Tingeborn) * Updated bundled version of AutoIt to 3.3.6.1. Closes http://jira.openqa.org/browse/WTR-440 (Jarmo Pertman) === Firefox improvements * Fixed Element#exists? for cases where nested elements were used for locating (Alok Menghrajani) * Ignore uppercase tags in XHTML when searching for elements (Alok Menghrajani) === General improvements * Return Element#id correctly when using Element#when_present and friends methods. Closes http://jira.openqa.org/browse/WTR-469 (Jarmo Pertman) Whole Changelog is available at http://github.com/bret/watir/compare/v1.6.7...v1.7.0 Watir Development Team -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Unable to identify the object error
Try using value of the option instead of label. E.g: browser.select_list(:name,ModuleID).set(13) -Prajakta On Mon, Dec 6, 2010 at 7:12 PM, Sudeep sudeeppattn...@gmail.com wrote: Hi, I am getting the following error while setting a value to the drop down list. Watir Script : browser.select_list(:name,ModuleID).set(Audits) HTML Code: select style=display:inline; sourcetype:module; targetid:divModule; font-size: 8pt; COLOR: #33; font-family: Verdana; width:280px onchange=populateDIV(this); ModuleID_onChange(); onmouseout=hidePathOnPop();this.style.textDecoration='none';this.style.color ='#00'; onmouseover=this.style.textDecoration='underline';this.style.color ='#0033CC'; id=ModuleID name=ModuleID class=sysNavbarActiveSearch size=1 option value=cap lt; Module gt;/option option value=13nbsp;nbsp;nbsp;Audits option value=19nbsp;nbsp;nbsp;Document Control option value=83nbsp;nbsp;nbsp;Master Incident option value=917nbsp;nbsp;nbsp;mdole option value=915nbsp;nbsp;nbsp;Module12 option value=916nbsp;nbsp;nbsp;Module123 option value=9nbsp;nbsp;nbsp;Operational Control option value=909nbsp;nbsp;nbsp;play8 option value=80nbsp;nbsp;nbsp;Quality Nonconformance option value=70nbsp;nbsp;nbsp;Standard Nonconformance /select Error in the console : C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/element.rb: 58:in `assert_exists': Unable to locate element, using :name, ModuleID Watir::Exception::UnknownObjectException) from C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/ input_eleme nts.rb:64:in `select_item_in_select_list' from C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/ input_eleme nts.rb:48:in `set' from Intelex_Audit_1.txt:11 I am not able to find the reason why is it not able to find the Object with name ModuleId whereas in the HTML it is clearly mentioned as the name. Please can you help me out? Regards, Sudeep -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Javascript pop uo using firewatir
Why does Browser.link(:href,/users/1).click have double quotes ( ) around :href? That is not required and I am not sure if that will work either. This is the syntax: a href=page.htmie.link(:href, /page/).click Try removing those double quotes. Hope it works. 2010/11/22 Amit Kulkarni amitkkulkarni...@gmail.com Thanks a lot for the link. But i tried every option but no success. If you see carefully it uses a Ajax call. require 'rubygems' require 'firewatir' Watir::Browser.default = 'firefox' Browser = Watir::Browser.new Browser.goto(http://localhost:3000/users;) Browser.link(:href,/users/1).click --error referring to this line #Browser.execute_script(window.confirm = function() {return true}) def check_for_popups autoit = WIN32OLE.new('AutoItX3.Control') # # Do forever - assumes popups could occur anywhere/anytime in your application. loop do # Look for window with given title. Give up after 1 second. ret = autoit.WinWait('Destroy', '', 1) # # If window found, send appropriate keystroke (e.g. {enter}, {Y}, {N}). if (ret==1) then autoit.Send('{enter}') end # # Take a rest to avoid chewing up cycles and give another thread a go. # Then resume the loop. sleep(3) end end $popup = Thread.new { check_for_popups } # start popup handler at_exit { Thread.kill($popup) } After running i get the following error js_eval': missing ; before statement (JsshSocket::JSSyntaxError) from /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:27:in `js_eval_method' from /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:936:in `enabled?' from /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:922:in `assert_enabled' from /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:1072:in `click' from user_destroy.rb:6 On Thu, Nov 18, 2010 at 2:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Nov 18, 2010 at 8:21 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: On delete action popup is there which onclick it shows a pop up box along with two buttons i.e. Ok and Cancel Maybe something from here could help you: http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Automating websiet implemented using AJAX
Try using some other element property like name or value instead of id. You could find their values using developer's tool bar. 2010/11/18 Hrishikesh Bose hrishikesh.b...@gmail.com may be i am new to the Watir. The problem i am facing is as following. . i need to automate a use case which is like a new window. i provide name and password and click save to create a new user. Now the Name and Password are text fields. I can get the ids using developer tool bar. but the next time i reload the page and try to run the automation script again, the text_field ids get changed to a new value and my test script fails so the first time i select the text field i get INPUT id=c_179 Once the page is reloaded i get INPUT id=c_2 what i should do so that even if these IDs are changing i can find the same element. thanks, hrishikesh bose On Thu, Nov 18, 2010 at 3:14 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Nov 18, 2010 at 10:32 AM, Hrishikesh Bose hrishikesh.b...@gmail.com wrote: so got this questions on whether we can use WATIR to automate AJAX web pages. You should be able to do it. Most of us automate web applications with a lot of javascript. Let us know if you have a problem with someting. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Writing and running WATIR scripts
Find the information here: http://screencast.com/t/k5LGJDT0Dap On Thu, Nov 18, 2010 at 12:28 PM, Sudeep sudeeppattn...@gmail.com wrote: Hi, I am completely new to WATIR. I have installed Ruby 1.9.2 and have also installed WATIR by the command: gem install watir WATIR has been installed but I donot know how to write the WATIR scripts and how to run them. Actually I know the syntax of writing it but do not know where to write and how to save and run it. Like for HTML we write it in Notepad and save with an extension name of .htm . The same way please can you tell me the procedure for writing and executing a WATIR script. Thanks in advance, Sudeep -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Writing and running WATIR scripts
oops.. wrong link... this is the correct one: http://ruby.about.com/od/beginningruby/ss/visualinstal_7.htm On Thu, Nov 18, 2010 at 12:37 PM, Prajakta Jadhav jadhav.praja...@gmail.com wrote: Find the information here: http://screencast.com/t/k5LGJDT0Dap On Thu, Nov 18, 2010 at 12:28 PM, Sudeep sudeeppattn...@gmail.com wrote: Hi, I am completely new to WATIR. I have installed Ruby 1.9.2 and have also installed WATIR by the command: gem install watir WATIR has been installed but I donot know how to write the WATIR scripts and how to run them. Actually I know the syntax of writing it but do not know where to write and how to save and run it. Like for HTML we write it in Notepad and save with an extension name of .htm . The same way please can you tell me the procedure for writing and executing a WATIR script. Thanks in advance, Sudeep -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-generalwatir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Writing and running WATIR scripts
Nope. As the page says: The Ruby One-Click Installer comes with a small editor called Scite. Go to Start menu - Ruby (ur version) - Scite Scite editor will open. Now when you write your script using this Scite editor and save it, it gets saved as a .rb (i.e. a ruby file) by default. You can right click on this file and edit it again using Scite etitor or double click on it to run it. Pressing F5 while file is opened in scite also runs the file. -Prajakta On Thu, Nov 18, 2010 at 12:58 PM, Sudeep sudeeppattn...@gmail.com wrote: Hi Prajakta, Thank you for the reply. The screenshot shows that SCITE edito has been used. Do I need to download SCITE editor?? On Nov 18, 12:07 pm, Prajakta Jadhav jadhav.praja...@gmail.com wrote: oops.. wrong link... this is the correct one: http://ruby.about.com/od/beginningruby/ss/visualinstal_7.htm On Thu, Nov 18, 2010 at 12:37 PM, Prajakta Jadhav jadhav.praja...@gmail.com wrote: Find the information here:http://screencast.com/t/k5LGJDT0Dap On Thu, Nov 18, 2010 at 12:28 PM, Sudeep sudeeppattn...@gmail.com wrote: Hi, I am completely new to WATIR. I have installed Ruby 1.9.2 and have also installed WATIR by the command: gem install watir WATIR has been installed but I donot know how to write the WATIR scripts and how to run them. Actually I know the syntax of writing it but do not know where to write and how to save and run it. Like for HTML we write it in Notepad and save with an extension name of .htm . The same way please can you tell me the procedure for writing and executing a WATIR script. Thanks in advance, Sudeep -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com http://groups.google.com/group/watir-generalwatir-general+unsubscribe...- Hide quoted text - - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Need to count specific DIVs within a DIV
I think you should try : ie.div( :id, 'foo' ).divs.each {|d| puts 'found one!' if d.class == 'bar'} Probably one '=' in your comparison is missing. Also attaching my working sample script for reference here. Hope this helps. ie.div(:id, id).divs.find_all{|dvi| dvi.class_name == 'businessProfileActivity' if(dvi.title == style) then puts found -Prajakta On Thu, Nov 4, 2010 at 1:44 AM, Paul tester.p...@gmail.com wrote: Hi there, I need to count the number of DIV containers in a specific page so that I can iterate through each of them looking for specific information. I'm stuck trying to figure out how to do this. When I view the source I see that there are only 3 containers that I care about (the ones with 'class=bar'). The HTML structure looks something like: div id='foo' div class='bar' div class='baz' ... div class='bar' div class='baz' ... div class='bar' div class='baz' ... /div What I've tried: irb: ie.div( :id, 'foo' ).divs.length = 350 (That's way too many - I know the answer is 3.) irb: ie.div( :id, 'foo' ).divs.each {|d| puts 'found one!' if d.class = 'bar'} NoMethodError: undefined method `class=' for #Watir::Div:0x41d8e50 located=false how=:index what=1 from (irb):23 from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ element_collections.rb:45:in `each' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ element_collections.rb:45:in `upto' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ element_collections.rb:45:in `each' That's too bad. I don't have any other way of specifically identifying these DIVs other than by class, and they all have the same class name. Suggestions? TIA -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Implementation of element object map for web automation.
Thank you. But I am already using our company made framework. And I have found a quick solution for my problem here: http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIcreateanapplication%2Fobjectmap%3F This worked nicely. :) On Thu, Oct 21, 2010 at 2:17 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 21, 2010 at 8:12 AM, Prajakta Jadhav jadhav.praja...@gmail.com wrote: I would like to know if there is a better way of implementing this UI map than what I am thinking of. I would suggest you take a look at Taza: http://github.com/scudco/taza/ Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Installation of Watir 1.6.5
your win32-process gem version is mismatching. I am attaching the required gem with this mail. Install it and then check. If it asks for any more dependent gems you can get them at following link - http://rubygems.org/gems/win32-process/versions/0.5.5 http://rubygems.org/gems/win32-process/versions/0.5.5-Prajakta On Tue, Apr 20, 2010 at 1:12 PM, deepak deepak.jh...@gmail.com wrote: Even after installing ruby 1.3.6 I'm getting the below error. I have attached the gem list, how to get win32-process 0.5.5 C:\rubygem install --local D:\watir-1.6.5.gem ERROR: Error installing D:\watir-1.6.5.gem: watir requires win32-process (= 0.5.5, runtime) C:\rubygem list *** LOCAL GEMS *** fxri (0.3.6) fxruby (1.6.12) hpricot (0.6) log4r (1.0.5) rake (0.7.3) rubygems-update (1.3.6) sources (0.0.1) win32-api (1.0.4) win32-clipboard (0.4.3) win32-dir (0.3.2) win32-eventlog (0.4.6) win32-file (0.5.4) win32-file-stat (1.2.7) win32-process (0.5.3) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.2.0) windows-pr (0.7.2) On Apr 16, 3:02 pm, kiran yajamanyam kiranyajaman...@gmail.com wrote: Hi Deepak, Even i have faced this problem and For that solution is first install rubygems and then install watir. For your ref I have attached rubygems as well. YOu can use the attached zip file - Kiran On Fri, Apr 16, 2010 at 3:11 PM, deepak deepak.jh...@gmail.com wrote: I'm trying to install watir 1..6.5 on a sytem without internet connectivity, I'm getting the below error. If anyone is aware of the problem please help. C:\rubygem install D:\watir-1.6.5.gem ERROR: While executing gem ... (RuntimeError) Error instaling D:\watir-1.6.5.gem: watir requires win32-process = 0.5.5 -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed tohttp:// groups.google.com/group/watir-general To post: watir-general@googlegroups.com rubygems-1.3.zip 479KViewDownload- Hide quoted text - - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com win32-process-0.5.5.gem Description: Binary data
Re: [wtr-general] Installation of Watir 1.6.5
did you run 'gem update' command? what does 'gem -v' command return to u? Is it greater than 1.3.5? If not, then your update was not successful. you are still in the older version. You will need to install rubygem1.3.6 first Then again run 'gem install watir'. On Fri, Apr 16, 2010 at 3:11 PM, deepak deepak.jh...@gmail.com wrote: I'm trying to install watir 1..6.5 on a sytem without internet connectivity, I'm getting the below error. If anyone is aware of the problem please help. C:\rubygem install D:\watir-1.6.5.gem ERROR: While executing gem ... (RuntimeError) Error instaling D:\watir-1.6.5.gem: watir requires win32-process = 0.5.5 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
[wtr-general] What has happened to http://wtr.rubyforge.org/rdoc/ ?
This page is showing some index instead of the Watir's RDoc with 3 lists. Did I miss something? When did this page change? -- 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
Re: [wtr-general] How to click this strange link in Firewatir and Safariwatir?
try @browser.link(:class,userMenuLink).click Actually if :text works in IE, it should work in FF. Yet you could give the above a try. -Prajakta On Tue, Feb 2, 2010 at 11:49 AM, Yuping Zhong littlezhong...@gmail.comwrote: Dear All, I want to use the Watir to click a link that looks like a button. Give the following detail: li class=userMenuLink a href=/test/qty_curvesDemandnbsp;Curves/a /li I use the following methods,but doesn't works: @browser.link(:text,Demand Curves).click @browser.link(:text,Demandnbsp;Curves).click - By the way, @browser.link(:text,Demand Curves).click works in IE. But doesn't works in FF and Safari. I attach the pictures. Many thanks! -Zhong -- 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 -- 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
Re: [wtr-general] Re: Getting the text inside the div
Following should serve your purpose: ie.div(:class, testing_1).divs.each do |dv| puts dv.text -Prajakta On Wed, Jan 13, 2010 at 4:41 PM, Soori sure...@gmail.com wrote: Hi John, .html will return the html with DIV,etc, I would like to get only the text inside the div . Thanks, Soori On Jan 13, 3:30 pm, John Kolokotronis johnj...@gmail.com wrote: Try ie.div(:class, testing_1).html instead... Regards, John On Jan 13, 10:20 am, Soori sure...@gmail.com wrote: All I am capturing the the text inside a div as mentioned below, divdiv class=testing_1 divtestdata1/div divtest data2/div divtest:data3/div/div ie.div(:class, testing_1).text captures the information on a single line... I would like to print it as shown on the html above. I got stuck in this.Please show me a way to proceed. Thanks in advance, /Soori -- 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 -- 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
Re: [wtr-general] need help on how to close the new windows
u will need to get the handle of new browsers that are opening then execute browser.close for those browser windows if you are clicking some link/image which in turn opens your new browser window then you will have to use some 'getwindow' type of method to get the handle of that browser -Prajakta On Wed, Dec 30, 2009 at 2:43 PM, Tester joeni...@gmail.com wrote: i am running a watir script on a url. The script opens pdf documents in new windows. There are more that 100 pdf files on opening each in new window the window hangs and I am not able to run the entire script. Can some one help me out in this. Is there a method such as ie.close to close the new browser window getting opened from the main window in watir? -- 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 -- 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
Re: [wtr-general] need help on how to close the new windows
If in case you are clicking on some link/image which in turn opens a new browser window then u ll need to get the handle of that new window first. Then u can execute browser.close on it. U ll need to attach the new window to a new watir browser instance. eg - ie2 = watir::IE.new ie2.attach(:url, url of new browser window) ie2.close On Wed, Dec 30, 2009 at 2:43 PM, Tester joeni...@gmail.com wrote: i am running a watir script on a url. The script opens pdf documents in new windows. There are more that 100 pdf files on opening each in new window the window hangs and I am not able to run the entire script. Can some one help me out in this. Is there a method such as ie.close to close the new browser window getting opened from the main window in watir? -- 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 -- 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 print results of Mulitple scripts in one HTML file
Shouldn't be a problem. Open the same html file in both the scripts for logging the results. It will log the results one after another in the same html file. -Prajakta On Fri, Oct 9, 2009 at 10:31 AM, Bindhu udayarekha2...@gmail.com wrote: Hi All, In batch file I have included 2 scripts to be executed. After a successful execution of this batch I want to print the results in one HTML file. As of now I am able to print the one HTML file for one script. But I want a single HTML file to be printed for multiple scripts which I have inculded on batch file. Please guide me. Right now I am using the code which is available in wiki.. 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: Setting innerHTML of a div using Watir.
Can you post the html code of this page? Are there any frames outside the div? On Fri, Sep 18, 2009 at 5:34 AM, Brian Rosenthal brosent...@facebook.comwrote: Hi, We’re using an “editable div”, and we need to be able to set its contents using Watir (in IE). What’s the best way to do that? It doesn’t seem to respond to IE.text_field(...)... And IE.div(...).innerHTML does not work (nor set). (this syntax) div contenteditable=true/div Thanks, Brian --~--~-~--~~~---~--~~ 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 click the graybutton?
you need to write something like: @browser.link(:href, https://ome.swimconnection.com/ome/users/new;).click A indicates a link. Its not a button. -Prajakta On Thu, Aug 27, 2009 at 3:42 PM, yuping zhong littlezhong...@gmail.comwrote: Dear All, I am an new user of Watir. Right now, I meet a issue that how to click the graybutton. Please see the attach,I support more info in the screenshot. Looks like this button is not a common button. I try the following following method,but it doesn't work. @browser.button(:value,Signup Now!).click I hope someone can give me a hand! If the info is not enough, go to the following website and you can find this button. https://ome.swimconnection.com Many thanks! -Zhong --~--~-~--~~~---~--~~ 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
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 response. /TD Hence, the only attribute I have to access text is class. Please suggest how to go ahead with it. Thanks, Rahul On Jun 15, 3:06 am, Wesley Chen cjq@gmail.com wrote: puts ie.cell(:id,...).text Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 2:48 PM, Rahul Ahuja mightyah...@gmail.com wrote: I want to compare value of textfield appeared on webpage with expected output. for example: One my web application; i have a submit button. Wheneven I click it; following message is displayed. You have already submitted your response. Following is the html code for it: TD class=ms-OneMerckQuickPollMessageDisplayCell You have already submitted your response. /TD Please do let me know specific command to capture this. Thanks in Advance Rahul- 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: Can WATIR automate web applications developed using Sharepoint Technology ?
I have automated a sharepoint application using watir... not a very big deal.. but you will have to dig around a bit at times On Wed, Jun 10, 2009 at 3:45 PM, Rahul Ahuja mightyah...@gmail.com wrote: Can WATIR automate web applications developed using Sharepoint Technology? Thanks Regards, Rahul Ahuja --~--~-~--~~~---~--~~ 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: WatirCraft LLC is closing
All the best Bret and Pete...! And a bigg THANK YOU for WATIR... :) On 6/4/09, Bret Pettichord b...@pettichord.com wrote: Pete Dignan and I have decided to shut down WatirCraft LLC. I will begin working full time for Convio in July. Convio has made a big commitment to using Watir. I will continue to be involved in the Watir community, but Convio is a software company that uses Watir internally to test its software -- just like many of you. Convio has not made any commitment to sponsor contributions to Watir, except when they also serve their internal needs. I'm actually looking forward to going back to being mainly a tester, instead of a framework developer. It will take some time to figure out what this transition will mean for my involvement with Watir. For one, it means we will need more help running the Watir project. Getting the Watir 1.7 release out has been delayed due to this transition (and a sprained knee), but all that is behind me now, so that should be able to move out shortly. Some people have asked about the WatirCraft framework. Convio currently uses the Rasta framework, and I expect to get more involved with that framework, which Hugh McGowan (at Convio) has been working on quite diligently lately. Some time ago, I sketched out a plan to integrate Rasta into WatirCraft. I expect to take a second look at those plans. The WatirCraft framework itself is open-source and will continue to be hosted on Github and available for use. Bret -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Ask me about Watir training www.watircraft.com/training --~--~-~--~~~---~--~~ 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
thats really cool! On Mon, Jun 1, 2009 at 9:12 PM, Chuck van der Linden sqa...@gmail.comwrote: On May 30, 4:50 am, karimnumerouno karim@gmail.com wrote: hi could any one share a link our some stuff of multi attribute selection, it there any doc there be a tool user: http://www.lmgtfy.com/?q=watir+multiple+attributes --~--~-~--~~~---~--~~ 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 and flash audio
I had this problem when I used $ie.send_keys() function.. this does not work if user hasn't logged in to windows. Maybe you are using some such GUI function in your script. Guess you ll have to use some other alternative for that function. On Mon, Jun 1, 2009 at 7:10 PM, Philbo phi...@gmail.com wrote: Hi, One of our Watir tests is based around a flash audio playback element embedded in a page. It's trying to test that playback occurs after clicking a Play button. I'm finding that when the test runs on our build server it fails, yet when I run it locally it passes. In addition to this, if I'm logged on to the build server when the test runs it passes also. My initial thought is that when no one is logged on to the build server some audio drivers are not loaded which is then affecting the flash playback. Does anyone have any ideas for a possible solution or work around? Maybe some way to force the drivers to load? To be clear, I don't want to test for an audio response from the page. I plan to do this by checking a playback progress bar. The problem is getting the flash element to play. Any help or wild ideas appreciated! Thanks, Philbo --~--~-~--~~~---~--~~ 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.
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 -~--~~~~--~~--~--~---