Re: [wtr-general] Re: latest watir giving error with firefox
Hi. I tried with all possible versions firefox 46,47,48,49 and I could see same error. On Thursday, 15 December 2016 15:27:01 UTC-5, Titus Fortner wrote: > > The ChildProcess messages there are normal. > > The root cause is likely trying to use firefox 46 without passing in > {marionette: false} > That being said, $DEBUG = true should give output more like this: > https://gist.github.com/titusfortner/2630bc4a6c40d314f8c7d3790ee0dd4f > > I need to get on a windows machine to see what might be going on with this > in particular. > > Also I might need to change Selenium to do a check for Firefox < 48 and > throw an error because it looks like you *can use geckodriver, but you > really shouldn't, and the code should probably prevent you from doing that. > > Titus > > > On Thursday, December 15, 2016 at 2:14:34 PM UTC-6, johnssn wrote: >> >> I can't remember for sure if this is the same thing but you may want to >> try this, grabbed it from our framework: >> >> >> # Absolutely, positively have to have this to create browser instances >> via webdriver. >> # Something in the Ruby stack is modifying how Kernel#exec works. This >> setting >> # allows Kernel#exec to be bypassed when starting up a browser instance. >> I think >> # the only thing that uses childprocess is watir-webdriver, so this >> change should >> # be safe. >> ChildProcess.posix_spawn = true >> >> -- >> *From:* naveen kumar <navee...@gmail.com> >> *To:* Watir General <watir-...@googlegroups.com> >> *Sent:* Thursday, December 15, 2016 11:09 AM >> *Subject:* [wtr-general] Re: latest watir giving error with firefox >> >> This is the begining trace >> >> C:\Users\nnalam\workspace\Arachni>ruby Login_script_2.rb >> Exception `ChildProcess::Error' at >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/windows/lib.rb:385 >> >> - The parameter is incorrect. (87) >> Exception `ChildProcess::Error' at >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/windows/lib.rb:385 >> >> - The parameter is incorrect. (87) >> Exception `ChildProcess::Error' at >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/windows/lib.rb:385 >> >> - The parameter is incorrect. (87) >> Exception `Errno::EINPROGRESS' at >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 >> >> - A blocking operation is currently executing. - >> connect(2) would block >> 1481828950413 geckodriver INFOListening on 127.0.0.1: >> Exception `Errno::ECONNREFUSED' at >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:84 >> >> - No connection could be made because the targe >> t machine actively refused it. >> ["127.0.0.1", ] >> Exception `Errno::EINPROGRESS' at >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 >> >> - A blocking operation is currently executing. - >> connect(2) would block >> Exception `Errno::EISCONN' at >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 >> >> - A connect request was made on an already connected >> socket. - connect(2) >> Exception `ArgumentError' at >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:80 >> >> - unknown option: {:profile=>#> fox::Profile:0x402c030 @model=nil, @native_events=false, >> @secure_ssl=false, @untrusted_issuer=true, @load_no_focus_lib=false, >> @additional_prefs={}, @extensions={}>} >> #> @args=["C:/Naveen/softwares/geckodriver/geckodriver.exe", >> "--binary=C:/Users/nnalam/AppData/Local/Mozilla Firefox/firefox.exe", >> "--port="], @start >> ed=true, @exit_code=nil, @io=#> @stdout=#<IO:>, @stderr=#<IO:>>, @cwd=nil, @detach=false, >> @duplex=false, @leader=false, @environment={}, @pid= >> 12448, @handle=#> @pointer=#, @closed=false>> : >> [{:exited?=>false, :code=>259}] >> Exception `Errno::EWOULDBLOCK' at >> C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:153 - A non-blocking socket >> operation could not be completed immediately. - read would block >> >> >> On Thursday, 15 December 2016 13:54:33 UTC-5, Titus Fortner wrote: >> >> I'm looking for the beginni
[wtr-general] Re: latest watir giving error with firefox
This is the begining trace C:\Users\nnalam\workspace\Arachni>ruby Login_script_2.rb Exception `ChildProcess::Error' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/windows/lib.rb:385 - The parameter is incorrect. (87) Exception `ChildProcess::Error' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/windows/lib.rb:385 - The parameter is incorrect. (87) Exception `ChildProcess::Error' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/windows/lib.rb:385 - The parameter is incorrect. (87) Exception `Errno::EINPROGRESS' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 - A blocking operation is currently executing. - connect(2) would block 1481828950413 geckodriver INFOListening on 127.0.0.1: Exception `Errno::ECONNREFUSED' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:84 - No connection could be made because the targe t machine actively refused it. ["127.0.0.1", ] Exception `Errno::EINPROGRESS' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 - A blocking operation is currently executing. - connect(2) would block Exception `Errno::EISCONN' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 - A connect request was made on an already connected socket. - connect(2) Exception `ArgumentError' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:80 - unknown option: {:profile=>#} #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 12448, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] Exception `Errno::EWOULDBLOCK' at C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:153 - A non-blocking socket operation could not be completed immediately. - read would block On Thursday, 15 December 2016 13:54:33 UTC-5, Titus Fortner wrote: > > I'm looking for the beginning part of the stdout, not just the stack trace. > > Thanks, > Titus > > > On Thursday, December 15, 2016 at 12:33:00 PM UTC-6, naveen kumar wrote: >> >> Additional stack trace >> >> #> @args=["C:/Naveen/softwares/geckodriver/geckodriver.exe", >> "--binary=C:/Users/nnalam/AppData/Local/Mozilla Firefox/firefox.exe", >> "--port="], @s >> ed=true, @exit_code=nil, @io=#> @stdout=#<IO:>, @stderr=#<IO:>>, @cwd=nil, @detach=false, >> @duplex=false, @leader=false, @environment={}, @ >> 12820, @handle=#> @pointer=#, @closed=false>> : >> [{:exited?=>true, :code=>12820}] >> C:/Ruby200/lib/ruby/2.0.0/net/http/generic_request.rb:27:in `initialize': >> HTTP request path is empty (ArgumentError) >> from C:/Ruby200/lib/ruby/2.0.0/net/http/request.rb:14:in >> `initialize' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:91:in >> >> `new' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:91:in >> >> `new_request_for' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:56:in >> >> `request' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:84:in >> >> `request' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/common.rb:59:in >> >> `call' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:659:in >> >> `raw_execute' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:132:in >> >> `create_session' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:89:in >> >> `initialize' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/firefox/w3c_bridge.rb:34:in >> >> `initialize' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/driver.rb:52:in >> >> `new' >> from >> C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-
[wtr-general] Re: latest watir giving error with firefox
Additional stack trace #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @ 12820, @handle=#, @closed=false>> : [{:exited?=>true, :code=>12820}] C:/Ruby200/lib/ruby/2.0.0/net/http/generic_request.rb:27:in `initialize': HTTP request path is empty (ArgumentError) from C:/Ruby200/lib/ruby/2.0.0/net/http/request.rb:14:in `initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:91:in `new' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:91:in `new_request_for' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:56:in `request' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:84:in `request' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/common.rb:59:in `call' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:659:in `raw_execute' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:132:in `create_session' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:89:in `initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/firefox/w3c_bridge.rb:34:in `initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/driver.rb:52:in `new' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/driver.rb:52:in `for' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver.rb:82:in `for' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-6.0.2/lib/watir/browser.rb:46:in `initialize' from Login_script_2.rb:6:in `new' from Login_script_2.rb:6:in `' On Thursday, 15 December 2016 13:24:07 UTC-5, naveen kumar wrote: > > I am getting this error trace. > > Exception `ChildProcess::Error' at > C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/windows/lib.rb:385 > > - The parameter is incorrect. (87) > Exception `ChildProcess::Error' at > C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/windows/lib.rb:385 > > - The parameter is incorrect. (87) > Exception `Errno::EINPROGRESS' at > C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 > > - A blocking operation is currently executing. - > connect(2) would block > 1481826172021 geckodriver INFOListening on 127.0.0.1: > Exception `Errno::ECONNREFUSED' at > C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:84 > > - No connection could be made because the targe > t machine actively refused it. > ["127.0.0.1", ] > Exception `Errno::EINPROGRESS' at > C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 > > - A blocking operation is currently executing. - > connect(2) would block > Exception `Errno::EISCONN' at > C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/common/socket_poller.rb:81 > > - A connect request was made on an already connected > socket. - connect(2) > Exception `Errno::EWOULDBLOCK' at > C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:153 - A non-blocking socket > operation could not be completed immediately. - read would block > Exception `EOFError' at C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:153 - > end of file reached > Exception `ArgumentError' at > C:/Ruby200/lib/ruby/2.0.0/net/http/generic_request.rb:27 - HTTP request > path is empty > # @args=["C:/Naveen/softwares/geckodriver/geckodriver.exe", > "--binary=C:/Users/nnalam/AppData/Local/Mozilla Firefox/firefox.exe", > "--port="], @start > ed=true, @exit_code=nil, @io=# @stdout=#<IO:>, @stderr=#<IO:>>, @cwd=nil, @detach=false, > @duplex=false, @leader=false, @environment={}, @pid= > 8428, @handle=# @pointer=#, @closed=false>> : > [{:exited?=>false, :code=>259}] > Exception `Errno::EWOULDBLOCK' at > C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:153 - A non-blocking socket > operation could not be completed immediately. - read would block > # @args=["C:/Naveen/softwares/geckodriver/geckodriver.exe", > "--binary=C:/Users/nn
[wtr-general] Re: latest watir giving error with firefox
, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>false, :code=>259}] Exception `ChildProcess::TimeoutError' at C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.5.9/lib/childprocess/abstract_process.rb:152 - process still alive after 20 seconds #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : ["sending KILL"] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : ["polling 20 seconds for exit"] #>, @stderr=#<IO:>>, @cwd=nil, @detach=false, @duplex=false, @leader=false, @environment={}, @pid= 8428, @handle=#, @closed=false>> : [{:exited?=>true, :code=>8428}] C:/Ruby200/lib/ruby/2.0.0/net/http/generic_request.rb:27:in `initialize': HTTP request path is empty (ArgumentError) from C:/Ruby200/lib/ruby/2.0.0/net/http/request.rb:14:in `initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:91:in `new' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:91:in `new_request_for' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:56:in `request' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/default.rb:84:in `request' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/http/common.rb:59:in `call' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.1/lib/selenium/webdriver/remote/w3c_bridge.rb:659:in `ra
[wtr-general] latest watir giving error with firefox
Hi , I am trying a simple script with watir ''#!/usr/bin/env ruby require 'ap' require 'httpclient' require 'json' require 'browser' require 'watir' Selenium::WebDriver::Firefox::Binary.path='C:/kumar/AppData/Local/Mozilla Firefox/firefox.exe' browser =Watir::Browser.new :firefox browser.goto('https://google.com') getting the following exception Ruby200/lib/ruby/2.0.0/net/http/generic_request.rb:27:in `initialize': HTTP request path is empty (ArgumentError) from C:/Ruby200/lib/ruby/2.0.0/net/http/request.rb:14:in `initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/remote/http/default.rb:91:in `new' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/remote/http/default.rb:91:in `new_request_for' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/remote/http/default.rb:56:in `request' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/remote/http/default.rb:84:in `request' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/remote/http/common.rb:59:in `call' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/remote/w3c_bridge.rb:640:in `raw_execute' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/remote/w3c_bridge.rb:114:in `create_session' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/remote/w3c_bridge.rb:69:in `initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/firefox/w3c_bridge.rb:35:in `initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/common/driver.rb:52:in `new' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver/common/driver.rb:52:in `for' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-3.0.3/lib/selenium/webdriver.rb:82:in `for' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-6.0.2/lib/watir/browser.rb:46:in `initialize' from Login_script_2.rb:10:in `new' from Login_script_2.rb:10:in `' My version of FF is 46.0.1. Ruby version : ruby 2.0.0p643 (2015-02-25) [i386-mingw32] machine: windows 7 enterprise edition -- -- 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 --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[wtr-general] watir_keyword_driver gem
Have anyone tried this gem watir_keyword_driver? -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: does watir classic, not webdriver support IE 10 ?
Hi Jarmo, I am using Ruby 1.9.3 with Watir-classic 3.6.0 on Win8. I am getting syntax error in some file (those files work fine with Ruby 1.8.7) invalid multibyte char (US-ASCII) I have tried adding these line to problematic file '# encoding: utf-8' and Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8 But none of these helped. On Sunday, September 29, 2013 7:48:42 PM UTC+5:30, Jarmo Pertman wrote: I have tried it even with Ruby 2.0. There shouldn't be any problems with 1.9.3 too. What kind of problems are you seeing? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Saturday, September 28, 2013 5:42:06 PM UTC+3, Anukul wrote: Jarmo, what version of ruby did you use when you verified this worked for IE10 with Win8? I didn't get promising results with ruby 1.9.3 On Saturday, November 17, 2012 5:21:43 PM UTC+5:30, Jarmo Pertman wrote: I've verified that Watir-Classic works well with IE10 on Win8. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Saturday, November 3, 2012 1:57:45 PM UTC+2, Jarmo Pertman wrote: To be honest i haven't tried it, since i don't have any Win 8 boxes. It should work though. Give it a try an let us know! Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, October 31, 2012 7:01:25 PM UTC+2, bobby sharma wrote: does watir classic support IE 10 on win 8 box ? -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Can we use Watir for cloud based web applications testing?
Hi All: I have a query. Can we use Watir for cloud based web applications testing? Thanks in Advance !! -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] Can we use Watir for cloud based web applications testing?
Hi Željko, Could you please elaborate on this, please? On Tue, Mar 12, 2013 at 3:56 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Tue, Mar 12, 2013 at 11:14 AM, Amit Kumar amit.sr...@gmail.com wrote: Can we use Watir for cloud based web applications testing? An Example Would Be Handy Right About Now[1]. Željko -- [1] http://www.exampler.com/blog/2007/08/07/marketing-mania-continues/ -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] Can we use Watir for cloud based web applications testing?
Željko, I meant cloud based application, which will be run on cloud. Actually, I do not have that knowledge about cloud computing. On Tue, Mar 12, 2013 at 4:24 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Tue, Mar 12, 2013 at 11:43 AM, Amit Kumar amit.sr...@gmail.com wrote: Could you please elaborate on this, please? Sure. What do you mean by cloud based web applications testing? Željko -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] Can we use Watir for cloud based web applications testing?
Željko, I am talking about cloud computing. Actually I want to use Watir cloud based application. http://en.wikipedia.org/wiki/Cloud_computing Hope this helps. Please let me know if you want to know anything else? On Tue, Mar 12, 2013 at 4:46 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Tue, Mar 12, 2013 at 12:13 PM, Amit Kumar amit.sr...@gmail.com wrote: I meant cloud based application, which will be run on cloud. Actually, I do not have that knowledge about cloud computing. What do you mean by cloud? Do you have a problem to solve, or are you just curious? Željko -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] Can we use Watir for cloud based web applications testing?
Željko, Thanks. It Helps. On Tue, Mar 12, 2013 at 4:56 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Tue, Mar 12, 2013 at 12:23 PM, Amit Kumar amit.sr...@gmail.com wrote: Actually I want to use Watir cloud based application. Watir drives browsers. If your application is web application that you access from a browser, Watir does not care if the application is on your computer or in the cloud. Željko -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] I am beginner, getting error please help !
Thanks Željko. Appreciate your help !! On Tue, Feb 5, 2013 at 7:54 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Mon, Feb 4, 2013 at 3:25 PM, Amit Kumar amit.sr...@gmail.com wrote: But if we have Watir-webdriver for Firefox. Why do we need selenium-webdriver? Is it mandatory ? Yes. watir-webdriver gem is just an API on top of selenium-webdriver gem. Željko -- https://leanpub.com/watirbook -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] I am beginner, getting error please help !
Dear Joe: Thanks for providing this useful information. Could you please suggest me that which versions of Ruby, Rubygems and Watir should I use on Windows 8? I am currently using Ruby1.8.7, rubygems1.8.25. On Fri, Feb 1, 2013 at 8:46 PM, Joe Fleck joeflec...@gmail.com wrote: Hi Amit, Here is my gem list for a Windows8 VM. C:\gem list *** LOCAL GEMS *** bigdecimal (1.1.0) builder (3.1.4) childprocess (0.3.7) commonwatir (4.0.0) ffi (1.3.1 x86-mingw32) hoe (3.5.0) io-console (0.3) json (1.5.4) mini_magick (3.2.1) minitest (2.5.1) multi_json (1.5.0) mysql (2.9.0 x86-mingw32) mysql2 (0.3.11 x86-mingw32) nokogiri (1.5.6 x86-mingw32) rake (0.9.2.2) rautomation (0.7.3) rdoc (3.9.4) rubyzip (0.9.9) s4t-utils (1.0.4) selenium-webdriver (2.29.0) subexec (0.0.4) terminal-table (1.4.5) user-choices (1.1.6.1) watir (4.0.2 x86-mingw32) watir-classic (3.4.0) watir-webdriver (0.6.2) websocket (1.0.6) win32-api (1.4.8 x86-mingw32) win32-process (0.7.1) win32screenshot (1.0.7) windows-api (0.4.2) windows-pr (1.2.2) xml-simple (1.1.2) Joe On Fri, Feb 1, 2013 at 9:30 AM, Amit Kumar amit.sr...@gmail.com wrote: Thanks a lot Joe. It worked. One quick question: I am using Windows 8 and Ruby 1.8.7 Could you please suggest me which versions of the Ruby, Rubygems and Watir are best for Windows 8. I will really appreciate. if you provide me complete package for Watir on Windows 8. On Fri, Feb 1, 2013 at 7:49 PM, Joe Fleck joeflec...@gmail.com wrote: I would change 'default' to 'new'. browser = Watir::Browser.new :ff The above should do it. Joe On Fri, Feb 1, 2013 at 9:18 AM, Amit Kumar amit.sr...@gmail.com wrote: Hi Joe: Thanks for your reply. I installed watir-webdriver-0.6.2. Now I am getting different error: hello.rb:3: undefined method `default=' for Watir::Browser:Class (NoMethodError) And my code looks like: require 'rubygems' require 'watir-webdriver' browser = Watir::Browser.default = firefox browser = Watir::Browser.start URL browser.form(:id, signin).text_field(:id, username).set(username) browser.form(:id, signin).text_field(:id, password).set(Password) browser.form(:id, signin).button(:value, Sign In).click On Fri, Feb 1, 2013 at 7:35 PM, Joe Fleck joeflec...@gmail.com wrote: Hi Amit, When driving Firefox you need to use watir-webdriver not watir. These are the two line I changed. require 'watir-webdriver' browser = Watir::Browser.default = firefox On Fri, Feb 1, 2013 at 8:52 AM, Amit Kumar amit.sr...@gmail.com wrote: Dear All: Hope you all are doing great. Please help on following error. I am getting error while executing script. I am using Windows 8 and Ruby187. Code: require 'rubygems' require 'Watir' Watir::Browser.default = firefox browser = Watir::Browser.start website url browser.form(:id, signin).text_field(:id, username).set(username) browser.form(:id, signin).text_field(:id, password).set(password) browser.form(:id, signin).button(:value, Sign In).click Error: E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- watir/loader (LoadError) from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from E:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-4.0.0/lib/Watir.rb:1 from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `gem_original_require' from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `require' from hello.rb:2 -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out
Re: [wtr-general] I am beginner, getting error please help !
Thanks for your help !! But I am confused on selenium-webdriver (2.29.0). Why do we need selenium-webdriver (2.29.0) here? Please brief on the same. On Mon, Feb 4, 2013 at 6:48 PM, Joe Fleck joeflec...@gmail.com wrote: Hi Amit, I recommend using the following: ruby 1.9.3 selenium-webdriver (2.29.0) watir-webdriver (0.6.2) latest version of watir gem and rubygems I think if you have ruby 1.8.7 you are in good shape too. Joe On Mon, Feb 4, 2013 at 3:09 AM, Amit Kumar amit.sr...@gmail.com wrote: Dear Joe: Thanks for providing this useful information. Could you please suggest me that which versions of Ruby, Rubygems and Watir should I use on Windows 8? I am currently using Ruby1.8.7, rubygems1.8.25. On Fri, Feb 1, 2013 at 8:46 PM, Joe Fleck joeflec...@gmail.com wrote: Hi Amit, Here is my gem list for a Windows8 VM. C:\gem list *** LOCAL GEMS *** bigdecimal (1.1.0) builder (3.1.4) childprocess (0.3.7) commonwatir (4.0.0) ffi (1.3.1 x86-mingw32) hoe (3.5.0) io-console (0.3) json (1.5.4) mini_magick (3.2.1) minitest (2.5.1) multi_json (1.5.0) mysql (2.9.0 x86-mingw32) mysql2 (0.3.11 x86-mingw32) nokogiri (1.5.6 x86-mingw32) rake (0.9.2.2) rautomation (0.7.3) rdoc (3.9.4) rubyzip (0.9.9) s4t-utils (1.0.4) selenium-webdriver (2.29.0) subexec (0.0.4) terminal-table (1.4.5) user-choices (1.1.6.1) watir (4.0.2 x86-mingw32) watir-classic (3.4.0) watir-webdriver (0.6.2) websocket (1.0.6) win32-api (1.4.8 x86-mingw32) win32-process (0.7.1) win32screenshot (1.0.7) windows-api (0.4.2) windows-pr (1.2.2) xml-simple (1.1.2) Joe On Fri, Feb 1, 2013 at 9:30 AM, Amit Kumar amit.sr...@gmail.com wrote: Thanks a lot Joe. It worked. One quick question: I am using Windows 8 and Ruby 1.8.7 Could you please suggest me which versions of the Ruby, Rubygems and Watir are best for Windows 8. I will really appreciate. if you provide me complete package for Watir on Windows 8. On Fri, Feb 1, 2013 at 7:49 PM, Joe Fleck joeflec...@gmail.com wrote: I would change 'default' to 'new'. browser = Watir::Browser.new :ff The above should do it. Joe On Fri, Feb 1, 2013 at 9:18 AM, Amit Kumar amit.sr...@gmail.com wrote: Hi Joe: Thanks for your reply. I installed watir-webdriver-0.6.2. Now I am getting different error: hello.rb:3: undefined method `default=' for Watir::Browser:Class (NoMethodError) And my code looks like: require 'rubygems' require 'watir-webdriver' browser = Watir::Browser.default = firefox browser = Watir::Browser.start URL browser.form(:id, signin).text_field(:id, username).set(username) browser.form(:id, signin).text_field(:id, password).set(Password) browser.form(:id, signin).button(:value, Sign In).click On Fri, Feb 1, 2013 at 7:35 PM, Joe Fleck joeflec...@gmail.com wrote: Hi Amit, When driving Firefox you need to use watir-webdriver not watir. These are the two line I changed. require 'watir-webdriver' browser = Watir::Browser.default = firefox On Fri, Feb 1, 2013 at 8:52 AM, Amit Kumar amit.sr...@gmail.com wrote: Dear All: Hope you all are doing great. Please help on following error. I am getting error while executing script. I am using Windows 8 and Ruby187. Code: require 'rubygems' require 'Watir' Watir::Browser.default = firefox browser = Watir::Browser.start website url browser.form(:id, signin).text_field(:id, username).set(username) browser.form(:id, signin).text_field(:id, password).set(password) browser.form(:id, signin).button(:value, Sign In).click Error: E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- watir/loader (LoadError) from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from E:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-4.0.0/lib/Watir.rb:1 from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `gem_original_require' from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `require' from hello.rb:2 -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send
[wtr-general] I am beginner, getting error please help !
Dear All: Hope you all are doing great. Please help on following error. I am getting error while executing script. I am using Windows 8 and Ruby187. *Code: *require 'rubygems' require 'Watir' Watir::Browser.default = firefox browser = Watir::Browser.start website url browser.form(:id, signin).text_field(:id, username).set(username) browser.form(:id, signin).text_field(:id, password).set(password) browser.form(:id, signin).button(:value, Sign In).click *Error:* E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- watir/loader (LoadError) from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from E:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-4.0.0/lib/Watir.rb:1 from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `gem_original_require' from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `require' from hello.rb:2 -- Thanks and Regards, Amit -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.
Hi, I am using IE developer and also tried developer tool of chrome also :( On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote: Hi everyone, I am trying to access a text_field of page.HTML format is as follows html head-/head body iframe name=centent src=homepage.jsp * #document* html slick-uniqueid = 1 head-head body script --/script div id = headerHome div class=utilityNavHome id=utilityNavHome form name = 'validateDealer' i tried through IRB and tried to us flash() function but can only use the function on Iframe tag after that i am not able to acess any element. Is #document creating a problem. Thanks regards Deepak Kumar -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.
Hi all, $ie.frame(:name,centent).exists? is returning true for me. Is there any way to check the existence of # document html tags so that i can create a linked query including every tag till the text box. i tried $ie.show_frames but it returns unidentified method On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote: Hi everyone, I am trying to access a text_field of page.HTML format is as follows html head-/head body iframe name=centent src=homepage.jsp * #document* html slick-uniqueid = 1 head-head body script --/script div id = headerHome div class=utilityNavHome id=utilityNavHome form name = 'validateDealer' i tried through IRB and tried to us flash() function but can only use the function on Iframe tag after that i am not able to acess any element. Is #document creating a problem. Thanks regards Deepak Kumar -- -- 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
[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.
irb(main):051:0 $ie.frame(:name,centent).present? = true irb(main):052:0 $ie.frame(:name,centent).form(:name,validateDealer).present? = false Joe, this is the issue i can only access till frame tag after that it is returning false :( On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote: Hi everyone, I am trying to access a text_field of page.HTML format is as follows html head-/head body iframe name=centent src=homepage.jsp * #document* html slick-uniqueid = 1 head-head body script --/script div id = headerHome div class=utilityNavHome id=utilityNavHome form name = 'validateDealer' i tried through IRB and tried to us flash() function but can only use the function on Iframe tag after that i am not able to acess any element. Is #document creating a problem. Thanks regards Deepak Kumar -- -- 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
[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.
My Bad for using 'form' in the command b(main):010:0 $ie.frame(:name,centent).text_field(:name,validateDealer).present? false b(main):011:0 $ie.frame(:name,centent).text_field(:type,text).present? false i also tried for text_field() On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote: Hi everyone, I am trying to access a text_field of page.HTML format is as follows html head-/head body iframe name=centent src=homepage.jsp * #document* html slick-uniqueid = 1 head-head body script --/script div id = headerHome div class=utilityNavHome id=utilityNavHome form name = 'validateDealer' i tried through IRB and tried to us flash() function but can only use the function on Iframe tag after that i am not able to acess any element. Is #document creating a problem. Thanks regards Deepak Kumar -- -- 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
[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.
Please guys, help me a bit :( On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote: Hi everyone, I am trying to access a text_field of page.HTML format is as follows html head-/head body iframe name=centent src=homepage.jsp * #document* html slick-uniqueid = 1 head-head body script --/script div id = headerHome div class=utilityNavHome id=utilityNavHome form name = 'validateDealer' i tried through IRB and tried to us flash() function but can only use the function on Iframe tag after that i am not able to acess any element. Is #document creating a problem. Thanks regards Deepak Kumar -- -- 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
[wtr-general] Unable to acces text_field inside a frame coz of some #document tag in the HTML.
Hi everyone, I am trying to access a text_field of page.HTML format is as follows html head-/head body iframe name=centent src=homepage.jsp * #document* html slick-uniqueid = 1 head-head body script --/script div id = headerHome div class=utilityNavHome id=utilityNavHome form name = 'validateDealer' i tried through IRB and tried to us flash() function but can only use the function on Iframe tag after that i am not able to acess any element. Is #document creating a problem. Thanks regards Deepak Kumar -- 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
[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.
require 'watir' include Watir Watir::Browser.default = 'ie' $ie = Browser.new $ie.goto(https://q2pdc2w4.edc.cingular.net:9300/v2/Login.html;) $ie.text_field(:id,Userid).set(Pos3nbi) $ie.text_field(:id,Password).set(unix11a) $ie.select_list(:id,market).select(Dallas) $ie.image(:id,Submit).click $ie.frame(:name,centent).flash $ie.frame(:name,centent).text_field(:name,dealerCode).set(22r25) i used the following code and getting the following error irb(main):015:0 $ie.frame(:name,centent).text_field(:name,dealerCode).set(22r25) NoMethodError: unknown property or method: `body' HRESULT error code:0x80020006 Unknown name. from c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/frame.rb:30:in `method_missing' from c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/frame.rb:30:in `__ole_inner_elements' from c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:199:in `each_element' from c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:224:in `each' from c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:212:in `locate' from c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/input_elements.rb:5:in `locate' from c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/element.rb:63:in `assert_exists' from c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/input_elements.rb:287:in `set' from (irb):15 from c:/rubyshell/ruby/bin/irb:12:in `main' On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote: Hi everyone, I am trying to access a text_field of page.HTML format is as follows html head-/head body iframe name=centent src=homepage.jsp * #document* html slick-uniqueid = 1 head-head body script --/script div id = headerHome div class=utilityNavHome id=utilityNavHome form name = 'validateDealer' i tried through IRB and tried to us flash() function but can only use the function on Iframe tag after that i am not able to acess any element. Is #document creating a problem. Thanks regards Deepak Kumar -- 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
[wtr-general] Re: Accessing a Span
Can i access an element by using co-ordinates :p -- 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
[wtr-general] Accessing a Span
Hi, following is the HTML code *div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix* *button type=button class=ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only role=button aria-disabled=false* *span class=ui-button-textOk/span/button/div* How i can click the span. I used the following code.but it did'nt helped :( *$ie.div(:class , ui-dialog-buttonpane ui-widget-content ui-helper-clearfix).button(:class,ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only).span(:class,ui-button-text).click* I am getting the following error *Unable to locate element, using {:class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix, :tag_name=[div]}* -- 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: Accessing a Span
I tried it just now..it did'nt worked :( Same issue *Unable to locate element, using {:tag_name=[button, submit, image, reset], :text=Ok}* On Tue, Jan 15, 2013 at 10:28 PM, Joe Fl joeflec...@gmail.com wrote: hi, Can you just do this.. *$ie.button(:text='Ok').click* * * *Joe * On Tuesday, January 15, 2013 9:50:57 AM UTC-7, Deepak Kumar wrote: Hi, following is the HTML code *div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix* *button type=button class=ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only role=button aria-disabled=false* *span class=ui-button-textOk/span/button/div* How i can click the span. I used the following code.but it did'nt helped :( *$ie.div(:class , ui-dialog-buttonpane ui-widget-content ui-helper-clearfix).button(:class,ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only).span(:class,ui-button-text).click* I am getting the following error *Unable to locate element, using {:class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix, :tag_name=[div]}* -- 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
[wtr-general] Re: Accessing a Span
require watir $ie= Watir::IE.new $ie.goto(https://q2pdc2w4.edc.cingular.net:9300/v2/Login.html;) $ie.text_field(:id,Userid).set(Pos3nbi) $ie.text_field(:id,Password).set(unix11a) $ie.select_list(:id,market).select(Dallas) $ie.image(:id,Submit).click $ie.button(:text='Ok').click On Tuesday, January 15, 2013 10:20:57 PM UTC+5:30, Deepak Kumar wrote: Hi, following is the HTML code *div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix* *button type=button class=ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only role=button aria-disabled=false* *span class=ui-button-textOk/span/button/div* How i can click the span. I used the following code.but it did'nt helped :( *$ie.div(:class , ui-dialog-buttonpane ui-widget-content ui-helper-clearfix).button(:class,ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only).span(:class,ui-button-text).click* I am getting the following error *Unable to locate element, using {:class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix, :tag_name=[div]}* -- 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: Accessing a Span
i tried the code with your changes and also tried to verify the presence by following $ie= Watir::IE.new $ie.goto(https://q2pdc2w4.edc.cingular.net:9300/v2/Login.html;) $ie.text_field(:id,Userid).set(Pos3nbi) $ie.text_field(:id,Password).set(unix11a) $ie.select_list(:id,market).select(Dallas) $ie.image(:id,Submit).click if $ie.span(:text='Ok').present? puts Present #$ie.span(:text='Ok').click else puts Not Present end No error message but the output is *No examples found*. only On Tue, Jan 15, 2013 at 10:47 PM, Joe Fl joeflec...@gmail.com wrote: Deepak, $ie= Watir::IE.new $ie.goto(https://q2pdc2w4.**edc.cingular.net:9300/v2/**Login.htmlhttps://q2pdc2w4.edc.cingular.net:9300/v2/Login.html ) $ie.text_field(:id,Userid).**set(Pos3nbi) $ie.text_field(:id,Password)**.set(unix11a) $ie.select_list(:id,market).**select(Dallas) $ie.image(:id,Submit).click if $ie.span(:text='Ok').present? $ie.span(:text='Ok').click else puts Not Present end I change it from button to span and added the if .present? Try this and let me know the outcome. Joe On Tuesday, January 15, 2013 12:12:32 PM UTC-5, Deepak Kumar wrote: require watir $ie= Watir::IE.new $ie.goto(https://q2pdc2w4.**edc.cingular.net:9300/v2/**Login.htmlhttps://q2pdc2w4.edc.cingular.net:9300/v2/Login.html ) $ie.text_field(:id,Userid).**set(Pos3nbi) $ie.text_field(:id,Password)**.set(unix11a) $ie.select_list(:id,market).**select(Dallas) $ie.image(:id,Submit).click $ie.button(:text='Ok').click On Tuesday, January 15, 2013 10:20:57 PM UTC+5:30, Deepak Kumar wrote: Hi, following is the HTML code *div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix * *button type=button class=ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only role=button aria-disabled=false* *span class=ui-button-textOk/span/button/div* How i can click the span. I used the following code.but it did'nt helped :( *$ie.div(:class , ui-dialog-buttonpane ui-widget-content ui-helper-clearfix).button(:class,ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only).span(: class,ui-button-text).click* I am getting the following error *Unable to locate element, using {:class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix, :tag_name=[div]}* -- 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
[wtr-general] Re: Accessing a Span
i am not good with using Xpath. Can Xpath help ? On Tuesday, January 15, 2013 10:20:57 PM UTC+5:30, Deepak Kumar wrote: Hi, following is the HTML code *div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix* *button type=button class=ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only role=button aria-disabled=false* *span class=ui-button-textOk/span/button/div* How i can click the span. I used the following code.but it did'nt helped :( *$ie.div(:class , ui-dialog-buttonpane ui-widget-content ui-helper-clearfix).button(:class,ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only).span(:class,ui-button-text).click* I am getting the following error *Unable to locate element, using {:class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix, :tag_name=[div]}* -- 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: Accessing a Span
I tried the code wwith the changes made by you i also try to just verify the presence of the span by changing just a bit of your code $ie= Watir::IE.new $ie.goto(https://q2pdc2w4.edc.cingular.net:9300/v2/Login.html;) $ie.text_field(:id,Userid).set(Pos3nbi) $ie.text_field(:id,Password).set(unix11a) $ie.select_list(:id,market).select(Dallas) $ie.image(:id,Submit).click if $ie.span(:text='Ok').present? puts Present #$ie.span(:text='Ok').click else puts Not Present end but i did'nt helped the output is *No examples found. only* On Tue, Jan 15, 2013 at 10:47 PM, Joe Fl joeflec...@gmail.com wrote: Deepak, $ie= Watir::IE.new $ie.goto(https://q2pdc2w4.**edc.cingular.net:9300/v2/**Login.htmlhttps://q2pdc2w4.edc.cingular.net:9300/v2/Login.html ) $ie.text_field(:id,Userid).**set(Pos3nbi) $ie.text_field(:id,Password)**.set(unix11a) $ie.select_list(:id,market).**select(Dallas) $ie.image(:id,Submit).click if $ie.span(:text='Ok').present? $ie.span(:text='Ok').click else puts Not Present end I change it from button to span and added the if .present? Try this and let me know the outcome. Joe On Tuesday, January 15, 2013 12:12:32 PM UTC-5, Deepak Kumar wrote: require watir $ie= Watir::IE.new $ie.goto(https://q2pdc2w4.**edc.cingular.net:9300/v2/**Login.htmlhttps://q2pdc2w4.edc.cingular.net:9300/v2/Login.html ) $ie.text_field(:id,Userid).**set(Pos3nbi) $ie.text_field(:id,Password)**.set(unix11a) $ie.select_list(:id,market).**select(Dallas) $ie.image(:id,Submit).click $ie.button(:text='Ok').click On Tuesday, January 15, 2013 10:20:57 PM UTC+5:30, Deepak Kumar wrote: Hi, following is the HTML code *div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix * *button type=button class=ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only role=button aria-disabled=false* *span class=ui-button-textOk/span/button/div* How i can click the span. I used the following code.but it did'nt helped :( *$ie.div(:class , ui-dialog-buttonpane ui-widget-content ui-helper-clearfix).button(:class,ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only).span(: class,ui-button-text).click* I am getting the following error *Unable to locate element, using {:class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix, :tag_name=[div]}* -- 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
[wtr-general] accessing elements inside div tags
Hi, I tried to start my learning with watir by creating a script for a simple login on gmail. previously i was getting the following msg *Unable to locate element, using {:tag_name=[text, password, textarea], :id=Email}* After reading some post i tried to access the text field using nested query now i am getting the following *undefined method `text_field' for #* The code i tried is :- require 'watir' # load the Watir library $ie = Watir::IE.new $ie.goto(http://gmail.com;) $ie.wait_until {$ie.text.include? Gmail} $ie.divs(:class,email-div).text_field(:id ,Email).flash #$ie.text_field(:id,Passwd).set(23gq) #fake #$ie.button(:name, signIn).click Please help -- 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] accessing elements inside div tags
Ahh...thanks a lot for confirming that my try to automate gmail is something hard to do...I thought i am doing some kinda silly mistake in my script..Thanks a ton Željko On Saturday, December 29, 2012 1:31:26 AM UTC-8, Željko Filipin wrote: On Fri, Dec 28, 2012 at 10:24 PM, Deepak Kumar deepak.m...@gmail.comjavascript: wrote: I tried to start my learning with watir by creating a script for a simple login on gmail. The last time I have tried, Gmail was really hard to automate. I would not recommend it for learning Watir. Željko -- 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
[wtr-general] Unable to click buttons in the pop-up when the machine is locked
Hi All, There is a javascript pop-up. I am handling as shown below. It is working fine only if that window is enabled. If the machine is locked or moving to the another window while execution. Its not working. Is there any way to focus that window after pop up is enabled. $ie.wait_until{$ie.javascript_dialog.button('OK').enabled?} $ie.javascript_dialog.button('OK').click Please let me know your thoughts. Thanks, Praveen -- 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
[wtr-general] Re: Unable to click buttons in the pop-up when the machine is locked
Watir 3.0.0 On Tuesday, October 2, 2012 1:27:55 AM UTC+5:30, enroxorz wrote: What version of Watir are you using? On Monday, October 1, 2012 2:26:35 AM UTC-4, praveen kumar wrote: Hi All, There is a javascript pop-up. I am handling as shown below. It is working fine only if that window is enabled. If the machine is locked or moving to the another window while execution. Its not working. Is there any way to focus that window after pop up is enabled. $ie.wait_until{$ie.javascript_dialog.button('OK').enabled?} $ie.javascript_dialog.button('OK').click Please let me know your thoughts. Thanks, Praveen -- 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
[wtr-general] Re: Unable to click on the links having specific description
Thanks Dan. It worked for me after doing some minor changes based on my requirement...Actually it worked even though there is no $ie. On Wednesday, September 26, 2012 1:21:36 AM UTC+5:30, Dan wrote: You could do something like this if $ie.link.text.match(/^test/) then $ie.link.click end On Tuesday, September 25, 2012 9:40:07 AM UTC-4, praveen kumar wrote: Hi All, My requirement is to click on the links present in the table which have text starting with *test*. I have written the code as below table = $ie.table(:id, ctl00_mContentPlaceHolder_gvElobratedItems) table.links.each do |link| *# Here I need to click on the link starting with test* end So I am getting all the links present in the table. but not finding to click the specific links with test. Please let me know your thoughts Thanks, Praveen -- 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
[wtr-general] Unable to click on the links having specific description
Hi All, My requirement is to click on the links present in the table which have text starting with *test*. I have written the code as below table = $ie.table(:id, ctl00_mContentPlaceHolder_gvElobratedItems) table.links.each do |link| *# Here I need to click on the link starting with test* end So I am getting all the links present in the table. but not finding to click the specific links with test. Please let me know your thoughts Thanks, Praveen -- 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
[wtr-general] Re: WIN32OLERuntimeError: (in OLE method `focus': )
Hi All, I am able to access the element now. I changed the code from $ie.text_field(:id, ctl00_mContentPlaceHolder_ctrlProductAutoComplete).set(productname) to $ie.div(:id,ctl00_mContentPlaceHolder_divNewProduct).text_field(:id, ctl00_mContentPlaceHolder_ctrlProductAutoComplete).set(productname) Now my major issue resolved.. Thanks, Praveen On Tuesday, September 18, 2012 1:24:56 PM UTC+5:30, praveen kumar wrote: Hi All, When i am trying to execute the following script $ie.text_field(:id, ctl00_mContentPlaceHolder_ctrlProductAutoComplete).set(productname) I am getting the below error. I also tried like below...but still facing the same issue. $ie.text_field(:id, ctl00_mContentPlaceHolder_ctrlProductAutoComplete).focus $ie.text_field(:id, ctl00_mContentPlaceHolder_ctrlProductAutoComplete).set(productname) WIN32OLERuntimeError: (in OLE method `focus': ) OLE error code:800A083E in htmlfile Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. HRESULT error code:0x80020009 Exception occurred. Please help how to resolve the issue. I am using Watir gem. Thanks, Praveen Vadla -- 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] WIN32OLERuntimeError: (in OLE method `focus': )
Hi Željko Thanks for the reply.. The element on the page is disabled. They have designed in that way for specific reasons. Do we have any workaround for this type of scenario?. Thanks, Praveen On Tuesday, September 18, 2012 2:35:58 PM UTC+5:30, Željko Filipin wrote: On Tue, Sep 18, 2012 at 9:54 AM, praveen kumar praveen...@gmail.comjavascript: wrote: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. The error message says there is a problem with the element you are trying to access. Are you sure the element is on the page and enabled? Željko -- filipin.eu -- 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] WIN32OLERuntimeError: (in OLE method `focus': )
I re-verified and found that element exists on the page. I am able to use it manually. I am unable to access using Watir...I have provided the html info of that field below DIV class=autoCompCtl1_cInput INPUT id=ctl00_mContentPlaceHolder_ctrlProductAutoComplete class= name=ctl00_mContentPlaceHolder_ctrlProductAutoComplete autocomplete=off listItemSelectedMethod= MasterValue= IsRequired=No isValid=true value= /A style=CURSOR: pointer id=ctl00_mContentPlaceHolder_ctrlProductAutoComplete_downBtn class=autoCompleteEnabled tagnameRef=no tagName=nonbsp;/AIMG style=DISPLAY: none id=ctl00_mContentPlaceHolder_ctrlProductAutoComplete_downBtn_ani src=https://192.168.5.213/Reference/images/indicator.gif; /INPUT id=ctl00_mContentPlaceHolder_ctrlProductAutoComplete_hdn type=hidden name=ctl00_mContentPlaceHolder_ctrlProductAutoComplete_hdn text= value= / /DIV Thanks, Praveen On Tuesday, September 18, 2012 2:48:52 PM UTC+5:30, Željko Filipin wrote: On Tue, Sep 18, 2012 at 11:12 AM, praveen kumar praveen...@gmail.comjavascript: wrote: The element on the page is disabled. They have designed in that way for specific reasons. Do we have any workaround for this type of scenario?. If it is disabled, how would you use it manually, without Watir? Željko -- 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
[wtr-general] Best way to handle testdata using Watir
Hi All, I am trying to automate the web application using Watir. I am planning to use the test unit frame work. I need to automate it based on the test scenarios, which are greater than 50. I am planning to maintain read the test data from the spread sheet. 50 work sheets for each scenario. Is that the good idea? What is the best approach to maintain test data for each scenario? Can you please suggest whether test unit frame work is good in this case or any other better framework. Please share your thoughts... Thanks, Praveen -- 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
[wtr-general] Silverlight Application Automation using WATiR
Hi, Could you please provide the below information about WATiR? In our current project, there is a requirement that we need to automate web based application which was developed on Silverlight version 5.0. As specified in the installation process, I have installed IE DeveloperToolbar to spy objects but not able to spy objects on Silverlight screens. So please confirm that whether can we use WATiR for silverlight automation or not? If so, please guide me on how to do. Regards, Santhosh Kumar -- 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
[wtr-general] clicking multi links with same attribut
i have a webpage with many number of ul containing many number of li. problem is i need to click all li with same class name in all ul. how can i do it. when i tried browser.li(:class, tor).click when i run it it clicks the fir li of first ul but i want to click all the links -- 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] How to generate the test results?
Hey Amit, Kindly share the XML file once you are done. Thanks in Advance. Regards, Ranjith On Fri, May 20, 2011 at 11:34 AM, Amit Bobade amit.sr...@gmail.com wrote: *Dear all:* I am writing automation scripts using watir. I usually run scripts in editor and get output in the same. But when I run scripts by clicking them then scripts doesn't generate any output (i.e. There is no output window.). For this I am generating the text files to save the test results. But it is too tedious to find the text files and refer the results. Therefore, I want to show results just after running the scripts to the user. So my question is- *Is there any way to generate the results easily after running the test without editor? * * * *Please suggest the way to achieve this. * -- Thanks and Regards, Amit -- 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: Clicking OK on Pop Up with Watir
Hello Team, I have gone through one of the watir forums i found the code with auto it to click the pop ups. The code is working well with firefox browser but not with IE. Is there anything need to be changed in the below code to work with IE for pop up. *require 'win32ole' # already included if you use 'require watir' # # Function to look for popups* *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('Microsoft Internet Explorer', '', 1) # # If window found, send appropriate keystroke ({OK},{Cancel}). 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) } * ** *Please suggest. * On Thu, May 19, 2011 at 2:19 AM, Chuck van der Linden sqa...@gmail.comwrote: But i am unable to do so exactly.. That page provides information and multiple approaches for dealing with 12 different types of popups. Telling us I am unhable to do so exactly is about as usless as it gets in terms of trying to provide US with the information we need to help YOU. Lets start with this, 1) have you at least managed to identify which type of popup you are facing? 2) What have you tried (code please) to deal with the popup and what EXACTLY was the result? 3) provide page code if you can, either the code that creates the popup on the client side, or page source for the portion of the page where the popup is coded. nobody here can see your screen, we can't read your mind, we can't just do your job for you when you say something equivalent to 'it's broke please help' we need more than that in order to help you. On the internet and in forums like this, the help you get is directly proportional to the information you give to help identify and troubleshoot your problem. If you can't give us something to work with, expect nothing in return. On May 17, 9:24 am, ranjith kumar ranjith@gmail.com wrote: Hello Team, In my application i have pop up where i have to select Ok or Cancel. I triedhttp://wiki.openqa.org/display/WTR/Pop+Ups; given in this case. But i am unable to do so exactly.. Please help me in solving this issue. Thanks in Advance. Regards, Ranjith -- 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
[wtr-general] Clicking OK on Pop Up with Watir
Hello Team, In my application i have pop up where i have to select Ok or Cancel. I tried http://wiki.openqa.org/display/WTR/Pop+Ups; given in this case. But i am unable to do so exactly.. Please help me in solving this issue. Thanks in Advance. Regards, Ranjith -- 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] Clicking OK on Pop Up with Watir
Hi, Thanks for the prompt reply. The pop up which i am getting , i am unable to trace the button id.I am attching the snap shot of that pop up. Please suggest a way forward. Thanks On Tue, May 17, 2011 at 10:42 PM, Ashok Tulachan tulachanas...@gmail.comwrote: Hi Ranjith, This might help. *$b.button(:id, find id of the button).click* On Tue, May 17, 2011 at 11:24 AM, ranjith kumar ranjith@gmail.comwrote: Hello Team, In my application i have pop up where i have to select Ok or Cancel. I tried http://wiki.openqa.org/display/WTR/Pop+Ups; given in this case. But i am unable to do so exactly.. Please help me in solving this issue. Thanks in Advance. Regards, Ranjith -- 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 -- 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 pOPUP.doc Description: MS-Word document
Re: [wtr-general] Re: Handling a window file upload dialog box
I have updated my scripts by installing firewatir and flashwatir. So is there any Button click method that i can use to click on the flash button, if yes then please provide the detail method. Thanks in advance. On Mon, May 16, 2011 at 6:26 AM, Super Kevy kpe...@scholarshipamerica.orgwrote: Well why didn't you say the control was a flash control. I cannot be expected to understand your problem if you represent it incorrectly Flash is not supported. On May 14, 3:18 am, sumit kumar sumittaekwo...@gmail.com wrote: Hi Super kevy, Thanks for your help. However the points mentioned above did not work here because of the following point:- -- There is no text field prior to the file upload element where i can set the file name. Coding of the button which is reflected using firebug is displayed below:- object id= type=- data=(Note:- Here a flash file is embedded like plugins/application/flash.swf) param name = value = param name = value = param name = value = /object Here object tag represent the button Upload File button and if you click on it a pop-up will display. Also i try the button click method as:--- button(:xpath,xpath of the object tag).click then function of button click gets executed properly however the pop-up to upload file didn't show up. Please help on this as it is urgently required. Thanks in advance... On Fri, May 13, 2011 at 8:55 AM, Super Kevy kpe...@scholarshipamerica.orgwrote: Hope this helps First: HTML for a file upload field will resemble something like this where the attribute type dictates that its a file upload file. A built-in attribute of the input is that it will automatically give you the BROWSE button input tabindex=101 name=uploadfile size=30 maxlength= onchange=setvalue(this); value= type=file To click the file upload button all you need to do is click in the field or the button. It can be done using autoIT. 1. Assume the name of the file upload element is 'uploadfile' and there is a text_field (with the id sample) prior to it which is exactly 1 tab click from it. 2. Set focus to the field immediately before the 'uploadfile' by using standard WATIR ie.text_field(:id,'sample').click. (See sample code below) 3. Next using autoIT TAB to the next field ('uploadfile) and press ENTER to open the popup 4. Run the popup form fill using AutoIT 5. Return to the main and continue Step 1 Set Focus to the element 1 Tab keypress before the file upload element myAutoIT = WIN32OLE.new(AutoitX3.Control) ie.text_file(:id,Sample).click # SET FOCUS TO field 1 tab click before uploadfile element Step 2. Use TAB and ENTER Keys to move to the upload input and open the POPUP myAutoIT.Send({TAB}) # Tab to the upload field myAutoIT.Send({ENTER}) # Press the enter key to open the popup Step 3. The POPUP is Open so fill it in with what we want myAutoIT.WinWaitActive(File Upload,,15) # Set focus to the popup myAutoIT.Send({ALT}n) # Move to the file name field in the popup myAutoIT.Send(sFileName) # Enter the Path and File Name myAutoIT.ControlClick(File Upload,,Open) Step 4. Back in the main application ... etc On May 12, 1:07 pm, sumit kumar sumittaekwo...@gmail.com wrote: Hi Super Kevy, Thanks for your help. Please ignore the above mentioned query which i have posted as i was doing it wrongly at my end. Please see below the updated query:- There is no file field where i can set the value of the uploaded file... In this case there is only a button and if user click that button then File Upload dialog box gets opened. The problem in this case which i am facing is:- - I am unable to click on the button using any property and the File Upload Dialog box did not appear. Details: object tag is used to create the button and a flash file is uploaded in it. So is there any way from which i can click on it and File Upload Dialog box appear correctly Thanks in advance.. On May 12, 6:27 am, Super Kevy kpe...@scholarshipamerica.org wrote: The preferred method is to use the file_field, but this is an alternative BTW: What error are you getting when you try to set using file_field? Basic AutoIT sample ie.text_field(:id,'document_name').click # Open the popup myAutoIT = WIN32OLE.new(AutoitX3.Control) myAutoIT.WinWaitActive(File Upload,,15) # Set focus to the popup ##myAutoIT.ControlSetText(File Upload,,1148,sFileName) # 1148 is the id found by the AutoIt Finder/Didnt work myAutoIT.Send({ALT}n) # Move to the file name field in the popup myAutoIT.Send(sFileName) # Enter the Path and File Name myAutoIT.ControlClick(File Upload,,Open) On May 2, 4:36 pm
Re: [wtr-general] Re: Handling a window file upload dialog box
Hi Super kevy, Thanks for your help. However the points mentioned above did not work here because of the following point:- -- There is no text field prior to the file upload element where i can set the file name. Coding of the button which is reflected using firebug is displayed below:- object id= type=- data=(Note:- Here a flash file is embedded like plugins/application/flash.swf) param name = value = param name = value = param name = value = /object Here object tag represent the button Upload File button and if you click on it a pop-up will display. Also i try the button click method as:--- button(:xpath,xpath of the object tag).click then function of button click gets executed properly however the pop-up to upload file didn't show up. Please help on this as it is urgently required. Thanks in advance... On Fri, May 13, 2011 at 8:55 AM, Super Kevy kpe...@scholarshipamerica.orgwrote: Hope this helps First: HTML for a file upload field will resemble something like this where the attribute type dictates that its a file upload file. A built-in attribute of the input is that it will automatically give you the BROWSE button input tabindex=101 name=uploadfile size=30 maxlength= onchange=setvalue(this); value= type=file To click the file upload button all you need to do is click in the field or the button. It can be done using autoIT. 1. Assume the name of the file upload element is 'uploadfile' and there is a text_field (with the id sample) prior to it which is exactly 1 tab click from it. 2. Set focus to the field immediately before the 'uploadfile' by using standard WATIR ie.text_field(:id,'sample').click. (See sample code below) 3. Next using autoIT TAB to the next field ('uploadfile) and press ENTER to open the popup 4. Run the popup form fill using AutoIT 5. Return to the main and continue Step 1 Set Focus to the element 1 Tab keypress before the file upload element myAutoIT = WIN32OLE.new(AutoitX3.Control) ie.text_file(:id,Sample).click # SET FOCUS TO field 1 tab click before uploadfile element Step 2. Use TAB and ENTER Keys to move to the upload input and open the POPUP myAutoIT.Send({TAB}) # Tab to the upload field myAutoIT.Send({ENTER}) # Press the enter key to open the popup Step 3. The POPUP is Open so fill it in with what we want myAutoIT.WinWaitActive(File Upload,,15) # Set focus to the popup myAutoIT.Send({ALT}n) # Move to the file name field in the popup myAutoIT.Send(sFileName) # Enter the Path and File Name myAutoIT.ControlClick(File Upload,,Open) Step 4. Back in the main application ... etc On May 12, 1:07 pm, sumit kumar sumittaekwo...@gmail.com wrote: Hi Super Kevy, Thanks for your help. Please ignore the above mentioned query which i have posted as i was doing it wrongly at my end. Please see below the updated query:- There is no file field where i can set the value of the uploaded file... In this case there is only a button and if user click that button then File Upload dialog box gets opened. The problem in this case which i am facing is:- - I am unable to click on the button using any property and the File Upload Dialog box did not appear. Details: object tag is used to create the button and a flash file is uploaded in it. So is there any way from which i can click on it and File Upload Dialog box appear correctly Thanks in advance.. On May 12, 6:27 am, Super Kevy kpe...@scholarshipamerica.org wrote: The preferred method is to use the file_field, but this is an alternative BTW: What error are you getting when you try to set using file_field? Basic AutoIT sample ie.text_field(:id,'document_name').click # Open the popup myAutoIT = WIN32OLE.new(AutoitX3.Control) myAutoIT.WinWaitActive(File Upload,,15) # Set focus to the popup ##myAutoIT.ControlSetText(File Upload,,1148,sFileName) # 1148 is the id found by the AutoIt Finder/Didnt work myAutoIT.Send({ALT}n) # Move to the file name field in the popup myAutoIT.Send(sFileName) # Enter the Path and File Name myAutoIT.ControlClick(File Upload,,Open) On May 2, 4:36 pm, chaand chandu.shiva...@gmail.com w On May 12, 3:09 am, sumit kumar sumittaekwo...@gmail.com wrote: Ok, my problem is to do with handling a windows ***file upload dialog box*. I'm trying to write some code that will click the *file upload* button, navigate to path where the file is stored and after selecting a file click Open button of the* file upload dialog box*. ie.button(:id, ___).click_no_wait ie.send_keys(c:\__) ie.send_keys({ENTER}) Unfortunately click_no_wait just flashes the *dialog box and *does not pop up the Dialog Box. I've tried click by itself and that opens the *dialog box * but the rest of the script does not execute. In this case i
[wtr-general] Handling a window file upload dialog box
Ok, my problem is to do with handling a windows ***file upload dialog box*. I'm trying to write some code that will click the *file upload* button, navigate to path where the file is stored and after selecting a file click Open button of the* file upload dialog box*. ie.button(:id, ___).click_no_wait ie.send_keys(c:\__) ie.send_keys({ENTER}) Unfortunately click_no_wait just flashes the *dialog box and *does not pop up the Dialog Box. I've tried click by itself and that opens the *dialog box * but the rest of the script does not execute. In this case i cannot use the file upload method:- $ie.file_field(:name, ).set(your file.txt) As there is no text field for setting the file name in the textboxes. Application Functionality:- There is Select File button and on clicking it, shows File Upload Dialog box and if user select a file and press enter the file automatically starts uploading Any Ideas on this? -- 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
[wtr-general] Re: Handling a window file upload dialog box
Hi Super Kevy, Thanks for your help. Please ignore the above mentioned query which i have posted as i was doing it wrongly at my end. Please see below the updated query:- There is no file field where i can set the value of the uploaded file... In this case there is only a button and if user click that button then File Upload dialog box gets opened. The problem in this case which i am facing is:- - I am unable to click on the button using any property and the File Upload Dialog box did not appear. Details: object tag is used to create the button and a flash file is uploaded in it. So is there any way from which i can click on it and File Upload Dialog box appear correctly Thanks in advance.. On May 12, 6:27 am, Super Kevy kpe...@scholarshipamerica.org wrote: The preferred method is to use the file_field, but this is an alternative BTW: What error are you getting when you try to set using file_field? Basic AutoIT sample ie.text_field(:id,'document_name').click # Open the popup myAutoIT = WIN32OLE.new(AutoitX3.Control) myAutoIT.WinWaitActive(File Upload,,15) # Set focus to the popup ##myAutoIT.ControlSetText(File Upload,,1148,sFileName) # 1148 is the id found by the AutoIt Finder/Didnt work myAutoIT.Send({ALT}n) # Move to the file name field in the popup myAutoIT.Send(sFileName) # Enter the Path and File Name myAutoIT.ControlClick(File Upload,,Open) On May 2, 4:36 pm, chaand chandu.shiva...@gmail.com w On May 12, 3:09 am, sumit kumar sumittaekwo...@gmail.com wrote: Ok, my problem is to do with handling a windows ***file upload dialog box*. I'm trying to write some code that will click the *file upload* button, navigate to path where the file is stored and after selecting a file click Open button of the* file upload dialog box*. ie.button(:id, ___).click_no_wait ie.send_keys(c:\__) ie.send_keys({ENTER}) Unfortunately click_no_wait just flashes the *dialog box and *does not pop up the Dialog Box. I've tried click by itself and that opens the *dialog box * but the rest of the script does not execute. In this case i cannot use the file upload method:- $ie.file_field(:name, ).set(your file.txt) As there is no text field for setting the file name in the textboxes. Application Functionality:- There is Select File button and on clicking it, shows File Upload Dialog box and if user select a file and press enter the file automatically starts uploading Any Ideas on this? -- 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: Watir with Telerik Rad Grid
Please help in resolving the below issue: Hi team, I have a issue : I have to select a value from telerik comobo box , and the rad combo box is inside the rad window. I am unable to provide the exact application. For rad window: http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx For Rad combo box: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx Now the case is the rad combo box is present inside the rad window. Please help in selecting the value from drop down. Regards, Ranjith On Fri, May 6, 2011 at 7:32 PM, ranjith kumar ranjith@gmail.com wrote: Hi team, I have a issue : I have to select a value from telerik comobo box , and the rad combo box is inside the rad window. I am unable to provide the exact application. For rad window: http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx For Rad combo box: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx Now the case is the rad combo box is present inside the rad window. Please help in selecting the value from drop down. Regards, Ranjith On Thu, May 5, 2011 at 6:22 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, May 5, 2011 at 2:00 PM, ranjith kumar ranjith@gmail.com wrote: Is there any function or method to wait till the url opens completely or page loads completely using watir. I am not sure is this up to date: http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir COuld you please also provide any material availble for automation using watir apart from what is availble in watir website. As far as I know, watir.com points to everything. Željko -- 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: Watir with Telerik Rad Grid
Hi. In this scenario, I have the rad combo box inside the telerik rad window. In earlier case it was simple rad combo box in the main page only. Thats the difference. I tried with the below code but i couldnt do it so. ie1.div(:id,RadWindowWrapper_rwmwindow).input(:id = rcbCombo1_input).click ie1.div(:id,RadWindowWrapper_rwmAddProgram).ul(:class = rcbList).li(:text = Abc).click, but it didnt work. On Mon, May 9, 2011 at 6:09 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2011/5/9 ranjith kumar ranjith@gmail.com Please help in resolving the below issue: Didn't I already answer your question? What is different now? Željko -- 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
[wtr-general] Watir with Telerik Rad combo box inside telerik rad window
Hi team, I have a issue : I have to select a value from telerik comobo box , and the rad combo box is inside the rad window. I am unable to provide the exact application. Instead I am able to provide the application links for Rad window and rad combo box separately. For rad window: http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx For Rad combo box: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx Now the case is the rad combo box is present inside the rad window. Please help in selecting the value from drop down. Regards, Ranjith -- 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: Watir with Telerik Rad Grid
Hi team, I have a issue : I have to select a value from telerik comobo box , and the rad combo box is inside the rad window. I am unable to provide the exact application. For rad window: http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx For Rad combo box: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx Now the case is the rad combo box is present inside the rad window. Please help in selecting the value from drop down. Regards, Ranjith On Thu, May 5, 2011 at 6:22 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, May 5, 2011 at 2:00 PM, ranjith kumar ranjith@gmail.com wrote: Is there any function or method to wait till the url opens completely or page loads completely using watir. I am not sure is this up to date: http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir COuld you please also provide any material availble for automation using watir apart from what is availble in watir website. As far as I know, watir.com points to everything. Željko -- 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: Watir with Telerik Rad Grid
Hi, I am trying my best to give the data. And i am also giving the URL of telerik which i was referring to *Rad Cmobo Box:* http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx Seelct a value from drop down. *Rad Grid:* http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx selecting the row from the grid. Please check these links On Thu, May 5, 2011 at 3:13 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2011/5/5 ranjith kumar ranjith@gmail.com This time i took the code from view source of my IE browser. Better, but still not there. :) You have sent HTML source that is sent to your browser. What Watir sees is HTML elements rendered from HTML source code and changed by JavaScript. So, the best way to see what Watir sees is to use Firebug or similar tool for IE. Željko -- 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: Watir with Telerik Rad Grid
Thanks lot for your script. I am able to run it. Is there any function or method to wait till the url opens completely or page loads completely using watir. COuld you please also provide any material availble for automation using watir apart from what is availble in watir website. regards, Ranjith On Thu, May 5, 2011 at 4:15 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, May 5, 2011 at 12:17 PM, ranjith kumar ranjith@gmail.com wrote: I am trying my best to give the data. I can see that. If you were not making progress I would not bother to reply. http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx Seelct a value from drop down. Now you are talking! :) I have used firebug to inspect the page. Let me know if you do not understand what this means: $ ruby -v ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0] $ gem list watir-webdriver watir-webdriver (0.2.3) Select value: require rubygems require watir-webdriver b = Watir::Browser.new :ff b.goto http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx b.input(:id = RadComboBox1_Input).click b.ul(:class = rcbList).li(:text = Aria Cruz).click http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx selecting the row from the grid. b.goto http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx b.tr(:id = RadGrid1_ctl00__0).click This was fun. Željko -- 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
[wtr-general] Waiting for page load using Watir
Hello Team, I want my script to wait till a page loads completely or till i find a link/text/object in the page using watir Could you please provide me some sample examples for that. Exa:-- Navigate to www.google.co.in... I want my sctipt to wait til i could see *done* status in the status bar of my IE. The same way for waiting till i find the button search Please help. Regards, Ranjith -- 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 with Telerik Rad Grid
Hi, Can you please tell me which code are you reffering to. The code of the applciation where i am working with Rad grids. On Mon, May 2, 2011 at 12:10 PM, Angrez Singh ang...@gmail.com wrote: We are new to teleric Radgrid. We need sample code. Please help us. :) nice one Željko. Ranjith we all want to help you. But without code we can't do anything. One thing that you can do is to go through Watir sample codes available at Watir.com If you are using IE 7/8 you can use IE developer tool to get the HTML code for your page/grid. Thanks, Angrez -- 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
[wtr-general] Watir with Telerik Rad Grid
Hello, I am working with teleric rad grid control. I have select any rown in the grid window using watir. COuld you please help me in resolving this, Thanks in advance Regards, Ranjith -- 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 with Telerik Rad Grid
Hi, I am new to watir... I need a sample script especially to work with teleric Radgrid. I am facing the problem in clicking the row in the grid. Please help On Sat, Apr 30, 2011 at 4:50 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Sat, Apr 30, 2011 at 5:35 AM, ranjith kumar ranjith@gmail.com wrote: I have select any rown in the grid window using watir. 1) What is the problem? 2) Show us the code! Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host viaqa.mobi conference on software testing - organizer -- 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
[wtr-general] Watir script editor
Hi, Hi have installed watir 1.8.6 in windows xp. its working fine in in irb command prompt. And i have written watir code in notepad and stored it in my desktop. if i give load path.rb its not loading in irb. if i save this script in ruby bin directory, its going to load and run. Please can anyone tell me how to run this watir script without storing in ruby bin directory. Regards, Madhu -- 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 To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi, Thank you its working fine, after this script if i click on submit button, m not able to click the button, and cursor is in calendar field only. Regards, Madhu On Wed, Aug 4, 2010 at 4:18 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi This would work: require watir browser = Watir::Browser.start(http://www.cleartrip.com/;) browser.radio(:id = rnd_trip).set # set round trip radio button browser.image(:src = /calendar_icon.gif/).click # click the first calendar browser.image(:src = /calendar_icon.gif/, :index = 2).click # click the second calendar Zelkjko, i just removed all path of images etc, and used regular expression in here, it would click. Regards Pallavi On Wed, Aug 4, 2010 at 4:15 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 4, 2010 at 12:42 PM, madhu kumar madhu@gmail.com wrote: browser.image(:src = /images/global/calendar_icon.gif).click, i am getting error as Watir::Exception::UnknownObjectException: unable to locate element, using :src = /images/global/calendar_icon. and its showing error as assert_exit and enabled. Well, image is not on the page, as error said. Are you sure you are at the right page? Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi, am not getting any error message, but its not clicking the search flights button after running the script require 'watir' Watir::Browser.default = firefox b = Watir::Browser.start(http://www.cleartrip.com;) b.radio(:id, rnd_trip).set b.text_field(:name, origin).set New Delhi b.text_field(:name, destination).set Chennai b.text_field(:name, origin).click b.image(:src = /calendar_icon.gif/).click b.link(:text, 15).click b.image(:src = /calendar_icon.gif/, :index = 2).click b.link(:text, 17).click b.select_list(:name, adults).select 2 b.button(:id, button_flight_search).click Regards, Madhu On Wed, Aug 11, 2010 at 2:04 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 11, 2010 at 8:41 AM, madhu kumar madhu@gmail.com wrote: after this script if i click on submit button, m not able to click the button, and cursor is in calendar field only. What is the problem? You can not click Search flights button at http://www.cleartrip.com? What have you tried? What happens? Any error messages? Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
k fine, but my gem version is 1.3.7, how can i install watir 1.6.5 version, how can i know which version of watir in command prompt. Regards, Madhu On Wed, Aug 11, 2010 at 2:57 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 11, 2010 at 11:19 AM, madhu kumar madhu@gmail.com wrote: am not getting any error message, but its not clicking the search flights button after running the script I have executed your script, and http://www.cleartrip.com/flights/search/suggest... page opened after the last line. Ruby 1.8.7, Watir 1.6.5, Firefox 3.6.8. Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi Željko, first command i am not able to run, but my ruby version is 1.8.6, gem 1.3.7, watir 1.6.5 and i run this command in 3.6.8 firefox browser. except last line(search flights button), everything is working fine. may i know the problem if possible. Regards, Madhu On Wed, Aug 11, 2010 at 4:15 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 11, 2010 at 12:42 PM, madhu kumar madhu@gmail.com wrote: k fine, but my gem version is 1.3.7, how can i install watir 1.6.5 version, how can i know which version of watir in command prompt. run this in command prompt and let me know what you get: ruby -e 'require watir; puts Watir::IE::VERSION' ruby -v gem -v gem list watir Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi, ruby -e 'require watir; puts Watir::IE::VERSION' if i run this command i am getting error as no such file to load. Regards, madhu On Wed, Aug 11, 2010 at 4:29 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 11, 2010 at 12:56 PM, madhu kumar madhu@gmail.com wrote: first command i am not able to run What does that mean? Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi Zeljko, that command working fine. but in my watir script for cleartrip, only button click line is not working, may i know what is the problem. I am also using firefox 3.6.8. require 'watir' Watir::Browser.default = firefox b = Watir::Browser.start(http://www.cleartrip.com;) b.radio(:id, rnd_trip).set b.text_field(:name, origin).set New Delhi b.text_field(:name, destination).set Chennai b.text_field(:name, origin).click b.image(:src = /calendar_icon.gif/).click b.link(:text, 15).click b.image(:src = /calendar_icon.gif/, :index = 2).click b.link(:text, 17).click b.select_list(:name, adults).select 2 b.button(:id, button_flight_search).click Regards, Madhu On Wed, Aug 11, 2010 at 4:37 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 11, 2010 at 1:03 PM, madhu kumar madhu@gmail.com wrote: ruby -e 'require watir; puts Watir::IE::VERSION' if i run this command i am getting error as no such file to load. Try this: ruby -e 'require rubygems; require watir; puts Watir::IE::VERSION' Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi Zeljko, If i type this command directly in command prompt its working fine, But if save this command in note pad and if i execute by load filename.rb. its not clicking the button. Regards, Madhu On Wed, Aug 11, 2010 at 5:19 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 11, 2010 at 1:30 PM, madhu kumar madhu@gmail.com wrote: that command working fine. What did it return? Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Watir script editor
Thanks amit its working fine. 2010/8/11 Amit amit.e...@gmail.com Hi Madhu, For example, you have written abc.rb saved it on Desktop. Try below code for above scenario: require 'watir' require 'C:\\Documents and Settings\\user\\Desktop\\abc.rb' or 'C:\\Documents and Settings\\user\\Desktop\\abc.rb' use double backslash (\\) in path. If this also gives error then provide your code error message Thank You Amit On Wed, Aug 11, 2010 at 2:01 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 11, 2010 at 8:32 AM, madhu kumar madhu@gmail.com wrote: Please can anyone tell me how to run this watir script without storing in ruby bin directory. Please provide your code and error message. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi Zeljko, Hi have used this to commands to click the calendar date, i need to click one more calendar in the same page, index method is not working. if we select the roundtrip the second calendar is going to activate. (www.cleartrip.com) b.image(:src, /images/global/calendar_icon.gif).click b.link(:text, 6).click Regards, Madhu On Wed, Aug 4, 2010 at 1:40 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 4, 2010 at 7:02 AM, madhu kumar madhu@gmail.com wrote: have u got any result,(www.cleartrip.com) What is the problem? I believe we have answered your question. Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi, After typing this command browser.image(:src = /images/global/calendar_icon.gif).click, i am getting error as Watir::Exception::UnknownObjectException: unable to locate element, using :src = /images/global/calendar_icon. and its showing error as assert_exit and enabled. Regards, Madhu On Wed, Aug 4, 2010 at 3:56 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug 4, 2010 at 12:23 PM, madhu kumar madhu@gmail.com wrote: I tried this commands its not coming, its showing some errors, i have attached that screenshot, please find the attachment. Are you at the right page? By the way, you can copy/paste text from command prompt, there is no need for screen shots in that case. Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Calendar Click
HI, Can anyone let me know how to connect to mysql database using Ruby. Regards, Madhu On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2010/8/3 madhu kumar madhu@gmail.com This is travel site just go through this Link www.cleartrip.com And you really thought it would be easier for us to debug your problem with screen shot, instead of sending us the URL?! See how fast you got the answer once you have sent the URL? require rubygems require watir browser = Watir::Browser.start(http://www.cleartrip.com/;) browser.image(:alt = Calendar).click browser.cell(:text = 4).link(:index = 1).click # 4/8/2010 is selected Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Calendar Click
Hi padma, if i type require 'mysql' its coming no such file to load. can i know whats the proble. Regards, Madhu On Tue, Aug 3, 2010 at 2:56 PM, Padma Reddy padmaj...@gmail.com wrote: Hi Madhu, Make sure that mysql is installed on the machine from where you want to execute the ruby script. Do 'gem install mysql' (if this dont work, download mysql and then install). ( 'gem list' check if mysql is there) try this in your script: require 'mysql' my = Mysql.new('IP', 'mysql username', 'password', 'database name') Hope this will help you. On Tue, Aug 3, 2010 at 2:41 PM, madhu kumar madhu@gmail.com wrote: HI, Can anyone let me know how to connect to mysql database using Ruby. Regards, Madhu On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2010/8/3 madhu kumar madhu@gmail.com This is travel site just go through this Link www.cleartrip.com And you really thought it would be easier for us to debug your problem with screen shot, instead of sending us the URL?! See how fast you got the answer once you have sent the URL? require rubygems require watir browser = Watir::Browser.start(http://www.cleartrip.com/;) browser.image(:alt = Calendar).click browser.cell(:text = 4).link(:index = 1).click # 4/8/2010 is selected Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Padma:) Don't let someone become a priority in your life, when you are just an option in their life.. Relationships work best when they are balanced! :-) -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Calendar Click
Hi Padma, Mysql is there its listed as Mysql 2.8.1 *86-mingw32 when i give the command gem list. Regards, Madhu On Tue, Aug 3, 2010 at 3:42 PM, Padma Reddy padmaj...@gmail.com wrote: You might not have installed mysql. check if mysql is there in the list displayed using 'gem list' On Tue, Aug 3, 2010 at 3:34 PM, madhu kumar madhu@gmail.com wrote: Hi padma, if i type require 'mysql' its coming no such file to load. can i know whats the proble. Regards, Madhu On Tue, Aug 3, 2010 at 2:56 PM, Padma Reddy padmaj...@gmail.com wrote: Hi Madhu, Make sure that mysql is installed on the machine from where you want to execute the ruby script. Do 'gem install mysql' (if this dont work, download mysql and then install). ( 'gem list' check if mysql is there) try this in your script: require 'mysql' my = Mysql.new('IP', 'mysql username', 'password', 'database name') Hope this will help you. On Tue, Aug 3, 2010 at 2:41 PM, madhu kumar madhu@gmail.comwrote: HI, Can anyone let me know how to connect to mysql database using Ruby. Regards, Madhu On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2010/8/3 madhu kumar madhu@gmail.com This is travel site just go through this Link www.cleartrip.com And you really thought it would be easier for us to debug your problem with screen shot, instead of sending us the URL?! See how fast you got the answer once you have sent the URL? require rubygems require watir browser = Watir::Browser.start(http://www.cleartrip.com/;) browser.image(:alt = Calendar).click browser.cell(:text = 4).link(:index = 1).click # 4/8/2010 is selected Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Padma:) Don't let someone become a priority in your life, when you are just an option in their life.. Relationships work best when they are balanced! :-) -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Padma:) Don't let someone become a priority in your life, when you are just an option in their life.. Relationships work best when they are balanced! :-) -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Ok but two calendars are there in that website, we can use this one for one calendar, how can i recognise second one. Please help me. On Tue, Aug 3, 2010 at 2:18 PM, gs grzegorz.q...@googlemail.com wrote: Hi, After investigation on the www.cleartrip.com page: to click the calendar: ie.image(:alt, Calendar).click and to click on exact day : ie.link(:text, 12).click (try to user firebug under firefox to find the element you would like to work with or iedeveloper tool bar) Worked for me. Br, GS On Aug 3, 7:10 am, madhu kumar madhu@gmail.com wrote: HI Pallavi, This is travel site just go through this Linkwww.cleartrip.com, in main page only calendar available. and i dont want to put the date directly. I am trying to select from calendar only. Regards, Madhu 2010/8/2 Pallavi Sharma write2pall...@gmail.com Hi Madhu Can't you directly type in your text box for date? Is it disabled? Looks like a travel site, if the link available online which is public which we can try.. Calrendar's are usually div objects. Send us the html of the calendar div and your page, that might give more information. Regards Pallavi On Mon, Aug 2, 2010 at 4:51 PM, madhu kumar madhu@gmail.com wrote: Hi, I attached the screenshot, just let me know how to click the calendar from mouse click using watir. Regards, Madhu On Mon, Aug 2, 2010 at 4:11 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Aug 2, 2010 at 12:34 PM, madhu kumar madhu@gmail.com wrote: Hi have a calendar in my webpage, and i intalled watir recorder Watir recorder is not supported here. Please post to their support forum. Let me know if you can not find it. If you would like to automate calendar with Watir, you will have to provide more information. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi -- 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 To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@goog legroups.com -- 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 To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@goog legroups.com -- 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 To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@goog legroups.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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
That command is not working. just check the website www.cleartrip.com and please let me know. and i used this command to recognize one calendar, and i need to recognize one more. b.image(:src, /images/global/calendar_icon.gif).click b.link(:text, 5).click Regards, Madhu On Tue, Aug 3, 2010 at 6:14 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2010/8/3 madhu kumar madhu@gmail.com Ok but two calendars are there in that website, we can use this one for one calendar, how can i recognise second one. This should work: browser.image(:alt = Calendar, :index = 2).click but something is wrong with the page, I can not get the second calendar to show up even manually. Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Calendar Click
Hi guys, have u got any result,(www.cleartrip.com) Please tell me. Regards, Madhu On Tue, Aug 3, 2010 at 7:21 PM, Super Kevy kpe...@scholarshipamerica.orgwrote: The question also needs to be asked: Does this functionality need critical assesment through test automation or is it more appropriately validated by a manual test. Give the it the Tosh.0 breakdown. - I need to only input a date and then move on (im just submitting a form) - I need to check the calendar control allows me to select a year min and max range - Its a third party control I need to validate we didnt acquire a bad product - Its an inhouse created object that has no unit test associated with it Regards On Aug 3, 3:49 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2010/8/3 madhu kumar madhu@gmail.com This is travel site just go through this Linkwww.cleartrip.com And you really thought it would be easier for us to debug your problem with screen shot, instead of sending us the URL?! See how fast you got the answer once you have sent the URL? require rubygems require watir browser = Watir::Browser.start(http://www.cleartrip.com/;) browser.image(:alt = Calendar).click browser.cell(:text = 4).link(:index = 1).click # 4/8/2010 is selected Željko -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Calendar Click
Hi, Hi have a calendar in my webpage, and i intalled watir recorder, and if i click the calendar recorder not showing any code. i dont knw which method i need to use for this calendar to click. please help me. Regards, Madhu -- 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 To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Calendar Click
HI Pallavi, This is travel site just go through this Link www.cleartrip.com, in main page only calendar available. and i dont want to put the date directly. I am trying to select from calendar only. Regards, Madhu 2010/8/2 Pallavi Sharma write2pall...@gmail.com Hi Madhu Can't you directly type in your text box for date? Is it disabled? Looks like a travel site, if the link available online which is public which we can try.. Calrendar's are usually div objects. Send us the html of the calendar div and your page, that might give more information. Regards Pallavi On Mon, Aug 2, 2010 at 4:51 PM, madhu kumar madhu@gmail.com wrote: Hi, I attached the screenshot, just let me know how to click the calendar from mouse click using watir. Regards, Madhu On Mon, Aug 2, 2010 at 4:11 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Aug 2, 2010 at 12:34 PM, madhu kumar madhu@gmail.com wrote: Hi have a calendar in my webpage, and i intalled watir recorder Watir recorder is not supported here. Please post to their support forum. Let me know if you can not find it. If you would like to automate calendar with Watir, you will have to provide more information. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Firewatir attach method doesn't work properly
Hi Ethan, My whole framework has been written in Watir.. So, at this point i can't use Vapir. Guys, is there any other solution to attach multiple browser at a time? Thank You On Mon, Jul 26, 2010 at 10:58 PM, Ethan notet...@gmail.com wrote: I'd recommend Vapir-Firefox, which is a fork of FireWatir which I have updated and improved a lot. See the site for Vapir at http://vapir.org/ -Ethan On Mon, Jul 26, 2010 at 07:07, Amit Kumar amit.e...@gmail.com wrote: Hi All! I'm using Firewatir 1.6.5 I want to test an web application which open a pop up window. I want to attach this pop up window with firewatir. So, i have written below code: require 'firewatir' ff =FireWatir::Firefox.new ff.goto(www.example.com) ff.link(:text,Pop_up).click ff2= FireWatir::Firefox.attach(:title,New Pop Up Window) Now, the problem is... After attaching new pop up window, firewatir loose control over parent window. It remember only pop up window which have attached recently and forget parent window. So, i can't access parent application anymore. eg: puts ff.title == New Pop Up Window puts ff2.title == New Pop Up Window It doesn't return window title of parent window. Any comments or solution?? Thank You -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] facing issue with clicking buttons
Hi Raveendran, Thanks for the reply... I tried with the all the possibilities you provided.None of them are working. Getting error as Unable to locate element. Please let me know if any other options. Thanks, Praveen On Tue, Jul 27, 2010 at 11:09 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Praveen, Have you tried these possibilities ? *canvas_frame.div(:class, 'J-Zh-I J-J5-Ji Bq L3').flash* * canvas_frame.div(:id, ': 15m ').flash canvas_frame.div(:id, ': 15m ').flash * On Fri, Jul 23, 2010 at 1:32 PM, praveen kumar praveen454gr...@gmail.comwrote: Hi John, I have tried with div, but unable to click on button. Following is the code: require 'watir' require 'test/unit' require 'win32ole' class TC_article_example Test::Unit::TestCase def test_data $ie = Watir::IE.new $ie.goto(http://mail.google.com/mail/?ui=html;) #Define the excel file excel= WIN32OLE::new(excel.Application) wrkbook=excel.Workbooks.Open(C:\\test.xls) wrksheet = wrkbook.worksheets(1) wrksheet.select #read the data from excel file rows = 2 $username=wrksheet.cells(rows,A) ['text'] #puts $field $password=wrksheet.cells(rows,B) ['text'] $ie.text_field(:name,Email).set($username) $ie.text_field(:id,Passwd).set($password) $ie.button(:id, 'signIn' ).click #browser.show_frames # We need the iframe with ID 'canvas_frame'. Store it in a var. #$ie.goto(http://mail.google.com/mail/?ui=html;) canvas_frame = $ie.frame(:id, 'canvas_frame') # Get the current user's email address. We'll be sending email to it. my_address = $username mail_subject = 'Hello Watir world!' mail_body_text = 'Hi.' canvas_frame.span(:text, 'Compose Mail').click # Compose new mail canvas_frame.text_field(:name, 'to').set(my_address) canvas_frame.text_field(:name, 'subject').set(mail_subject) mail_body_frame = canvas_frame.frame(:index, 1) mail_body_frame.document.body.setproperty('innerText', mail_body_text) #$ie.goto(http://mail.google.com/mail/?ui=html;) * canvas_frame.div(:text, 'Send').click# Send the message I am facing problem here to click on Send button. It has no attributes like type, value* #canvas_frame.link(:text, 'Sent Mail').click # Browse to sent mail page #assert(canvas_frame.contains_text('Hello Watir world!')) #canvas_frame.link(:text, 'Inbox').click # Return to the inbox page $ie.link(:href,'https://mail.google.com/mail/?logouthl=en').clickhttps://mail.google.com/mail/?logouthl=en%27%29.click $ie.close #rows=rows+1 end end I have also tried with the attribute id, but that is also not working. Please help me and let me know if require any details. Praveen On Thu, Jul 22, 2010 at 10:23 PM, John Fitisoff jfitis...@yahoo.comwrote: Try treating it as a div rather than a button? -- *From:* praveen kumar praveen454gr...@gmail.com *To:* watir-general@googlegroups.com *Sent:* Thu, July 22, 2010 5:42:59 AM *Subject:* [wtr-general] facing issue with clicking buttons Hi All, I am trying to automate the gmail by clicking on the compose mail and entering to address , subject and body content. I am facing problem in clicking the Send button. The button has following HTML elements *div tabindex=1 class=J-Zh-I J-J5-Ji Bq L3 id=:15m role=button style=-moz-user-select: none;bSend/b/div * I have tried with following script *canvas_frame.button(:text, 'Send').click * canvas_frame is the variable in which the frame is stored. I am confusing because there is no type attribute. It has role attribute i.e role=button. Please help me in going forward... Thanks, Praveen -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Regards, P.Raveendran http://raveendran.wordpress.com -- Before posting, please read http://watir.com/support. In short: search before you
[wtr-general] Firewatir attach method doesn't work properly
Hi All! I'm using Firewatir 1.6.5 I want to test an web application which open a pop up window. I want to attach this pop up window with firewatir. So, i have written below code: require 'firewatir' ff =FireWatir::Firefox.new ff.goto(www.example.com) ff.link(:text,Pop_up).click ff2= FireWatir::Firefox.attach(:title,New Pop Up Window) Now, the problem is... After attaching new pop up window, firewatir loose control over parent window. It remember only pop up window which have attached recently and forget parent window. So, i can't access parent application anymore. eg: puts ff.title == New Pop Up Window puts ff2.title == New Pop Up Window It doesn't return window title of parent window. Any comments or solution?? Thank You -- 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 To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] facing issue with clicking buttons
Hi John, I have tried with div, but unable to click on button. Following is the code: require 'watir' require 'test/unit' require 'win32ole' class TC_article_example Test::Unit::TestCase def test_data $ie = Watir::IE.new $ie.goto(http://mail.google.com/mail/?ui=html;) #Define the excel file excel= WIN32OLE::new(excel.Application) wrkbook=excel.Workbooks.Open(C:\\test.xls) wrksheet = wrkbook.worksheets(1) wrksheet.select #read the data from excel file rows = 2 $username=wrksheet.cells(rows,A) ['text'] #puts $field $password=wrksheet.cells(rows,B) ['text'] $ie.text_field(:name,Email).set($username) $ie.text_field(:id,Passwd).set($password) $ie.button(:id, 'signIn' ).click #browser.show_frames # We need the iframe with ID 'canvas_frame'. Store it in a var. #$ie.goto(http://mail.google.com/mail/?ui=html;) canvas_frame = $ie.frame(:id, 'canvas_frame') # Get the current user's email address. We'll be sending email to it. my_address = $username mail_subject = 'Hello Watir world!' mail_body_text = 'Hi.' canvas_frame.span(:text, 'Compose Mail').click # Compose new mail canvas_frame.text_field(:name, 'to').set(my_address) canvas_frame.text_field(:name, 'subject').set(mail_subject) mail_body_frame = canvas_frame.frame(:index, 1) mail_body_frame.document.body.setproperty('innerText', mail_body_text) #$ie.goto(http://mail.google.com/mail/?ui=html;) * canvas_frame.div(:text, 'Send').click# Send the message I am facing problem here to click on Send button. It has no attributes like type, value* #canvas_frame.link(:text, 'Sent Mail').click # Browse to sent mail page #assert(canvas_frame.contains_text('Hello Watir world!')) #canvas_frame.link(:text, 'Inbox').click # Return to the inbox page $ie.link(:href,'https://mail.google.com/mail/?logouthl=en').click $ie.close #rows=rows+1 end end I have also tried with the attribute id, but that is also not working. Please help me and let me know if require any details. Praveen On Thu, Jul 22, 2010 at 10:23 PM, John Fitisoff jfitis...@yahoo.com wrote: Try treating it as a div rather than a button? -- *From:* praveen kumar praveen454gr...@gmail.com *To:* watir-general@googlegroups.com *Sent:* Thu, July 22, 2010 5:42:59 AM *Subject:* [wtr-general] facing issue with clicking buttons Hi All, I am trying to automate the gmail by clicking on the compose mail and entering to address , subject and body content. I am facing problem in clicking the Send button. The button has following HTML elements *div tabindex=1 class=J-Zh-I J-J5-Ji Bq L3 id=:15m role=button style=-moz-user-select: none;bSend/b/div * I have tried with following script *canvas_frame.button(:text, 'Send').click * canvas_frame is the variable in which the frame is stored. I am confusing because there is no type attribute. It has role attribute i.e role=button. Please help me in going forward... Thanks, Praveen -- 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 To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: 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. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] facing issue with clicking buttons
Hi All, I am trying to automate the gmail by clicking on the compose mail and entering to address , subject and body content. I am facing problem in clicking the Send button. The button has following HTML elements *div tabindex=1 class=J-Zh-I J-J5-Ji Bq L3 id=:15m role=button style=-moz-user-select: none;bSend/b/div * I have tried with following script *canvas_frame.button(:text, 'Send').click * canvas_frame is the variable in which the frame is stored. I am confusing because there is no type attribute. It has role attribute i.e role=button. Please help me in going forward... Thanks, Praveen -- 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 To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: popup handling
Hi , Thanks for your reply, when i tried pop op clicker method it throws error saying nomethod found error how can i rectify this.Please help me in this regard Thanks, Naveen On Fri, Jan 22, 2010 at 6:32 AM, Wesley Chen cjq@gmail.com wrote: If the methods above can't work, you can try the one below. # When it displays the OKCancel or OK pop up, it will click it def popup_clicker(ie = $ie, buttonname= OK) require 'watir/contrib/enabled_popup' hwnd = ie.enabled_popup(15) if(hwnd) #yeah! a popup popup = WinClicker.new popup.makeWindowActive(hwnd) #Activate the window. popup.clickWindowsButton_hwnd(hwnd,buttonname) #Click the button # #popup.clickWindowsButton(/Internet/,buttonname,30) popup=nil end end sth.click_no_wait popup_clicker($b, OK) I submit the one you referred, but I don't know why sometimes it works, sometimes it doesn't. Maybe in the second, it works, in the next second, it doesn't work. For the popup_clicker, I think it is a stable one. Thanks. Wesley Chen. For life, the easier, the better. On Fri, Jan 22, 2010 at 1:37 AM, orde ohil...@gmail.com wrote: I think you need to use click_no_wait on this line: ie.button(:value, 'Click').click Also, lots of info here: http://wiki.openqa.org/display/WTR/Pop+Ups Hope it helps... orde On Jan 21, 9:28 am, Naveen devadass naveeenku...@gmail.com wrote: Hi All, I am using following script to handle the pop up but the code is not woking the code autoit.Send({Enter}) is not working .it doesnot send the key strokes properly please help me in this regard or please give me some other options to handle the pop up effectively.currently i am using watir 1.6.2 require 'watir' require 'win32ole' require 'watir/dialog' require 'watir/winClicker' require 'watir/contrib/enabled_popup' # MAIN APPLICATION CODE link = '\\\hcl0203\Release 3\Automated Testing\popups Handling \Sampl1.html' ie = Watir::IE.start(link) ie.button(:value, 'Click').click def check_for_popups(title, button) popup=Thread.new { autoit=WIN32OLE.new('AutoItX3.Control') ret=autoit.WinWait(title,,5) if (ret==1) autoit.WinActivate(title) button.downcase! if button.eql?(ok) || button.eql?(yes) || button.eql? (continue) autoit.Send({Enter}) else autoit.Send({tab}) autoit.Send({Enter}) end elsif (ret==0) puts No popup, please check your code. end } at_exit { Thread.kill(popup) } end check_for_popups(, OK) -- 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 -- ever friendly, Naveen -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Code to select values in combo box
Hi Friends, I am new to ruby watir can any one send the code for selecting values is combo box please send me different WAYS OF SELECTING IT THANKS IN ADVANCE NAVEEN --~--~-~--~~~---~--~~ 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 WITH QC INTEGRATION
Hi All, Thanks a lot for your replies. Actually i'm able to run ruby/watir script from QC if i'm giving the local path Like, XTools.run C:/ruby/bin/ruby.exe,C:\kiran\example.rb, -1 But if i want to run the ruby script which is stored in Test plan then it's throwing error Like,XTools.run C:/ruby/bin/ruby.exe,[Quality Center] Subject/ Ruby_Watir_QC/example.rb, -1 error message: Running C:/ruby/bin/ruby.exe [Quality Center] Subject/Ruby_Watir_QC/ example.rb C:/ruby/bin/ruby.exe: No such file or directory -- [Quality (LoadError) Test test1 is completed And one thing Even if i create new test(ruby/watir script) in QC,it is generating the some kind of VBscript file and not able to see my ruby/ watir script code. Please help me if anyone has any experience on this before. Thanks, kiran. On Aug 30, 12:22 pm, Karthikeyan K mailkar...@gmail.com wrote: Look for OTA (Open Test Architecture), the architecture behind QC through which external tools can talk to QC. But storing and executing Watir scripts from QC is going to be difficult. On Aug 28, 6:53 am, Tony ynot...@gmail.com wrote: Hi Kumar, The test scripts can also be saved in QC. The result files, test results, steps etc can be updated back into QC. QC provides complete automation using its com library. Thanks, Tony- 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: WATIR WITH QC INTEGRATION
Hi Vinh, Thank you for your reply. My requirements are • The requirement is to execute the Ruby/Watir scripts through QC. • The test scripts must be saved in QC. • The result files must be available in QC. • From the QC user end, the process must be similar to the way QTP scripts are dealt with. Please help me in this regard. Thanks, kiran. On Aug 28, 6:17 am, Tran Tuan Vinh 10/08 tuanvinh1...@gmail.com wrote: Could you tell more detail your requirement? On Aug 28, 2:04 am, kumar gki...@gmail.com wrote: Hi All, In my project as per my client requirement,I have to integrate Watir with QC. It would be great help if you have any suggestions and help in this regard. Please help me. Thanks, kiran.- 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] javascript
Hi All, I have query regarding with javascript popup. I want to verify OK and CANCEL in the popup box. Please help me in this regard. Thanks, kiran. --~--~-~--~~~---~--~~ 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: javascript
Hi Ankur, Thank you very much for your reply. I dont want click on any button on popup. I want to verify the desired buttons are exist or not. Thanks, kiran. On Aug 27, 11:55 am, Ankur Gera ankurg...@gmail.com wrote: Hi Kumar, You can use the following code with the changes according to ur pop-up window: ai = WIN32OLE.new(AutoItX3.Control) ai.WinWait(File Download, , 5) //Here the first argument is the Title of pop-up window and thrid is the waiting time ai.ControlFocus(File Download, , Open) //First argument is same as described above,Third option for you can be OK or Cancel ai.ControlClick(File Download, , Open) //First argument is same as described above,Third option for you can be OK or Cancel For further help please revert back. Thanks Regards, Ankur Gera --~--~-~--~~~---~--~~ 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: javascript
Hmmm...i got a solutionn to do it by using ControlGetText method Thanks, kiran. On Aug 27, 12:43 pm, kumar gki...@gmail.com wrote: Hi Ankur, Thank you very much for your reply. I dont want click on any button on popup. I want to verify the desired buttons are exist or not. Thanks, kiran. On Aug 27, 11:55 am, Ankur Gera ankurg...@gmail.com wrote: Hi Kumar, You can use the following code with the changes according to ur pop-up window: ai = WIN32OLE.new(AutoItX3.Control) ai.WinWait(File Download, , 5) //Here the first argument is the Title of pop-up window and thrid is the waiting time ai.ControlFocus(File Download, , Open) //First argument is same as described above,Third option for you can be OK or Cancel ai.ControlClick(File Download, , Open) //First argument is same as described above,Third option for you can be OK or Cancel For further help please revert back. Thanks Regards, Ankur Gera- 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: javascript
Thank you Ankur. On Aug 27, 2:11 pm, kumar gki...@gmail.com wrote: Hmmm...i got a solutionn to do it by using ControlGetText method Thanks, kiran. On Aug 27, 12:43 pm, kumar gki...@gmail.com wrote: Hi Ankur, Thank you very much for your reply. I dont want click on any button on popup. I want to verify the desired buttons are exist or not. Thanks, kiran. On Aug 27, 11:55 am, Ankur Gera ankurg...@gmail.com wrote: Hi Kumar, You can use the following code with the changes according to ur pop-up window: ai = WIN32OLE.new(AutoItX3.Control) ai.WinWait(File Download, , 5) //Here the first argument is the Title of pop-up window and thrid is the waiting time ai.ControlFocus(File Download, , Open) //First argument is same as described above,Third option for you can be OK or Cancel ai.ControlClick(File Download, , Open) //First argument is same as described above,Third option for you can be OK or Cancel For further help please revert back. Thanks Regards, Ankur Gera- 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] WATIR WITH QC INTEGRATION
Hi All, In my project as per my client requirement,I have to integrate Watir with QC. It would be great help if you have any suggestions and help in this regard. Please help me. Thanks, kiran. --~--~-~--~~~---~--~~ 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] WIN32OLERuntimeError: unknown OLE server: `AutoItX3.Control'
hi, When iam running,Iam getting this error .can anybody please help me --~--~-~--~~~---~--~~ 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: Firefox 3.5 compatible with FireWatir?
Hi Angrez, Please provide a JSSH which works all time. I am really fedup, sometimes it works sometimes it does't. Now its not working tried all what you said before. Thanks, venkat http://prog2impress.com/ On Thu, Jul 23, 2009 at 12:05 PM, Angrez Singh ang...@gmail.com wrote: Don't think so, we need to compile the JSSH with newer version of Firewatir on MAC OSX On Thu, Jul 23, 2009 at 8:17 AM, Lonny Eachus lon...@gmail.com wrote: There have been no replies to the above. Does anybody know if this works? Does anyone have a workable XPI for OS X? On Jul 6, 4:23 am, Angrez Singh ang...@gmail.com wrote: First you need to do make xpi in the [build directory]/extensions/jssh directory. This will create xpi in the following directory: [build directory]/dist. I use the following .mozconfig file for building Firefox with JSSh on windows: . $topsrcdir/browser/config/mozconfig mk_add_options moz_objd...@topsrcdir@/fx35-jssh ac_add_options --disable-installer ac_add_options --disable-vista-sdk ac_add_options --disable-vista-sdk-requirements ac_add_options --enable-extensions=default,jssh ac_add_options --disable-xpconnect-idispatch ac_add_options --disable-activex ac_add_options --disable-activex-scripting ac_add_options --disable-accessibility Thanks, Angrez --~--~-~--~~~---~--~~ 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: problem in jssh
firefox version: 3.0.1 jssh: 0.9 thanks for your kind assistence Regards, Venkat www.prog2impress.com On Tue, Jul 14, 2009 at 12:14 PM, Angrez Singh ang...@gmail.com wrote: which XPI you are using and i think you want to say 3.10? On Mon, Jul 13, 2009 at 6:39 PM, venkatesh kumar venkatesh...@gmail.comwrote: firefox 3.01 Thanks Venkat www.prog2impress.com On Mon, Jul 13, 2009 at 12:15 PM, Angrez Singh ang...@gmail.com wrote: Which Firefox version are you using? Which XPI are you using? On Sat, Jul 11, 2009 at 11:49 PM, venky venkatesh...@gmail.com wrote: Hi all, I worked in fire watir for a month. my scripts were running fine. Due to some other reason i had to format my hard disk. I installed firewatir with jssh extension but now the same script is not running am getting a error like this c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:271:in `set_defaults': 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 (Watir::Exception::UnableToStartJSShException) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:161:in `initialize' i have tried reinstalling firewatir and firefox browser along with jssh for few times but error still persists. What going wrong can any body throw some light on this? Thanks, Venky www.prog2impress.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: Need help
Use multiple attributes for this: browser.checkbox(:id= selectedevent , index =1).set browser.checkbox(:id= selectedevent , index =2).set browser.checkbox(:id= selectedevent , index =3).set - regards Amit Kumar On Mon, Jul 13, 2009 at 3:27 PM, rakesh srakes...@gmail.com wrote: tr style=height:20px; td style=width:30px; padding-left:5px;input type=checkbox value=c43afa4c-6c81-11de-9983-0016764319d8 name= selectedevent id=selectedevent //td td style=width:220px; class=con-grey Vratham/td td style=width:100px; class=con-grey07-22-2009/td /tr tr style=height:20px; td style=width:30px; padding-left:5px;input type=checkbox value=d64ac5be-6c81-11de-9983-0016764319d8 name= selectedevent id=selectedevent //td td style=width:220px; class=con-grey Kasi Yatra/td td style=width:100px; class=con-grey07-22-2009/td /tr tr style=height:20px; td style=width:30px; padding-left:5px;input type=checkbox value=e872f2ac-6c81-11de-9983-0016764319d8 name= selectedevent id=selectedevent //td td style=width:220px; class=con-grey Vara Pooja/td td style=width:100px; class=con-grey07-22-2009/td /tr On Jul 13, 2:33 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Jul 13, 2009 at 11:30 AM, rakesh srakes...@gmail.com wrote: The problem is how will i select a checkbox in multiple checkboxes browser.checkbox(:id, myid).set What is the problem. They all have the same attributes? Can you post the html of checkboxes and let us know which one would you like to select? Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Ramping up your Ruby skills
We have our testers work through the following before they get to Watir tutorials: http://www.ruby-lang.org/en/documentation/quickstart/ http://www.ruby-lang.org/en/documentation/quickstart/ http://pine.fm/LearnToProgram/?Chapter=00 I agree with Tiffany; Chris Pine's tutorial is really good for non-programmers who get into testing and scripting. Documentation on asserts is also particularly useful in our case: http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/Assertions.html And after that Google is everyone's friend :-) On Fri, Apr 3, 2009 at 9:32 PM, Tiffany Fodor tcfo...@comcast.net wrote: Hey Bret! For some this may be a little remedial, but I really liked Chris Pine's 'Learn to Program' tutorial. He starts out assuming you haven't ever written any code at all. I hadn't written any code for several years and this got me up and running in a couple of days. http://pine.fm/LearnToProgram/ Of course, there's lots more to learn after that. I think the Pragmatic Programmers 'Pickaxe' book is the most popular with this group: http://www.rubycentral.com/book/ -Tiffany On Apr 3, 9:45 am, Bret Pettichord b...@pettichord.com wrote: People who are new to Watir often need to learn Ruby to be effective. What resources should we recommend for this? What books, websites, blogs or videos have you found to be helpful? Online training? -- Bret Pettichord CTO, WatirCraft LLC,www.watircraft.com Lead Developer, Watir,www.watir.com Blog,www.io.com/~wazmo/blog http://www.io.com/%7Ewazmo/blog Twitter,www.twitter.com/bpettichord Watir Training: Portland/Beaverton April 16-17www.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: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject...
Hey , Make sure C:\ruby\bin\ruby.exe invoked as Administrator (if you are running the script in Vista) Thanks Ravi On Wed, Mar 18, 2009 at 9:56 PM, vladimir...@hotmail.com vladimir...@hotmail.com wrote: It opens Google web site, but does not type anything in the search field. All environment variables you've described have been set during Ruby and Watir installation. The error is in /ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:52. Thanks, Vlad On Mar 18, 6:37 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: Does it open the web page correctly? Or does it fail right off the bat? Check the following. Goto Setting -Control Panel- System Click Advanced Tab Click Environment Variables Under Path Variable verify c:\Ruby\bin Exists. If not add it. Under PATHEXT Variable verify .RB exists. If not add it If variable RUBYOPT Doesn't Exist add it RUBYOPT - Value = -rubygems -Original Message- From: watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] On Behalf Of vladimir...@hotmail.com Sent: Wednesday, March 18, 2009 8:26 PM To: Watir General Subject: [wtr-general] Re: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... Thank you, Darin for reply. Ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] Gem list: *** LOCAL GEMS *** activesupport (2.3.2) builder (2.1.2) commonwatir (1.6.2) firewatir (1.6.2) fxri (0.3.6) fxruby (1.6.12) hoe (1.11.0) hpricot (0.6) log4r (1.0.5) rake (0.8.4, 0.7.3) rubyforge (1.0.3) rubygems-update (1.3.1) s4t-utils (1.0.4) sources (0.0.1) user-choices (1.1.6) watir (1.6.2) win32-api (1.4.0, 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.6.0, 0.5.3) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.3.0, 0.2.0) windows-pr (1.0.2, 0.7.2) xml-simple (1.0.12) On Mar 18, 6:02 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: I ran your code and it worked for me. What Version of ruby did you load? Type in command prompt ruby -v What gems do you have installed? gem list -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of vladimir...@hotmail.com Sent: Wednesday, March 18, 2009 6:42 PM To: Watir General Subject: [wtr-general] Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... I was trying to run google_search.rb from tutorial: require 'watir' # set a variable test_site = http://www.google.com; # open the IE browser ie = Watir::IE.new ie.goto test_site ie.text_field(:name, q).set pickaxe # q is the name of the search field Always getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObjectException...) Spent already half a day. Nothing works. Please, help. Thank you very much, Vladimir- 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: When do you start writing WATiR scripts?
It's MUCH more than a month, but I thought I would report back on what we tried where we met with success. We tried the following: 1 A manual tester writing test cases and doing manual testing. An automation tester wrote methods needed to exercise functionality and handed it over to the manual tester, who then had to convert manual test cases into test data for the watir script (i.e., populate an Excel sheet) This approach didn't work AT ALL. The automation tester got focused on the beauty of well written code and the manual tester got tied up in knots trying to populate the Excel sheet of data, which seemed really alien. 2 The next approach we tried was to have an automation tester automate product functionality for which development had finished and wasn't actively being worked on. IMO, this proved to be fairly wasteful and pointless. 3 The approach that we currently follow: Dev/Test work in two week iterations. While devs work on developing a story, testers work on understanding the functionality and generating test ideas. When a story is dev complete, the tester first tests manually and after reporting bugs, if there are no blockers, works to automate the tests. This approach works pretty well because IMO we have managed to create a structure that is simple enough for non-programmers to work with. We use the Ruby Unit Test framework and use asserts to write tests that look ridiculously simple (see below). Each iteration we manage to automate some percentage of our tests, which is much better than 100% manual testing all the time. class TestCreateNewEmployee Test::Unit::TestCase include NewEmployeePayslip_Methods ... def test_0010_create_new_employee_mandatory_fields tc = '0010' test_data = get_input_data(tc, EMP_SHEET)//gets a row of data from an Excel sheet create_new_employee(tc, test_data) //populates the screen with data from the Excel sheet end ... end The cons of this approach is that some manual testers have a mental barrier to automation (since it involves writing code). 4 The approach that we are currently exploring is to see if we can use Cucumber instead of Excel to document our test scenarios. Can somebody point me to a good, current Cucumber/Watir tutorial? I've looked at http://vimeo.com/2871256 already. Thanks, Bhavna On Thu, Aug 7, 2008 at 2:52 AM, Jeff Fry jeff@gmail.com wrote: I think this is very context-specific. You're quite right to wonder about the cost of automating an unstable interface. That said, I've found specific situations where I've been very happy to use watir on early code. In fact, watir is light-weight enough that I'm regularly generate 'throw-away' code for a specific test, because the cost is low enough. For example, if I want to explore what'll happen if I a discussion thread has 100s of posts on it, I can quickly use watir to generate that state. That might be a script I want to hold onto and maintain, but it might also be one that I'd be happy to not maintain. I'll also add that watir lets you drive a web app through a variety of means. Certain changes (e.g. the placement of a button on the page, or the addition of a new button) may not break existing scripts. I'd probably start by discussing with the programmers what if anything I can expect to be constant. They might be perfectly willing to support some API for you, for example putting IDs on elements, and keeping those IDs the same even if they're changing other things. Without knowing more of what your context is, I'd suggest starting with a very small investment to begin, and see what works for you and what doesn't. ...Then if you're game, write us a little report a months from now about what worked for you! Cheers, Jeff On Wed, Aug 6, 2008 at 6:06 AM, Bhavna Kumar bhavna.ku...@gmail.comwrote: Hi, This is more of a process query than a technical one. We have introduced WATiR scripting in our org and are working on getting testers familiar with doing test cases in WATiR. Within the org, we are debating whether to use WATiR to build a smoke/regression testing suite (which basically means manual testing for releases, followed by post facto WATiR development) or to use it for actual testing. Using it for actual testing would mean that scripts would break as UI changes happen (and this happens quite a bit till functionality stabilizes). I'm curious to know at what point you folks begin WATiR testing in the development cycle? If used for actual testing, then what has your experience been? Thanks in advance, Bhavna -- Jeff Fry Member, Association for Software Testing Board of Directors http://testingjeff.wordpress.com http://associationforsoftwaretesting.org --~--~-~--~~~---~--~~ 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