Re: [wtr-general] Re: Getting (JsshSocket::JSSyntaxError) Error
can you please post the code that you are executing? On Wed, Jun 1, 2011 at 1:05 PM, Gilberto Velenux Ficara g.fic...@gmail.com wrote: On 31 Mag, 07:38, Amit Bobade amit.sr...@gmail.com wrote: Dear All: I am getting following error while executing the script. Please provide some solution. E:/Ruby187/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket .rb:19:in `js_eval': missing ; before statement (JsshSocket::JSSyntaxError) I had the same error, but it was a bug on my code... I was using something like: browser.div(:class, /#{variable}/).present? but variable was already a regexp. I changed it back to: browser.div(:class, variable).present? and now it works... I hope it helps :) Gilberto -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-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: Getting (JsshSocket::JSSyntaxError) Error
can you try checking a static text inside the div? something like this: text.include?(text) On Wed, Jun 1, 2011 at 4:19 PM, Amit Bobade amit.sr...@gmail.com wrote: Hi, My code is as follows. I located element manually instead of using xpath. Following code works properly for *exists? *But it does not work for *text.include?(#{variable_name}). * **I tried this with *text.include?(variable_name) *too (i.e. removing #{ } ) as Gilberto suggested, but it didn't work. browser.div(:id, 'published-articles').div(:class, 'top-green-left').div(:class, 'scroll-main-content').div(:class, 'holder osX').div(:class, 'jScrollPaneContainer').div(:class, 'scroll-pane').div(:class, 'scroll-main-content-set').div(:class, 'scroll-main-content-set-center vertical_repeat').div(:class, 'scroll-main-content-set-center-content').div(:class, 'right-text-top').div(:class, 'scroll-main-content-set-attch-img').div(:class, 'scroll-main-content-set-center-content-bold').* text.include?(#{variable_name})* On Wed, Jun 1, 2011 at 3:49 PM, Angrez Singh ang...@gmail.com wrote: can you please post the code that you are executing? On Wed, Jun 1, 2011 at 1:05 PM, Gilberto Velenux Ficara g.fic...@gmail.com wrote: On 31 Mag, 07:38, Amit Bobade amit.sr...@gmail.com wrote: Dear All: I am getting following error while executing the script. Please provide some solution. E:/Ruby187/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket .rb:19:in `js_eval': missing ; before statement (JsshSocket::JSSyntaxError) I had the same error, but it was a bug on my code... I was using something like: browser.div(:class, /#{variable}/).present? but variable was already a regexp. I changed it back to: browser.div(:class, variable).present? and now it works... I hope it helps :) Gilberto -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-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 -- 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] Watir with Telerik Rad Grid
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
Re: [wtr-general] Jssh Socket error
Which OS you are using? Which Firefox version are you using? - Angrez On Wed, Apr 20, 2011 at 6:01 PM, prathibha m prathibha.a...@gmail.comwrote: I installed ruby 1.8.7 version and gems 1.7.2 version i installed firewatir and also the firefox extension JSSH 0.9 I witten a simple google test script. first time the script run successfully. But I am trying to run the script second time it will give the errors like /usr/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ jssh_socket.rb:19:in `js_eval': this.docShell is null (JsshSocket::JSTypeError) from /usr/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ firefox.rb:194:in `set_browser_document' from /usr/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ firefox.rb:104:in `goto' from watir_script1.rb:4 If I install JSSH extension again then it run properly. So the problem is I have install the Jssh extension every time, i want to run the script. So please solve my problem as early as possible. Advanced thanks Prathibha -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-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: Jssh Socket error
As per what I know you have to start firefox first with -jssh option and then run the test script. Test script won't start Firefox. Every time you have to run a script you have to first start Firefox with -jssh option - Angrez On Thu, Apr 21, 2011 at 1:37 PM, prathibha m prathibha.a...@gmail.comwrote: Ubuntu 10.10 OS. FireFox 3.6.16. On Apr 21, 11:01 am, Angrez Singh ang...@gmail.com wrote: Which OS you are using? Which Firefox version are you using? - Angrez On Wed, Apr 20, 2011 at 6:01 PM, prathibha m prathibha.a...@gmail.com wrote: I installed ruby 1.8.7 version and gems 1.7.2 version i installed firewatir and also the firefox extension JSSH 0.9 I witten a simple google test script. first time the script run successfully. But I am trying to run the script second time it will give the errors like /usr/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ jssh_socket.rb:19:in `js_eval': this.docShell is null (JsshSocket::JSTypeError) from /usr/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ firefox.rb:194:in `set_browser_document' from /usr/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ firefox.rb:104:in `goto' from watir_script1.rb:4 If I install JSSH extension again then it run properly. So the problem is I have install the Jssh extension every time, i want to run the script. So please solve my problem as early as possible. Advanced thanks Prathibha -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com http://groups.google.com/group/watir-general%0Awatir-general+unsubscr... -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-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] Firefox 4 and Firewatir
If someone started building jssh for FF4 would watir keep using it? Why not? But the question is who will take the responsibility to build it? Also, JSSH code has to be updated in case there is change in the way extensions are build in Firefox. There was a change from Firefox 2.x to Firefox 3.x not sure about latest Firefox 4. If there is a change, we first need to update JSSH code and then build it. 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
Re: [wtr-general] Firewatir tests
I think you can't run the test cases from installation directory. For running the test cases you have to take entire source code. This is as per my knowledge till I last heard about testcases. Can somebody correct me here if I am wrong? - Angrez On Wed, Feb 2, 2011 at 5:35 AM, Nathan Ramsey nat...@janrain.com wrote: Should the unit tests for Firewatir be working? They're failing to load for me: /var/lib/gems/1.8/gems/firewatir-1.7.1/unittests$ ruby mozilla_all_tests.rb /var/lib/gems/1.8/gems/firewatir-1.7.1/unittests/setup.rb:14:in `require': no such file to load -- watir/browser (LoadError) from /var/lib/gems/1.8/gems/firewatir-1.7.1/unittests/setup.rb:14 from mozilla_all_tests.rb:3:in `require' from mozilla_all_tests.rb:3 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-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] Please help me with watir-ruby script
can you go through the unit tests for clicking javascript pop ups in firefox. It should be in [watir installation directory]/firewatir/unittests or something like this. - Angrez On Tue, Nov 16, 2010 at 6:26 PM, robin dsouza robin.so...@gmail.com wrote: I used this function def startClicker( button , waitTime = 3) w = WinClicker.new longName = ie.dir.gsub(/ , \\ ) shortName = w.getShortFileName(longName) c = start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button }#{ waitTime} puts Starting #{c} w.winsystem(c ) w=nil end and called the function when pop up was appeared startClicker(OK) which did not work.. it gave a error as C:/Rubyscripts/new/RegistrationFatcowIE_priya.rb:16:in `startClicker': uninitialized constant WinClicker (NameError) Do i have use different require for WinClicker for FireFox? On Tue, Nov 16, 2010 at 6:11 PM, Basim Baassiri ba...@baassiri.ca wrote: without any code that you've written or html, no one in this forum will be able to help other than refer you to the documentation http://watir.com/documentation/ On Tue, Nov 16, 2010 at 7:28 AM, Robin D'Souza robin.so...@gmail.comwrote: Please help me with code for javascript pop up confirmation box for Fire Fox to click OK button -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-generalwatir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Get Xpath of Element
For IE: You can use Internet Explorer Developer tool, its inbuilt in Internet Explorer 8. You can launch it by opening IE and then pressing F12 For Firefox: Firebug : https://addons.mozilla.org/en-US/firefox/addon/1843/ XPather : http://xpath.alephzarro.com/ Thanks, Angrez On Thu, Sep 23, 2010 at 2:27 PM, Danijel danijel.vuko...@gmail.com wrote: my probelm is tajt this element : table tr td Broj dokumenta div CT-1212/div /tr /table table can be fond on different divs div[1], div[2], or div[3], depends on messages which are showen in divs. When i found Broj dokumenta by xpath \\table\tr\td, i need to locate xpat path to identify value in div div CT-1212/div. that why i neeed whole xpath. br,Dani On 23 sep., 10:23, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 22, 2010 at 12:40 PM, Danijel danijel.vuko...@gmail.com wrote: I'm searching for elements for specified text. When i found this text- element i should get Xpath of this element to locate anoher element filled with Document Id . Is any possibility xpath of element? I am not sure I understand the problem. Please post sample HTML and Watir code. Watir has xpath support, if that is what you want to know: http://wiki.openqa.org/display/WTR/XPath If English is the problem, contact me in Croatian off list (if you speak Croatian). Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. 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] Jssh for Firefox 4.0 beta3
I think it's a good time for jssh to die +1 I'll try other alternatives. -- 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] Jssh for Firefox 4.0 beta3
Tried compiling it got the following error not sure how to resolve it. Any help will be appreciated. https://bugzilla.mozilla.org/show_bug.cgi?id=586869 http://stackoverflow.com/questions/3496925/firefox-jssh-build - Angrez On Wed, Aug 25, 2010 at 7:38 AM, Yuping Zhong littlezhong...@gmail.comwrote: Cool,good luck. On Tue, Aug 24, 2010 at 9:54 PM, Angrez Singh ang...@gmail.com wrote: I'll be working on it. It will take some time may be couple of days. Thanks, Angrez 2010/8/24 Željko Filipin zeljko.fili...@wa-research.ch On Tue, Aug 17, 2010 at 10:19 AM, al3kc aleks.kiev...@gmail.com wrote: Does any one has jssh for FF4.0? Not yet, as far as I know. All plugins are here: http://watir.com/installation/ Ž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] Jssh for Firefox 4.0 beta3
Yeah looks like ... lets keep our fingers crossed and hope for the best :). Need to find other way to interact with Firefox. - Angrez On Wed, Aug 25, 2010 at 6:43 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2010/8/25 Angrez Singh ang...@gmail.com Tried compiling it got the following error not sure how to resolve it. Looks like jssh finally died. ...it's not something we care about ( https://bugzilla.mozilla.org/show_bug.cgi?id=586869#c3) Ž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] Jssh for Firefox 4.0 beta3
I'll be working on it. It will take some time may be couple of days. Thanks, Angrez 2010/8/24 Željko Filipin zeljko.fili...@wa-research.ch On Tue, Aug 17, 2010 at 10:19 AM, al3kc aleks.kiev...@gmail.com wrote: Does any one has jssh for FF4.0? Not yet, as far as I know. All plugins are here: http://watir.com/installation/ Ž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.com
Re: [wtr-general] unable to find element using xpath
Hi Goutham, Please check the unit test cases for Watir you'll find example on how to access map/area element using XPath. It should be there in [ruby installation directory]\gems\1.8\firewatir-1.6.5\unittests. Thanks, Angrez On Mon, Aug 16, 2010 at 9:09 AM, goutham mandadi goutham.mand...@gmail.comwrote: hai basim, below is the code map name=nav area href=http://www.snapfish.com/snapfish/selectalbumreprints/; title= Order prints coords=9,53,113,72 area href=javascript:showShare() title= Share coords=131,52,187,71 /map how can we identify these elements by using xpath On Mon, Aug 16, 2010 at 12:20 AM, Basim Baassiri ba...@baassiri.cawrote: Hi Goutham You'll need to post some code and some html to illustrate better your problem On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.comwrote: hai all, i am using element_by_xpath to find an element in watir but browser is closing when i come to xpath step. does we need to install anything to find element using xpath . waiting for ur suggestions Thankyou, Goutham -- 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] Re: Help: cant get jSSH to work on windows 2003
Is the problem still there? Can you make sure you are installing JSSh using administrator privileges? - Angrez On Wed, Jul 21, 2010 at 2:18 AM, Eddie ed...@mattermedia.com wrote: No, there was no firewall. server used only IPsec, and even with IPsec OFF, i still had the problem. I solved it by using FF 3.5.10 (and xpi 3.5). The problem that I had then was: Win32::Registry::Error in ProcessController#index The system cannot find the file specified. RAILS_ROOT: V:/RoRapp Application Trace | Framework Trace | Full Trace C:/Ruby186/lib/ruby/1.8/win32/registry.rb:528:in `open' C:/Ruby186/lib/ruby/1.8/win32/registry.rb:608:in `open' C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ firefox.rb:1025:in `path_from_registry' C:/Ruby186/lib/ruby/1.8/win32/registry.rb:532:in `open' C:/Ruby186/lib/ruby/1.8/win32/registry.rb:608:in `open' C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ firefox.rb:1024:in `path_from_registry' C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ firefox.rb:993:in `path_to_bin' C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ firefox.rb:152:in `launch_browser' C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ firefox.rb:128:in `initialize' V:/RoRapp/app/controllers/process_controller.rb:31:in `new' V:/RoRapp/app/controllers/process_controller.rb:31:in `run_process' V:/RoRapp/app/controllers/process_controller.rb:9:in `index' which was solved by changing line 1025 of C:\Ruby186\lib\ruby\gems\1.8\gems\firewatir-1.6.5\lib\firewatir \firefox.rb to reg1 = lm.open(SOFTWARE\\Mozilla\\Mozilla Firefox\\Main) -- 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: Issue with accessing an Object in FireWatir
Hi Betsy, Its always easier for someone to help you if you post the relevant HTML code. That ways someone can use the HTML code on their machine to reproduce the issue and provide you with solution. Also, if there is a bug with Watir/Firewatir the same HTML code can be used for adding unit test cases. Thanks, Angrez On Mon, May 17, 2010 at 2:06 PM, Betsy joybe...@gmail.com wrote: Thanks Rajiv for the suggestion.. It did not work. I checked for the div and found that there was only one link in it. -Betsy Joy. On May 17, 1:32 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: Hi, did u try this? ff.div(:class,'roomInfo').link(:text = 'Book',:index = 1).click may be under div there are more than one link with same text On Mon, May 17, 2010 at 1:12 AM, Betsy joybe...@gmail.com wrote: Hi all, We have a strange issue with an object which is a div. ff.div(:class,'roomInfo').link(:text = 'Book').exists? returns true ff.div(:class,'roomInfo').link(:text = 'Book').click returns true but does not perform the required action ff.link(:text = 'Book', :index = 15).click returns true and performs the required action The same code ff.div(:class,'roomInfo').link(:text = 'Book').click works perfectly well with Watir. Can anyone shed some light on the possible reasons??? Waiting for a revert... -Betsy Joy -- 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 -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed tohttp:// groups.google.com/group/watir-general To post: watir-general@googlegroups.com 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] Issue with accessing an Object in FireWatir
Does the attached code works for you? - Angrez On Mon, May 17, 2010 at 7:50 PM, Wesley Chen cjq@gmail.com wrote: You have so much page source code. Is it better for other people to read your emails if you attach an attachment? Wesley. For life, the easier, the better. On Mon, May 17, 2010 at 8:55 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Monday, May 17, 2010, Betsy joybe...@gmail.com wrote: Can it be an issue with the code? Yes. Ž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 CLICK ME Link Inside Div div.rb Description: Binary data
Re: [wtr-general] Re: Issue with accessing an Object in FireWatir
Hi, You have to send us the relevant HTML to figure out the issue. Because as per the example I provided there is no issues with accessing elements inside div. Thanks, Angrez On Tue, May 18, 2010 at 9:35 AM, Betsy joybe...@gmail.com wrote: Hi Angrez, The code provided works fine for me. But my issue still persists.. :( -Betsy Joy On May 17, 7:24 pm, Angrez Singh ang...@gmail.com wrote: Does the attached code works for you? - Angrez On Mon, May 17, 2010 at 7:50 PM, Wesley Chen cjq@gmail.com wrote: You have so much page source code. Is it better for other people to read your emails if you attach an attachment? Wesley. For life, the easier, the better. On Mon, May 17, 2010 at 8:55 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Monday, May 17, 2010, Betsy joybe...@gmail.com wrote: Can it be an issue with the code? Yes. Željko -- 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 tohttp:// groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com div.html 1KViewDownload div.rb 1KViewDownload -- 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: Modal Dialog Boxes and FireWatir
Found the solution to this. Working on getting it to FireWatir. May take day or two. Thanks for your patience. Regards, Angrez On Thu, Apr 29, 2010 at 7:07 AM, Lonny Eachus lon...@gmail.com wrote: I have had some success dealing with the modal download window in Firefox on the Mac, using AppleScript. It was designed specifically for that, and so is not very generic at the moment. But if anyone is interested I could work on it a little more to make it more general- purpose, and submit it here for comment. Please let me know. -- 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: Modal Dialog Boxes and FireWatir
Busy with office work. Will surely come with a solution .. patience is the key - Angrez On 4/27/10, Betsy joybe...@gmail.com wrote: Still waiting for a way out!!! :( -Betsy Joy On Apr 26, 4:06 pm, Betsy joybe...@gmail.com wrote: Hi Angrez, The Function code that generates the modal dialog box is as below:- function putComments() { var val=; // it does not allow to close the window until comment is entered while(val== || val==null) { if (window.showModalDialog){ val=showModalDialog(comments.jsp,window,dialogHeight: 230px; dialogWidth: 370px; dialogTop: 200px; dialogLeft: 304px; edge: Sunken; center: Yes; help: No; resizable: Yes; status: No;); }else{ val= Due to browser restriction we can not take the comment. } } document.forms[0].txtComment.value=val; } I have a Button which calls a submit function which in turn results in an OK-Cancel popup. As soon as the user clicks on Ok, the modal dialog shows up where the user has to type in some comments and click on save. This in turn initiates a simple OK popup. I need to attach to this modal dialog and perform the required actions as well as handle all the popups on the way... Thanks a lot.. -Betsy Joy. On Apr 26, 3:21 pm, Angrez Singh ang...@gmail.com wrote: Hi, Can you please separate out that modal code and send us a sample HTML? I'll look into it and try to get some solution. I know handling pop ups is bit tricky and most of the times people face this problem. I'll highly appreciate if you can separate out some code and send that to the list. Thanks, Angrez On Mon, Apr 26, 2010 at 12:12 PM, Betsy joybe...@gmail.com wrote: Hi all, Would like to have some insight on handling modal dialog boxes with firewatir... Though the below link is old:- http://wiki.openqa.org/display/WTR/FireWatir+Release+Notes It saysModal Dialog is not supported on Firefox, so it is not supported by FireWatir as well. Need to check if there are any alternatives methods available to support modal dialog on Firefox browser. But to my not so pleasant surprise the modal dialog box on my application works perfectly well on mozilla too... What to do??? -Betsy Joy -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed tohttp://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed tohttp://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 -- 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] Modal Dialog Boxes and FireWatir
Hi, Can you please separate out that modal code and send us a sample HTML? I'll look into it and try to get some solution. I know handling pop ups is bit tricky and most of the times people face this problem. I'll highly appreciate if you can separate out some code and send that to the list. Thanks, Angrez On Mon, Apr 26, 2010 at 12:12 PM, Betsy joybe...@gmail.com wrote: Hi all, Would like to have some insight on handling modal dialog boxes with firewatir... Though the below link is old:- http://wiki.openqa.org/display/WTR/FireWatir+Release+Notes It saysModal Dialog is not supported on Firefox, so it is not supported by FireWatir as well. Need to check if there are any alternatives methods available to support modal dialog on Firefox browser. But to my not so pleasant surprise the modal dialog box on my application works perfectly well on mozilla too... What to do??? -Betsy Joy -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
Re: [wtr-general] Re: How to use the Firewatir in Mac
wrote: are u starting firefox in the following way Start Firefox with jssh /Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh hope that helps On Tue, Apr 6, 2010 at 9:47 PM, Eric Mathiesen mathiese...@gmail.comwrote: Your system administrator should, it's specific to the environment. On Tue, Apr 6, 2010 at 8:35 PM, Yuping Zhong littlezhong...@gmail.comwrote: Can you tell me what is the correct network settings??? On Wed, Apr 7, 2010 at 11:31 AM, Eric Mathiesen mathiese...@gmail.comwrote: That's a connection error on your local loopback. Check your network settings. On Tue, Apr 6, 2010 at 8:28 PM, Yuping Zhong littlezhong...@gmail.com wrote: What is more, I run telnet localhost 9997 and get the following: $ telnet localhost 9997 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host On Wed, Apr 7, 2010 at 11:23 AM, Yuping Zhong littlezhong...@gmail.com wrote: Thank Angrez's reply.But I still get the following issue: irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 ff=FireWatir::Firefox.new RuntimeError: Firefox is running without -jssh from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb: 125:in `initialize' from (irb):3:in `new' from (irb):3 I do as above in Windows,it is fine.But it is fail in Mac. Bt the way,here is my Mac OS and firefox version: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Anyone who uses the firewatir in Mac OS 10.6 can give a help? Thanks in advance! On Tue, Apr 6, 2010 at 7:16 PM, Angrez Singh ang...@gmail.com wrote: Please follow the instructions here for using FireWatir: http://wiki.openqa.org/display/WTR/FireWatir#FireWatir-Installation On Tue, Apr 6, 2010 at 3:13 PM, Yuping Zhong littlezhong...@gmail.com wrote: Dear All, I already install the firewatir and jssh-3.6-OSX. But it is fail to use the firefox in Mac.It display the strange error: RuntimeError: Firefox is running without -jssh But I already install the jssh. Here the steps: irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 Watir::Browser.default = firefox = firefox irb(main):004:0 ff = Watir::Browser.start( http://www.google.com ) RuntimeError: Firefox is running without -jssh from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb: 125:in `initialize' from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb: 163:in `new' from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb: 163:in `start' from /usr/local/lib/ruby/gems/1.8/gems/commonwatir-1.6.5/lib/watir/browser.rb:71 :in `start' Any idea? Thanks! -Zhong -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: ... read more » -- 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, reply using remove me as the subject. -- Before posting
Re: [wtr-general] Re: Basic Authentication using FireWatir on Ubuntu Linux
Thanks that was the commit. Will get that and add unit test cases and then merge it to master. On Tue, Apr 6, 2010 at 8:13 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Apr 6, 2010 at 3:20 PM, Angrez Singh ang...@gmail.com wrote: You got it correct, i couldn't find it on my local repository. Yes I did push it to github. Is this the commit? http://github.com/angrez/watir/commit/f4cb4c22a5c7cc2ee4fa1ba81d6e972cb7d34de0 You can grab that repository to your machine with this: git clone g...@github.com:angrez/watir.git Let me know if you need help with git. Ž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 -- 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, reply using remove me as the subject.
Re: [wtr-general] How to use the Firewatir in Mac
Please follow the instructions here for using FireWatir: http://wiki.openqa.org/display/WTR/FireWatir#FireWatir-Installation On Tue, Apr 6, 2010 at 3:13 PM, Yuping Zhong littlezhong...@gmail.comwrote: Dear All, I already install the firewatir and jssh-3.6-OSX. But it is fail to use the firefox in Mac.It display the strange error: RuntimeError: Firefox is running without -jssh But I already install the jssh. Here the steps: irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 Watir::Browser.default = firefox = firefox irb(main):004:0 ff = Watir::Browser.start(http://www.google.com;) RuntimeError: Firefox is running without -jssh from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:125:in `initialize' from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:163:in `new' from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:163:in `start' from /usr/local/lib/ruby/gems/1.8/gems/commonwatir-1.6.5/lib/watir/browser.rb:71:in `start' Any idea? Thanks! -Zhong -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
Re: [wtr-general] Re: Basic Authentication using FireWatir on Ubuntu Linux
I have added the basic authentication to Firewatir in my fork, but right now not able to find the code in my local environment. Is there a way to get it back? On Tue, Apr 6, 2010 at 3:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Sat, Apr 3, 2010 at 2:20 AM, lothar lotharsm...@gmail.com wrote: With help from Aedorn Varanis I've got things working on Firefox in Linux. Would you please add your solution to http://wiki.openqa.org/display/WTR/Basic+Authentication wiki page? Please let me know if you need help with the wiki. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
Re: [wtr-general] Re: Basic Authentication using FireWatir on Ubuntu Linux
You got it correct, i couldn't find it on my local repository. Yes I did push it to github. On Tue, Apr 6, 2010 at 4:55 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Apr 6, 2010 at 1:19 PM, Angrez Singh ang...@gmail.com wrote: I have added the basic authentication to Firewatir in my fork, but right now not able to find the code in my local environment. I do not understand the problem. You remember you have worked on the code, but you can not find it in your local git repository? Did you push it to github? Ž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 -- 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, reply using remove me as the subject.
Re: [wtr-general] Re: Firefox delays on every link clicked
It would be difficult to help without looking at the HTML to find out the cause of the delays. On Thu, Feb 25, 2010 at 7:42 PM, terevos tere...@gmail.com wrote: Unfortunately, I cannot post the HTML code or give you a link. The site is for a government contract. I've tried the same general code on something like Slashdot.org to login and had no problems with delays. On Feb 25, 2010, at 1:43 AM, Angrez Singh wrote: can you post the HTML code? or a link to website you are testing so that we can have a look at it. - Angrez On Wed, Feb 24, 2010 at 11:53 PM, terevos tere...@gmail.com wrote: These are my environments: (same problem happening on both) -- Mac: 10.5.8 Ruby 1.8.6 and gem 1.3.5. Firewatir is 1.6.5 on Firefox 3.5.8 safariwatir is 0.3.7 on Safari 4.0.4 -- Linux: Ubuntu 8.04 Ruby 1.8.6 and gem 1.3.6 Firewatir is 1.6.5 on Firefox 3.0.17 -- 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.comwatir-general%2bunsubscr...@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 -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: Firefox delays on every link clicked
can you post the HTML code? or a link to website you are testing so that we can have a look at it. - Angrez On Wed, Feb 24, 2010 at 11:53 PM, terevos tere...@gmail.com wrote: These are my environments: (same problem happening on both) -- Mac: 10.5.8 Ruby 1.8.6 and gem 1.3.5. Firewatir is 1.6.5 on Firefox 3.5.8 safariwatir is 0.3.7 on Safari 4.0.4 -- Linux: Ubuntu 8.04 Ruby 1.8.6 and gem 1.3.6 Firewatir is 1.6.5 on Firefox 3.0.17 -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Difference in behaviour of .text method in Watir and FireWatir.
There was another thread on the same issue by somebody else also. The thing is both IE and Firefox implements the 'text' method for elements in different ways. What I would suggest is if you can go and match the HTML content. Let me know if that works. Thanks, Angrez On Wed, Feb 10, 2010 at 1:03 PM, Betsy joybe...@gmail.com wrote: Hi Angrez, We have a scenario wherein we need to confirm the presence of a particular text string on a page. String as it appears on screen = New Delhi to Mumbai Html = bNew Delhi/b to bMumbai/b String returned by .text in Watir = New Delhi to Mumbai String returned by .text in FiewWatir = New Delhi to Mumbai Due to this difference in the behaviour of .text, my validation fails everytime I try doing a ff.text.include? New Delhi to Mumbai in FireWatir. There is a Jira ticket already open with regard to the .text method for FireWatir. Could you please let us know if this newline is being introduced due to the presence of formatting tags and if so is it limited to Formatting tags only? Thanks in advance, Betsy Joy -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: Firewatir cannot find an element on the page
When I went to the website it is asking for username password? How to move forward? Can you tell me the steps on how to go to the page where you are experiencing the problem in finding the element? Thanks, Angrez On Tue, Feb 9, 2010 at 11:34 PM, QAguy qablogm...@gmail.com wrote: Ok on the folder page if you select a video via a checkbox select and click the move option this is being invoked: li span class=tiny_dot nbsp; /span a onfocus=if(this.blur)this.blur(); onclick=MOBX.Modal.show('move', { folder_id: 706027, verbose: true}); return false; href=#Move/a /li This opens the modal window with the following code: div class=motionbox_content id=modal_dialog_1265738543319_content style=overflow: auto; height: 400px; width: 700px;div class=motionbox_message id=modal_dialog_messagediv class=modal_header div class=modal_header_buttons a href=javascript:MOBX.Folders.restoreStateAndCloseWindows() class=button tool tool_button cancel span class=left /span span class=button Cancel /span span class=right /span /a /div h3 Move Video(s) /h3 p Move selected video(s) to another folder. (1 videos selected) /p /div div class=modal_contents form onsubmit=if($F('destination_folder') lt; 2){return false;} method=post id=modal_form action=/filings/movefieldset label class=select_field for=destination_folderMove to an existing folder:/label select name=destination_folder id=destination_folder option value=Choose a folder.../option option value= /option option value=706025My First Folder 02/05/10/option /select input type=hidden value=1 name=filings[576839] id=filings[576839] input type=hidden value=706027 name=current_folder_id id=current_folder_id div class=submit button value= type=submit name=submit_button class=tool tool_button move_button span class=left /span span class=button Move /span span class=right /span /button a onclick=MOBX.Folders.restoreStateAndCloseWindows(); return false; href=# class=blockCancel and close this window./a /div /fieldset /form div id=errors/div form onsubmit=new Ajax.Request('/folders', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false; method=post id=create_folder action=/foldersdiv class=itemlabel for=folder_name class= text_fieldOr, move to a new folder:/labelinput type=text size=30 name=folder[name] id=folder_name class=text_field/div div class=submit button value= type=submit name=submit_button class=tool tool_button create_and_move_button span class=left /span span class=button Create and Move /span span class=right /span /button a onclick=MOBX.Folders.restoreStateAndCloseWindows(); return false; href=# class=blockCancel and close this window./a /div input type=hidden value=1 name=filings[576839] id=filings[576839] /form/div /div/div I'm trying to enter a value to create a new folder to move the video to and then clicking the submit button to execute. In Safariwatir, the value is entered into the text filed but the submit button is simply highlighted in yellow and not followed. When using firewatir I cannot get any data entered into the text field due to the issue explained above in this thread. Does this help clarify this issue? Thanks On Feb 5, 11:33 pm, Yuping Zhong littlezhong...@gmail.com wrote: Hi, Can you give more info that how to go to the folder page? Right now,I don't know how to flow to that page. Thanks! -Zhong On Fri, Feb 5, 2010 at 11:35 PM, QAguy qablogm...@gmail.com wrote: Yes.www.motionbox.com Modals are on the folder pages. On Feb 5, 3:08 am, Angrez Singh ang...@gmail.com wrote: Is it something that we can see online? I mean is there a website on which you are testing? On Fri, Feb 5, 2010 at 3:30 AM, QAguy qablogm...@gmail.com wrote: The first on didn't work. I tried the second one you provided: browser.div(:for, folder_name).text_field(:id,folder_name).set(Watir test folder) and I got this error: JsshSocket::JSSyntaxError in 'Check folder page menu options and modals should allow the user move the video to a newly created folder' missing ; before statement I also tried browser.div(:class, item).text_field(:id,folder_name).set(Watir test folder) and got the same error. Here is the div code: div class=itemlabel for=folder_name class= text_fieldOr, move to a new folder:/labelinput type=text size=30 name=folder[name] id=folder_name class=text_field/div Does anyone know what this error is? Thanks On Feb 2, 4:56 pm, Super Kevy kpe...@scholarshipamerica.org wrote: try browser.text_field
[wtr-general] Re: Difference in behaviour of .text method in Watir and FireWatir.
What differences do you see when you use the .HTML method? - Angrez On Wed, Feb 10, 2010 at 2:51 PM, Betsy Joy joybe...@gmail.com wrote: Hi Angrez, Thanks for the suggestion. If it is the thread by Pallavi that your referred to, well we are together trying to use Firewatir and Watir for Automation. Initially we had used the .html method for the Text verification process on the page, but that did not work for us since it was returning extra portions of malformed tags which was corrupting our results. And so we migrated to using .text method instead. Now that even this is giving us trouble, we are trying to build a wrapper around this method to be able to mimic the .text method of Watir. Kindly let us know if this behaviour of introducing newline characters is limited to formatting tags or is it something deeper? This information will help us to decide if and how we could build the wrapper we require. Have a nice day !! Thanks and Regards, Betsy Joy. On 10 February 2010 13:30, Angrez Singh ang...@gmail.com wrote: There was another thread on the same issue by somebody else also. The thing is both IE and Firefox implements the 'text' method for elements in different ways. What I would suggest is if you can go and match the HTML content. Let me know if that works. Thanks, Angrez On Wed, Feb 10, 2010 at 1:03 PM, Betsy joybe...@gmail.com wrote: Hi Angrez, We have a scenario wherein we need to confirm the presence of a particular text string on a page. String as it appears on screen = New Delhi to Mumbai Html = bNew Delhi/b to bMumbai/b String returned by .text in Watir = New Delhi to Mumbai String returned by .text in FiewWatir = New Delhi to Mumbai Due to this difference in the behaviour of .text, my validation fails everytime I try doing a ff.text.include? New Delhi to Mumbai in FireWatir. There is a Jira ticket already open with regard to the .text method for FireWatir. Could you please let us know if this newline is being introduced due to the presence of formatting tags and if so is it limited to Formatting tags only? Thanks in advance, Betsy Joy -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] FireWatir doesn't wait for the page to load after clicking a button
This type of syntax is not yet supported by FireWatir. Also, multiple attributes are not yet supported. Thanks, Angrez On Wed, Feb 10, 2010 at 3:08 PM, Logic Bomb januwa...@yahoo.com wrote: Hi, I need help regarding this issue with FireWatir. This is just a simple program but I always receive this error: C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ element.rb:907:in `assert_exists': Unable to locate element, using {:text=Google Groups} (Watir::Exception::UnknownObjectException) from C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ element.rb:1066:in `click' from Demo_Firefox.rb:9 See my code below: require 'rubygems' require 'firewatir' $Browser = FireWatir::Firefox.new $Browser.goto 'http://www.google.com.ph' $Browser.text_field(:name = 'q', :title = 'Google Search').set 'Google Groups' $Browser.button(:name = 'btnG', :type = 'submit').click $Browser.link(:text = 'Google Groups').click Thanks, Logic Bomb -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: Watir ads at stackoverflow.com
Same 15 reputation required. I created stackoverflow account and then associated it with meta.stackoverflow account but didn't get 100 reputation. Željko, Any ideas? On Mon, Feb 8, 2010 at 3:02 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Feb 5, 2010 at 1:13 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Want to see Watir ads on stackoverflow.com? This answer needs five upvotes. Current status: 0/5. http://bit.ly/djPPfj Current status: 3/5 (60%). Two more votes. Ž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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: Questiona about Watir in Mac with Firefox 3.6
I think you need to install the JSSh plugin in Firefox 3.5 as Administrator. Can you make sure you have installed the plugin with administrator privileges. - Angrez On Sat, Feb 6, 2010 at 1:22 PM, Alister Scott alister.sc...@gmail.comwrote: Hi, You can use Firefox 3.5 until someone compiles the JSSH add-on for OSX. Alternatively you can take a look at SafariWatir: http://github.com/redsquirrel/safariwatir Cheers, Alister Scott -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: Firewatir cannot find an element on the page
Is it something that we can see online? I mean is there a website on which you are testing? On Fri, Feb 5, 2010 at 3:30 AM, QAguy qablogm...@gmail.com wrote: The first on didn't work. I tried the second one you provided: browser.div(:for, folder_name).text_field(:id,folder_name).set(Watir test folder) and I got this error: JsshSocket::JSSyntaxError in 'Check folder page menu options and modals should allow the user move the video to a newly created folder' missing ; before statement I also tried browser.div(:class, item).text_field(:id,folder_name).set(Watir test folder) and got the same error. Here is the div code: div class=itemlabel for=folder_name class= text_fieldOr, move to a new folder:/labelinput type=text size=30 name=folder[name] id=folder_name class=text_field/div Does anyone know what this error is? Thanks On Feb 2, 4:56 pm, Super Kevy kpe...@scholarshipamerica.org wrote: try browser.text_field(:for, folder_name).set('Watir test folder') or you may need to set the div element in the object: browser.div(:id,whateveritis).text_field(:id,folder_name).set (Watir test folder) On Feb 2, 10:29 am,QAguyqablogm...@gmail.com wrote: I am trying to enter data into a modal window from my site. Here is the site code: label class= text_field for=folder_nameOr, move to a new folder:/labelinput class=text_field id=folder_name name=folder [name] size=30 type=text To enter data into the text_field I do: browser.text_field(:id, folder_name).set('Watir test folder') This works fine in safariwatir but in firewatir I get the following error: Unable to locate element, using :id, folder_name Does anyone know what would cause this? Is it because this is a site modal? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] row_count usage
row_count() is a method that you can use on Table object and not on Firefox object. So correct usage is : $browser.table(id:, 'table id').row_count() On Fri, Feb 5, 2010 at 7:17 AM, Naga ravikus...@gmail.com wrote: Hello, I get the following error when trying to get the row count in a browser. puts $browser.row_count() 1) Error: test_print_assertion(TC_MyTest1): NoMethodError: undefined method `row_count' for #FireWatir::Firefox: 0xb7b33cbc test2.rb:94:in `test_print_assertion' Please help me here. Thanks, Naga -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Do Send_Keys works in Mac???
As of now, FireWatir doesn't support send_keys method. On Tue, Feb 2, 2010 at 4:18 PM, Yuping Zhong littlezhong...@gmail.comwrote: Dear, I try to use the Send_Keys in Mac,just as in windows,but looks like it doesn't work. Do Safariwatir or Firewatir support this function in Mac?If so,how to do that? Thanks in advance. -Zhong -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Firewatir cannot find an element on the page
What do you mean by site modal? Is the text_field inside frame? On Tue, Feb 2, 2010 at 9:59 PM, QAguy qablogm...@gmail.com wrote: I am trying to enter data into a modal window from my site. Here is the site code: label class= text_field for=folder_nameOr, move to a new folder:/labelinput class=text_field id=folder_name name=folder [name] size=30 type=text To enter data into the text_field I do: browser.text_field(:id, folder_name).set('Watir test folder') This works fine in safariwatir but in firewatir I get the following error: Unable to locate element, using :id, folder_name Does anyone know what would cause this? Is it because this is a site modal? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] .text method in Watir and FireWatir
Surely, will look into this. Can you open a JIRA ticket for the same? On Tue, Feb 2, 2010 at 11:26 AM, Betsy joybe...@gmail.com wrote: The .text method returns the complete text of an object including the text of the child objects if any in watir but in FireWatir, the same method behaves differently by returning only the text of the object itself without the text of the Child Objects. Please let us know how to handle this difference in behavior. Thanks, Betsy Joy. -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Firewatir rpxnow
Can you post the HTML code? Also, is this link is inside the FRAME? On Tue, Jan 26, 2010 at 6:50 PM, Gimle toni.k.aittoni...@gmail.com wrote: Hello all. I have a question regarding accessing the elements in remote-javascript generated content on a page. It would appear that these created elements are not accessible with firewatir at all. I tried both tagged elements and xpath, but no matches for elements within rpxnow's javascript-generated content can be found. Example : RPX now's not you? link ff.link(:class, not_you).exists? # -- should return true, but doesn't ff.span(:text, not you?).exists? # -- also false ff.link(:xpath, //a...@class='not_you']/span).exists? # -- Doesn't return true ff.link(:xpath, //a...@class='not_you']/).exists? # -- jSSH doesn't like this formatting on an xpath Is this a known problem, or am I just not doing it right? I am using Ruby 1.8.6 via Netbeans 6.8, Firewatir 1.6.5 and Firefox 3.0.17 -Toni -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Firefox 3.6
I'll post the updated JSSh XPI soon on watir list. Thanks, Angrez On Fri, Jan 22, 2010 at 7:32 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jan 22, 2010 at 2:38 PM, al3kc aleks.kiev...@gmail.com wrote: FF3.6 was realized yesterday. Any plans for jssh on new version? http://bit.ly/4vKlnY Ž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 -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: fire_event not fired in firewatir
There is unittest which does the same it works. Which FireWatir version are you using? On Mon, Jan 18, 2010 at 7:14 PM, ad codetest...@gmail.com wrote: I included this function in the class Element inside the module FireWatir. When I debugged my script I see that this function is never called. Is there any other way around this? On Jan 16, 4:46 pm, abhinay abhinay.me...@gmail.com wrote: Yes there is a bug in firewatir, add this to your code and see if it works: class FireWatir::Element def window_var window end end I'm not sure if it's the same issue that I was having but give it a shot. I'm going to submit a patch for this problem anyway. On Jan 15, 9:05 pm, ad codetest...@gmail.com wrote: Hi, I am trying to fire an event in firewatir. Basically, there is a text field. Any key event in the text field, e.g. spacebar, enables a button. ff.text_field(:id,ok).set xyz doesnt enable the button neither does ff.text_field(:id,ok).fire_event(onkeypress) I modified the element.rb file to send a spacebar keycode when fire_event(onkeypress) is fired. dom_event_init = initKeyEvent(\keypress\, true, true, # {...@container.window_var}, false , false , false , false ,0, 32) it does send the spacebar to the text field but the button is not enabled. Is this a bug in firewatir? -ad -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Linux Firefox/JSSH issue
Not in watir-webdriver but in FireWatir. On Tue, Jan 19, 2010 at 1:03 AM, Aedorn Varanis aed...@gmail.com wrote: Unit tests in watir-webdriver? On Sun, Jan 17, 2010 at 11:59 PM, Angrez Singh ang...@gmail.com wrote: For clicking javascript popup there are methods which does the same. You can go ahead and see the unit tests for the same. - Angrez On Sat, Jan 16, 2010 at 1:40 AM, Aedorn Varanis aed...@gmail.com wrote: Is there a way to click javascript popup window buttons? I see no click_no_wait command, or a startClicker like in FireWatir. If there's a way to do that then I can pretty much just use this driver. On Fri, Jan 15, 2010 at 9:57 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jan 15, 2010 at 5:18 PM, Aedorn Varanis aed...@gmail.com wrote: But does this work in Linux and with FireWatir? Yes. Since I am not home with Linux, I needed some help from Jari to install ruby and rubygems, but watir-webdriver drives Firefox on Ubuntu just fine (tried it a minute ago). Ž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 -- 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 -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Linux Firefox/JSSH issue
For clicking javascript popup there are methods which does the same. You can go ahead and see the unit tests for the same. - Angrez On Sat, Jan 16, 2010 at 1:40 AM, Aedorn Varanis aed...@gmail.com wrote: Is there a way to click javascript popup window buttons? I see no click_no_wait command, or a startClicker like in FireWatir. If there's a way to do that then I can pretty much just use this driver. On Fri, Jan 15, 2010 at 9:57 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jan 15, 2010 at 5:18 PM, Aedorn Varanis aed...@gmail.com wrote: But does this work in Linux and with FireWatir? Yes. Since I am not home with Linux, I needed some help from Jari to install ruby and rubygems, but watir-webdriver drives Firefox on Ubuntu just fine (tried it a minute ago). Ž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 -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] How do I submit a patch?
Which FireWatir version are you using? It has been fixed in 1.6.5 - Angrez On Sun, Jan 17, 2010 at 3:11 AM, abhinay abhinay.me...@gmail.com wrote: The class FireWatir::Element is missing the following method: def window_var window end Without this method I couldn't fire mouse events to elements that had another element as the container. -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: XPath Support in Frame
Hi Kunal, I didn't get enough time to look into the issue. I'll surely get something done this week end. - Angrez On Fri, Jan 15, 2010 at 10:22 AM, Kunal kunal...@gmail.com wrote: Yes. That's what it looks right now. Question is - Can this be supported? May be Angrez can throw some light. -Kunal On Jan 15, 6:20 am, Wesley Chen cjq@gmail.com wrote: I think the xpath is not supported when in a frame. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 14, 2010 at 10:04 PM, Kunal kunal...@gmail.com wrote: Hi Angrez, Do you think this issue can be solved ? -Kunal On Jan 11, 12:33 pm, Wesley Chen cjq@gmail.com wrote: I met with this kind of problem, too. In fact, when I user IE developer toolbar to access the web page with the source code above, the IFRAME won't expand. The IFrame is with src attributes, it points to the other place, which crosses the domain, so we have no access. Thanks. Wesley Chen. For life, the easier, the better. On Mon, Jan 11, 2010 at 2:36 PM, Angrez Singh ang...@gmail.com wrote: Thanks a lot for the HTML source .. it is sufficient. Will look into the issue and resolve it. - Angrez 2010/1/9 Kunal kunal...@gmail.com Well, the HTML doc is quite big! You would not want to dig into that ;) Anyways I tried to remove most of the redundant things and the skeleton HTML does look something like as below html head /head body div Some content here /div iframe src=http://dummy-url; html body div id=test-1 Test test div id=test-2 /div span id=test-span-1 lkdsjlakjds /span span id=Root-Node /span /div /body /html /iframe /body /html If this helps, great. If you need more information, please let me know. -Kunal On Jan 9, 6:48 pm, Angrez Singh ang...@gmail.com wrote: I'll look into this .. above should work .. meanwhile can you send me the HTML you are using? - Angrez On Sat, Jan 9, 2010 at 3:18 PM, Kunal kunal...@gmail.com wrote: No. They don't. See the error which I get, If I try to do something like that. irb(main):025:0 browser.frame( :id, test-339 ).span( :xpath, //span [...@text='Root Node'] ).focus NoMethodError: undefined method `element_by_xpath' for #Watir::Frame: 0x32f24f4 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ non_control_elements.rb:20:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:49:in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:284:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:56:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:266:in `focus' from (irb):25 On Jan 8, 3:45 pm, Angrez Singh ang...@gmail.com wrote: Correct as Željko said it should work? On Fri, Jan 8, 2010 at 3:59 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jan 8, 2010 at 11:15 AM, Kunal Kumar kunal...@gmail.com wrote: $ie.frame(:index, 3).span( :xpath, //d...@id='test']/../span ).click would fail with error. That should work. What error do you get? Take a look: http://wiki.openqa.org/display/WTR/XPath ...you can access frames using the attributes that Watir provides but you can't use *xpath* attribute for accessing frames... Željko -- watir.com - community manager watirpodcast.com - host -- 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
Re: [wtr-general] Re: Reading HTML objects CSS properties in Firefox
Wonderful .. can you create a patch and send to it? Or you can create a JIRA ticket for the same and send this code in comment. will add this to FireWatir. Thanks, Angrez On Wed, Jan 13, 2010 at 3:09 PM, basu bas.go...@gmail.com wrote: I tried something like this , it works for me :) class FireWatir::Element def css_color() assert_exists jssh_command = var obj = #{element_object}; var val = document.defaultView.getComputedStyle(obj,null).getPropertyValue ('color');val; jssh_socket.send(#{jssh_command}\n, 0) read_socket() end end On Jan 12, 6:19 pm, basu bas.go...@gmail.com wrote: Hi, For IE , i can retrieve CSS properties of a HTML object say link as link.document.CurrentStyle.color , is there any way to read CSS properties in Firefox? Thanks - Basu -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Automatic Updates of Mozilla Firefox
I agree its bit difficult with updates. But there will be a compatible JSSh xpi for Firewatir (atleast on windows) as soon as a new version comes. You can check the latest Jssh XPI at: http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-2%29InstalltheJSSHFirefoxExtension Let me know if this helps. - Angrez On Wed, Jan 6, 2010 at 12:09 PM, Betsy joybe...@gmail.com wrote: Mozilla Firefox updates itself automatically. Hence if we set up a suite of Test cases for execution on FireWatir, it fails after a few test cases as Firefox updates itself and FireWatir fails to execute successfully due to the absence of the related jssh of the new version of Firefox. Even if we try to turn off the Automatic updates of Firefox, it does update itself. How can we overcome this issue for the successful execution of the Test suite??? -Thanks Betsy Joy -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir
The difference you see in HTML is because Watir returns outerHTML for an element and FireWatir returns innerHTML for element. Can you log a bug in JIRA so that we can track this in next release? - Angrez On Mon, Jan 4, 2010 at 3:44 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Angrez As we were trying at our end we thought of this solution, which is right now breakable but nevertheless here it is: There is an output of FireWatir in form of HTML and TEXT. The HTML output will contain br tag, so we create an array by splitting the html on the br tag and then do a text include check with the .text output. Whatever matches we forcefully amend a new line to the end of the text, concatenate it and we are done. But our solution is right now breakable. I am mailing you a sample script for you to look into it and help me with it please. Sample.rar is breakable, the other one is not. Rgds Pallavi. On Mon, Jan 4, 2010 at 10:31 AM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Angrez Another point we noted is as follows: If we take the .html in watir and FireWatir they return different outputs. We are thinking if we can directly use the BR tag for splitting. Attaching the script and output for your reference. require 'watir' require 'firewatir' #To Open Url in Internet Explorer ie=Watir::IE.new #To Open Url in Mozilla Firefox #ie=FireWatir::Firefox.new #To open url ie.goto('http://www.makemytrip.co.in') #To reach the required page ie.select_list(:id,'selorigin').set('Bangalore') ie.select_list(:id,'seldestination').set('Delhi') ie.text_field(:id,'txtdeptDateOway').set('17/02/2010') ie.image(:alt,'Search for Flight').click #To get the output of .html puts ie.cell(:class,'white-header-promotions').html Regarding the first solution of splitting the output using “br”, even the “.html” method does not return the exact same output in Watir and FireWatir. Please find attached the script that illustrates this difference as well as the screenshot of the Object taken for reference. Output:- *Watir-* TD class=white-header-promotions align=middleIMG src=images/flightimg/goAir.gif border=0BRGo AirBRG8-372BRIMG onmouseover=showRating('ratingDiv','-1','-1','-1','-1','-1','-1','-1') onmouseout=hideRating() src=images/spacer.gif/IMG/TD FireWatir- img src=images/flightimg/goAir.gif border=0brGo AirbrG8-372brimg src=images/spacer.gif onmouseout=hideRating() onmouseover=showRating('ratingDiv','-1','-1','-1','-1','-1','-1','-1') Kindly look into it. Regards Pallavi. On Sat, Jan 2, 2010 at 10:30 AM, Pallavi Sharma write2pall...@gmail.comwrote: Sure Angrez, Let me know if there is any help I could provide or research on. Thanks for looking into the issue once again and wish you a happy new year. Rgds Pallavi. On Thu, Dec 31, 2009 at 3:31 PM, Angrez Singh ang...@gmail.com wrote: The thing is this even if I add line break for br tag while fetching text, it might still break somewhere else. So, let me see if something is possible to make then look similar. - Angrez On Thu, Dec 31, 2009 at 3:02 PM, Pallavi Sharma write2pall...@gmail.com wrote: I agree with you Angrez, about seeing the same thing differently, but when we are coding in gem would it be a good idea to forcefully insert a line break or remove a line break when we are trying to fetch the text? so as to make the results similar for watir, firewatir and other browser version of watir? Is it this what you would do? Rgds Pallavi. On Thu, Dec 31, 2009 at 2:50 PM, Angrez Singh ang...@gmail.comwrote: For benefit of others I am adding watir-general group as well. http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent If you see the standards for getting the text of body element i.e. using the function textContent, text should be returned by combining the text of all the elements that are child node of the element for which you want the text. Now for br element the text is empty string so it doesn't introduce a line break. Its not a bug in Firefox its as per the standards. In IE, we use innerText function which is not per the standard and it does introduce a line break when you get text. Issue is not which browser is following the standards and which is better, issue is both of them see's the things differently and return different text. - Angrez On Thu, Dec 31, 2009 at 2:20 PM, Krishna saradka krishna.sara...@gmail.com wrote: Dear Angrez, I'm little confused. Using a ,br. tag in html should break the line and move the follwoing text to the next line. Currently as per the original posted question on this thread, she is pointing out that the output of firewatir in this case is different. Which is instead of the line break it is introducing just a space. Where as while using IE [watir instead of firewatir] she is getting the desired result. While going over the below link, I understand that FF had a bug
Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir
For benefit of others I am adding watir-general group as well. http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent If you see the standards for getting the text of body element i.e. using the function textContent, text should be returned by combining the text of all the elements that are child node of the element for which you want the text. Now for br element the text is empty string so it doesn't introduce a line break. Its not a bug in Firefox its as per the standards. In IE, we use innerText function which is not per the standard and it does introduce a line break when you get text. Issue is not which browser is following the standards and which is better, issue is both of them see's the things differently and return different text. - Angrez On Thu, Dec 31, 2009 at 2:20 PM, Krishna saradka krishna.sara...@gmail.comwrote: Dear Angrez, I'm little confused. Using a ,br. tag in html should break the line and move the follwoing text to the next line. Currently as per the original posted question on this thread, she is pointing out that the output of firewatir in this case is different. Which is instead of the line break it is introducing just a space. Where as while using IE [watir instead of firewatir] she is getting the desired result. While going over the below link, I understand that FF had a bug in it and it was not treating the br tag appropriately if the following text also continues in the same line in html code. This is observed while using textContext. Thanks Regards, KK On Thu, Dec 31, 2009 at 12:55 PM, Angrez Singh ang...@gmail.com wrote: Actually for your HTML code the result returned by Firewatir is as per the W3C standard. Check this link: https://bugzilla.mozilla.org/show_bug.cgi?id=316063 I am working on how we can actually make the results similar. - Angrez On Thu, Dec 31, 2009 at 11:26 AM, Pallavi Sharma write2pall...@gmail.com wrote: Thanks Angrez. Rgds Pallavi. On Thu, Dec 31, 2009 at 11:18 AM, Angrez Singh ang...@gmail.comwrote: I'll look into this issue. - Angrez On Thu, Dec 31, 2009 at 10:40 AM, Krishna saradka krishna.sara...@gmail.com wrote: br by virtue should break the line and what you observe while running in ie is correct. May be that firewatir is not treating it that way. [I have not explored firewatir to that extent to confirm this] If you can tell us what exactly you are intend to do after getting the text then we can think of some workaround until we get clarity on the above. If you are comparing the string to arrive at some decision then for the time being try making it compare depending on whether it is ie or ff. Though this is not a clean way of doing the things. Thanks regards, KK On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma write2pall...@gmail.com wrote: Hi Angrez Could you please give some time and help with this.. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Wed, Dec 30, 2009 at 9:21 AM Subject: Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir To: watir-general@googlegroups.com Hi My code looks like this: Say the input is: h1 hello br bye br /h1 Now if you do from watir saying puts ie.text it will print hello bye so text is seperated by new line but with firewatir ff.text output is: hello bye separated by space. So thats my problem. As the delimiter used by watir and firewatir is not same, i cannot simply run my same watir scripts in fire watir. Any solution or feedback on it... Regards Pallavi. On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.comwrote: Hello, What does your code look like? On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi Has anyone here answer for this please. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Tue, Dec 22, 2009 at 10:23 AM Subject: Regarding Getting Page Text in Watir and FireWatir To: watir-general@googlegroups.com Hello If i try to get the page text for watir and firewatir a peculiar problem arises; for watir if there is br tag then with the test a new line appers but for Firewatir this doesn't happen. I am not able to run directly my test cases made in watir into firewatir due to this behaviour as the split fails on the output of this method . Is there is something we could do about it/ or any other way?? Regards Pallavi. -- 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
Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir
The thing is this even if I add line break for br tag while fetching text, it might still break somewhere else. So, let me see if something is possible to make then look similar. - Angrez On Thu, Dec 31, 2009 at 3:02 PM, Pallavi Sharma write2pall...@gmail.comwrote: I agree with you Angrez, about seeing the same thing differently, but when we are coding in gem would it be a good idea to forcefully insert a line break or remove a line break when we are trying to fetch the text? so as to make the results similar for watir, firewatir and other browser version of watir? Is it this what you would do? Rgds Pallavi. On Thu, Dec 31, 2009 at 2:50 PM, Angrez Singh ang...@gmail.com wrote: For benefit of others I am adding watir-general group as well. http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent If you see the standards for getting the text of body element i.e. using the function textContent, text should be returned by combining the text of all the elements that are child node of the element for which you want the text. Now for br element the text is empty string so it doesn't introduce a line break. Its not a bug in Firefox its as per the standards. In IE, we use innerText function which is not per the standard and it does introduce a line break when you get text. Issue is not which browser is following the standards and which is better, issue is both of them see's the things differently and return different text. - Angrez On Thu, Dec 31, 2009 at 2:20 PM, Krishna saradka krishna.sara...@gmail.com wrote: Dear Angrez, I'm little confused. Using a ,br. tag in html should break the line and move the follwoing text to the next line. Currently as per the original posted question on this thread, she is pointing out that the output of firewatir in this case is different. Which is instead of the line break it is introducing just a space. Where as while using IE [watir instead of firewatir] she is getting the desired result. While going over the below link, I understand that FF had a bug in it and it was not treating the br tag appropriately if the following text also continues in the same line in html code. This is observed while using textContext. Thanks Regards, KK On Thu, Dec 31, 2009 at 12:55 PM, Angrez Singh ang...@gmail.com wrote: Actually for your HTML code the result returned by Firewatir is as per the W3C standard. Check this link: https://bugzilla.mozilla.org/show_bug.cgi?id=316063 I am working on how we can actually make the results similar. - Angrez On Thu, Dec 31, 2009 at 11:26 AM, Pallavi Sharma write2pall...@gmail.com wrote: Thanks Angrez. Rgds Pallavi. On Thu, Dec 31, 2009 at 11:18 AM, Angrez Singh ang...@gmail.comwrote: I'll look into this issue. - Angrez On Thu, Dec 31, 2009 at 10:40 AM, Krishna saradka krishna.sara...@gmail.com wrote: br by virtue should break the line and what you observe while running in ie is correct. May be that firewatir is not treating it that way. [I have not explored firewatir to that extent to confirm this] If you can tell us what exactly you are intend to do after getting the text then we can think of some workaround until we get clarity on the above. If you are comparing the string to arrive at some decision then for the time being try making it compare depending on whether it is ie or ff. Though this is not a clean way of doing the things. Thanks regards, KK On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma write2pall...@gmail.com wrote: Hi Angrez Could you please give some time and help with this.. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Wed, Dec 30, 2009 at 9:21 AM Subject: Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir To: watir-general@googlegroups.com Hi My code looks like this: Say the input is: h1 hello br bye br /h1 Now if you do from watir saying puts ie.text it will print hello bye so text is seperated by new line but with firewatir ff.text output is: hello bye separated by space. So thats my problem. As the delimiter used by watir and firewatir is not same, i cannot simply run my same watir scripts in fire watir. Any solution or feedback on it... Regards Pallavi. On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.comwrote: Hello, What does your code look like? On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi Has anyone here answer for this please. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Tue, Dec 22, 2009 at 10:23 AM Subject: Regarding Getting Page Text in Watir and FireWatir To: watir-general@googlegroups.com Hello If i try to get the page text for watir and firewatir a peculiar problem arises; for watir if there is br tag
Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir
I'll look into this issue. - Angrez On Thu, Dec 31, 2009 at 10:40 AM, Krishna saradka krishna.sara...@gmail.com wrote: br by virtue should break the line and what you observe while running in ie is correct. May be that firewatir is not treating it that way. [I have not explored firewatir to that extent to confirm this] If you can tell us what exactly you are intend to do after getting the text then we can think of some workaround until we get clarity on the above. If you are comparing the string to arrive at some decision then for the time being try making it compare depending on whether it is ie or ff. Though this is not a clean way of doing the things. Thanks regards, KK On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Angrez Could you please give some time and help with this.. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Wed, Dec 30, 2009 at 9:21 AM Subject: Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir To: watir-general@googlegroups.com Hi My code looks like this: Say the input is: h1 hello br bye br /h1 Now if you do from watir saying puts ie.text it will print hello bye so text is seperated by new line but with firewatir ff.text output is: hello bye separated by space. So thats my problem. As the delimiter used by watir and firewatir is not same, i cannot simply run my same watir scripts in fire watir. Any solution or feedback on it... Regards Pallavi. On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.com wrote: Hello, What does your code look like? On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi Has anyone here answer for this please. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Tue, Dec 22, 2009 at 10:23 AM Subject: Regarding Getting Page Text in Watir and FireWatir To: watir-general@googlegroups.com Hello If i try to get the page text for watir and firewatir a peculiar problem arises; for watir if there is br tag then with the test a new line appers but for Firewatir this doesn't happen. I am not able to run directly my test cases made in watir into firewatir due to this behaviour as the split fails on the output of this method . Is there is something we could do about it/ or any other way?? Regards Pallavi. -- 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 -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir
Actually for your HTML code the result returned by Firewatir is as per the W3C standard. Check this link: https://bugzilla.mozilla.org/show_bug.cgi?id=316063 I am working on how we can actually make the results similar. - Angrez On Thu, Dec 31, 2009 at 11:26 AM, Pallavi Sharma write2pall...@gmail.comwrote: Thanks Angrez. Rgds Pallavi. On Thu, Dec 31, 2009 at 11:18 AM, Angrez Singh ang...@gmail.com wrote: I'll look into this issue. - Angrez On Thu, Dec 31, 2009 at 10:40 AM, Krishna saradka krishna.sara...@gmail.com wrote: br by virtue should break the line and what you observe while running in ie is correct. May be that firewatir is not treating it that way. [I have not explored firewatir to that extent to confirm this] If you can tell us what exactly you are intend to do after getting the text then we can think of some workaround until we get clarity on the above. If you are comparing the string to arrive at some decision then for the time being try making it compare depending on whether it is ie or ff. Though this is not a clean way of doing the things. Thanks regards, KK On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma write2pall...@gmail.com wrote: Hi Angrez Could you please give some time and help with this.. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Wed, Dec 30, 2009 at 9:21 AM Subject: Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir To: watir-general@googlegroups.com Hi My code looks like this: Say the input is: h1 hello br bye br /h1 Now if you do from watir saying puts ie.text it will print hello bye so text is seperated by new line but with firewatir ff.text output is: hello bye separated by space. So thats my problem. As the delimiter used by watir and firewatir is not same, i cannot simply run my same watir scripts in fire watir. Any solution or feedback on it... Regards Pallavi. On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.comwrote: Hello, What does your code look like? On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi Has anyone here answer for this please. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Tue, Dec 22, 2009 at 10:23 AM Subject: Regarding Getting Page Text in Watir and FireWatir To: watir-general@googlegroups.com Hello If i try to get the page text for watir and firewatir a peculiar problem arises; for watir if there is br tag then with the test a new line appers but for Firewatir this doesn't happen. I am not able to run directly my test cases made in watir into firewatir due to this behaviour as the split fails on the output of this method . Is there is something we could do about it/ or any other way?? Regards Pallavi. -- 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 -- 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 -- 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
Re: [wtr-general] XPath and IE
Can you post the HTML? Why are you using XPath for accessing elements? - Angrez On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote: //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/.. I know this does not solve your problem, but do you really need to use such complicated xpath? I would try to access the element with the simplest xpath possible. Željko -- watir.com - community manager watirpodcast.com - host -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] XPath and IE
Let me guess here you are trying to delete the project you don't have ID for delete button as the number of projects are not fixed. Is that correct? If yes, then does project name is unique across the applications? - Angrez On Tue, Dec 29, 2009 at 6:20 PM, Josh Moore joshsmo...@gmail.com wrote: Hi, I attached the html as a file because it is pretty big. I am using XPath because we are using XHTML and the namespace seems to render the other accessor methods useless. Josh -- 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 On Dec 29, 2009, at 6:33 PM, Angrez Singh wrote: Can you post the HTML? Why are you using XPath for accessing elements? - Angrez On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote: //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/.. I know this does not solve your problem, but do you really need to use such complicated xpath? I would try to access the element with the simplest xpath possible. Željko -- watir.com - community manager watirpodcast.com - host -- 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 -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Difficulty installing Watir (needs make); slow performance with FireWatir
I have heard a lot about Firewatir slowing up entering the text in textbox control. While running unit test cases i was not able to reproduce it. May be if you can send a working code which I can run on my machine, I'll look into what is causing the problem. Thanks, Angrez On Tue, Dec 29, 2009 at 11:20 PM, Charley Baker charley.ba...@gmail.comwrote: Hi Jesse, On Wed, Dec 23, 2009 at 6:42 PM, Jesse jedelst...@ucmerced.edu wrote: Hello! I'm using Ruby and Watir to automatically look up some data about court decisions from an online database. The site doesn't play nice with the common solutions for non-interactively accessing sites (like Mechanize) so I turned to Watir. My code doesn't have anything proprietary, but it won't do much for you unless you have a subscription to LexisNexis Academic - anyway, here's the code: http://pastebin.com/me3a3041 So this mostly works as advertised but I've had a couple problems. Incidentally, I'm doing this on both OS X 10.6 and Windows XP, with Ruby 1.8.7 and RubyGems 1.3.5. Ruby 1.8.7 on Windows? The recommended version to use for now is 1.8.6 26 from the one click installer http://rubyforge.org/frs/download.php/29263/ruby186-26.exe This won't require you to build required dependencies as you mention below. Some of the win32 libraries that we depend on have precompiled libraries for this version of Ruby built with msvc6 (mswin32), which automatically get picked up instead of built. The other option is rather experimental but uses the new release candidate of the Windows Ruby installer. Available on the same page on rubyforge, you'd need both the installer for the 186 version and the devkit for the same. Dig in if you want, I've been doing some playing around with it and need to spend more time sussing out what issues there may be and writing up instructions since it is going to replace the current one click as the de facto standard fairly soon. 1) I can't seem to install Watir. On Windows, running 'gem install watir' gives the following errors: Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for strncpy_s()... no creating Makefile make 'make' is not recognized as an internal or external command, operable program or batch file. I understand that this is because the computers I'm trying to install on don't have the appropriate compiler or the 'make' program. And I'm guessing this is an issue because Watir needs to use the Win32 IDE in order to control Internet Explorer. But is there any way to install Watir and not have to worry about this stuff? I'm trying to make this script for a user who's not so computer-savvy, and he won't know what to do with compilers and cygwin and all that fun stuff. I found some binary versions of older Watir versions online, but they've proven to be useless - even breaking my copy of Ruby, presumably because I wasn't installing them right. 2) I'm experiencing severe slowdown with FireWatir, getting worse and worse as a session goes on. Basically, my program is intended to look up thousands of strings from a search engine. But performance seems to get worse every time - by the 20th pass, the thing is taking around two seconds longer to retrieve the data (including entering a string into a search box, waiting for the search to come back, and running some regexes on the returned page to get the needed data). From a little testing my suspicion is that this is a known problem, as indicated by this posting: http://rubyforge.org/pipermail/wtr-development/2007-November/000669.html I've worked around it by just relaunching Firefox every 20 trials or so, which seems to take care of the problem. Any ideas for another solution to the slowdown issue? This is reproducible with OS X 10.6 running Firefox 3.5.6, and with Windows XP running Firefox 3.0.16 (the newest version didn't seem to work), both being controlled by FireWatir 1.6.5. Not sure why the slowdown, possibly Angrez can comment on this. There certainly seem to be some cases where the jssh plugin is generally slow as you mentioned, though we've not narrowed that down. Jesse -- 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
Re: [wtr-general] Re: Firefox JJSH for 64-bit Windows 7?
Hi George, I think Visual Studio Express should work, see the section Microsoft Visual C++ (MSVC) in the following link: https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Windows_Prerequisites - Angrez On Wed, Dec 23, 2009 at 3:19 AM, George george.sand...@gmail.com wrote: Hi Angrez, It looks like I need Visual Studio to make the build. Can I use Visual Studio Express? -George On Dec 21, 12:03 am, Angrez Singh ang...@gmail.com wrote: You can also see this link: http://wiki.openqa.org/display/WTR/FireWatir+Installation there is a section for compiling JSSh along with the help links. - Angrez On Mon, Dec 21, 2009 at 1:31 PM, Angrez Singh ang...@gmail.com wrote: Use instructions provided here for setting up the pre requisites: https://developer.mozilla.org/En/Simple_Firefox_build use the following build options in your .mozconfig file: mk_add_options MOZ_CO_PROJECT=browser mk_add_options moz_objd...@topsrcdir@/firefox-jssh ac_add_options --enable-extensions=default,jssh,webservices ac_add_options --enable-application=browser - Angrez On Mon, Dec 21, 2009 at 1:14 PM, Yuping Zhong littlezhong...@gmail.comwrote: I want to compile Firefox in my Mac. Can you provide more info about that? Thanks. On Mon, Dec 21, 2009 at 3:38 PM, Angrez Singh ang...@gmail.com wrote: You need to compile Firefox with JSSh on 64 bit machine and then need to generate the XPI. If anyone is willing to compile Firefox on his/her machine let me know I can provide the links for the same. - Angrez On Sun, Dec 20, 2009 at 7:56 AM, Yuping Zhong littlezhong...@gmail.comwrote: Hi, Looks like Mac OS X 10.6.1 is also 64-bits, is JSSH missed for Snow Leopard??? Anyone can run the FireWatir in Snow Leopard? If so,how to do that? Many Thanks. -Zhong On Sun, Dec 20, 2009 at 8:47 AM, George george.sand...@gmail.com wrote: Hello there, I noticed that a JIRA ticket was opened for Linux missing a 64-bit JSSH extension (http://jira.openqa.org/browse/WTR-383), but will there also be one available for Windows? Thanks, George -- 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 -- 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 -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Firefox JJSH for 64-bit Windows 7?
Use instructions provided here for setting up the pre requisites: https://developer.mozilla.org/En/Simple_Firefox_build use the following build options in your .mozconfig file: mk_add_options MOZ_CO_PROJECT=browser mk_add_options moz_objd...@topsrcdir@/firefox-jssh ac_add_options --enable-extensions=default,jssh,webservices ac_add_options --enable-application=browser - Angrez On Mon, Dec 21, 2009 at 1:14 PM, Yuping Zhong littlezhong...@gmail.comwrote: I want to compile Firefox in my Mac. Can you provide more info about that? Thanks. On Mon, Dec 21, 2009 at 3:38 PM, Angrez Singh ang...@gmail.com wrote: You need to compile Firefox with JSSh on 64 bit machine and then need to generate the XPI. If anyone is willing to compile Firefox on his/her machine let me know I can provide the links for the same. - Angrez On Sun, Dec 20, 2009 at 7:56 AM, Yuping Zhong littlezhong...@gmail.comwrote: Hi, Looks like Mac OS X 10.6.1 is also 64-bits, is JSSH missed for Snow Leopard??? Anyone can run the FireWatir in Snow Leopard? If so,how to do that? Many Thanks. -Zhong On Sun, Dec 20, 2009 at 8:47 AM, George george.sand...@gmail.comwrote: Hello there, I noticed that a JIRA ticket was opened for Linux missing a 64-bit JSSH extension (http://jira.openqa.org/browse/WTR-383), but will there also be one available for Windows? Thanks, George -- 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 -- 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 -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Firefox JJSH for 64-bit Windows 7?
You can also see this link: http://wiki.openqa.org/display/WTR/FireWatir+Installation there is a section for compiling JSSh along with the help links. - Angrez On Mon, Dec 21, 2009 at 1:31 PM, Angrez Singh ang...@gmail.com wrote: Use instructions provided here for setting up the pre requisites: https://developer.mozilla.org/En/Simple_Firefox_build use the following build options in your .mozconfig file: mk_add_options MOZ_CO_PROJECT=browser mk_add_options moz_objd...@topsrcdir@/firefox-jssh ac_add_options --enable-extensions=default,jssh,webservices ac_add_options --enable-application=browser - Angrez On Mon, Dec 21, 2009 at 1:14 PM, Yuping Zhong littlezhong...@gmail.comwrote: I want to compile Firefox in my Mac. Can you provide more info about that? Thanks. On Mon, Dec 21, 2009 at 3:38 PM, Angrez Singh ang...@gmail.com wrote: You need to compile Firefox with JSSh on 64 bit machine and then need to generate the XPI. If anyone is willing to compile Firefox on his/her machine let me know I can provide the links for the same. - Angrez On Sun, Dec 20, 2009 at 7:56 AM, Yuping Zhong littlezhong...@gmail.comwrote: Hi, Looks like Mac OS X 10.6.1 is also 64-bits, is JSSH missed for Snow Leopard??? Anyone can run the FireWatir in Snow Leopard? If so,how to do that? Many Thanks. -Zhong On Sun, Dec 20, 2009 at 8:47 AM, George george.sand...@gmail.comwrote: Hello there, I noticed that a JIRA ticket was opened for Linux missing a 64-bit JSSH extension (http://jira.openqa.org/browse/WTR-383), but will there also be one available for Windows? Thanks, George -- 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 -- 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 -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Save image in Firefox
As of now FireWatir doesn't support saving a image. You can open a JIRA ticket for the same. - Angrez On Sat, Dec 19, 2009 at 2:42 AM, hliauw hli...@gmail.com wrote: Hi all, Does firewatir support image(...).save like in ie? I have been testing on ie for a while, and have a need to test using firefox. some scripts I had uses image.save and it has been failing on firefox. Here are some snippets: browser = Watir::Browser.new() browser.goto(url) browser.image(:index, 1).save(c:\\tempfile.gif) When I run the script, it doesn't throw any error, but the file is never created. When I use irb, it gives me the following error on save: = TypeError: elements_IMG[0].save is not a function Google and Watir search doesn't help me much. Anybody have a clue? -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Firefox JJSH for 64-bit Windows 7?
You need to compile Firefox with JSSh on 64 bit machine and then need to generate the XPI. If anyone is willing to compile Firefox on his/her machine let me know I can provide the links for the same. - Angrez On Sun, Dec 20, 2009 at 7:56 AM, Yuping Zhong littlezhong...@gmail.comwrote: Hi, Looks like Mac OS X 10.6.1 is also 64-bits, is JSSH missed for Snow Leopard??? Anyone can run the FireWatir in Snow Leopard? If so,how to do that? Many Thanks. -Zhong On Sun, Dec 20, 2009 at 8:47 AM, George george.sand...@gmail.com wrote: Hello there, I noticed that a JIRA ticket was opened for Linux missing a 64-bit JSSH extension (http://jira.openqa.org/browse/WTR-383), but will there also be one available for Windows? Thanks, George -- 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 -- 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: Accessing a overlay popup
Hi Soori, Think if somebody has posted the same question, will you be able to help him without knowing what he had tried, what ruby code he's using, whats the HTML of the page, whats the HTML of the pop up? This will be information that you'll require to help some one else. So everybody on the list are willing to help for each/every problem that you face provided they get enough information. Thanks, Angrez On Mon, Nov 23, 2009 at 3:52 PM, Soori sure...@gmail.com wrote: All, I would like to add a product on cart through search option. clicking Add link on the page will open an overlay popup where we can search a product and click Add button from the search result. I couldn't access the search button and the search text box on the overlay pop up. please help me in this front. Thanks in advance. /Soori --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Delete cookies in Firewatir
How about this: browser.set_cookie(:name = name, :value = value) browser.delete_cookie(:name = name) browser.delete_all_cookies() I want these methods to be with Browser as cookies are related to browser. Thoughts? - Angrez On Wed, Nov 18, 2009 at 12:28 AM, Bret Pettichord b...@pettichord.comwrote: Please make a proposal for the method names and parameters. Here is what we have for IE right now. http://github.com/bret/watir/blob/master/watir/lib/watir/cookiemanager.rb I've never used it. I would like to hear from some people who have. What functionality do you use the cookiemanager for? Bret Angrez Singh wrote: Yes, I have seen that preety interesting stuff. Need to see what all we can make into FireWatir. On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: have you seen this by Matt http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment ? Aidy 2009/11/17 Angrez Singh ang...@gmail.com mailto:ang...@gmail.com : thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com mailto:ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: firewatir- I cannot close the second popup.
You can use AutoIT to close the pop ups if you are working on Windows. As of now this is the only solution. - Angrez On Wed, Nov 18, 2009 at 7:05 AM, Shlomit Gazit shlomitpatr...@gmail.comwrote: Angrez, Please let me know if you have any new results. On Nov 16, 10:00 am, Shlomit Gazit shlomitpatr...@gmail.com wrote: Pallavi, Angrez hello, Thank you for the replies. I was trying your suggestion: $ff.startClicker(ok) $ff.startClicker(ok) $ff.image(:name, /elete/).click But it still didn't close thepopup. I am able to do it with watir like this: Thread.new{system(rubyw myClicker.rb)} $ie.image(:name, /elete/).click Thread.new { system(rubyw myClicker.rb)} and I have a file: myClicker.rb with the code: $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__ require 'watir/WindowHelper' $helper = WindowHelper.new $helper.push_confirm_button_ok() It is not always clicking the popups so sometimes I have to click on either of the popups manually, and the test is waiting for the click. But basically it is not breaking the test. On Nov 16, 4:06 am, Angrez Singh ang...@gmail.com wrote: It might work, because both of them will be looking for the pop up to close. When you click the delete button pop up will come, not sure which thread will close the pop up. Butsecondone will closesecondpop up if you are using Auto IT. In Firewatir the concept is bit different, I don't use AutoIT to close the pop up to make it cross-platform. So if you are on Windows you can use AutoIt in two different threads and tell them to close the pop ups. - Angrez On Mon, Nov 16, 2009 at 5:24 PM, Pallavi Sharma write2pall...@gmail.comwrote: Can't you start two start clickers at once? Will they both try to access the first pop up and if found close it? So what i am suggesting is this: ff.startClicker(ok) $ff.startClicker(ok) $ff.image(:name, /elete/).click Wont this work Angrez? I had a similar situation for IE, and i used the Auto IT script to handle popupby calling them in separate threads but both invoked at the same time. -- Pallavi. On Mon, Nov 16, 2009 at 3:17 PM, Angrez Singh ang...@gmail.com wrote: It would be bit tricky to handle thesecondpop up. I'll try here at my end and if possible will come up with some solution, but as of now it might not be possible. Thanks, Angrez On Mon, Nov 16, 2009 at 1:14 PM, Shlomit Gazit shlomitpatr...@gmail.comwrote: Anybody?? On Nov 13, 4:43 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello, I am trying to handlepopupswithfirewatir. My scenario is clicking on delete button, apopupconfirmation will open and I should click ok. After that asecondpopupwill open and I should write the reason and click ok. So far I was able to click on the delete button and thesecondpopup will appear but not closed (the firstpopupis not appearing, but I assume it is by design). How can I close thesecondpopup? Myfirewatircode is: $ff.startClicker(ok) $ff.image(:name, /elete/).click $ff.startClicker(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 -~--~~~~--~~--~--~---
[wtr-general] Re: Delete cookies in Firewatir
Aidy, You can go ahead and write it. I'll write the corresponding methods in Watir. -Angrez On Wed, Nov 18, 2009 at 3:56 PM, aidy lewis aidy.le...@googlemail.comwrote: Angrez, Sounds good. Would you like me to write them? I can either push them to my fork or just email them to you. I will be just doing the FireWatir ones, as I am unsure on what method we should use for Watir. Will start with and include tests. Aidy 2009/11/18 Angrez Singh ang...@gmail.com: How about this: browser.set_cookie(:name = name, :value = value) browser.delete_cookie(:name = name) browser.delete_all_cookies() I want these methods to be with Browser as cookies are related to browser. Thoughts? - Angrez On Wed, Nov 18, 2009 at 12:28 AM, Bret Pettichord b...@pettichord.com wrote: Please make a proposal for the method names and parameters. Here is what we have for IE right now. http://github.com/bret/watir/blob/master/watir/lib/watir/cookiemanager.rb I've never used it. I would like to hear from some people who have. What functionality do you use the cookiemanager for? Bret Angrez Singh wrote: Yes, I have seen that preety interesting stuff. Need to see what all we can make into FireWatir. On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: have you seen this by Matt http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment ? Aidy 2009/11/17 Angrez Singh ang...@gmail.com mailto:ang...@gmail.com: thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com mailto:ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Delete cookies in Firewatir
Bret proposed the following syntax or method names via Google Wave, so we should stick to this: Browser#cookies (get cookies as ruby array of hashes) Browser#add_cookie(opts) where opts is a hash of :name, :value, :path, :secure and :name/:value will raise ArgumentError if not supplied Browser#remove_cookie(opts) where opts is a hash of :domain and :name Browser#remove_all_cookies or Browser#remove_cookie(:all)? Thanks, Angrez On Wed, Nov 18, 2009 at 10:16 PM, aidy lewis aidy.le...@googlemail.comwrote: Ethan 2009/11/18 aidy lewis aidy.le...@googlemail.com: Going to put the URI in, for #read_cookies or something 2009/11/18 Ethan notet...@gmail.com: That seems to be lacking the URI to set the cookie on. Would the method just infer that from the current location of the browser, or should that be be configurable by the user? I was lazily reading. I think the default will be the current uri unless specified. WDYT? Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Delete cookies in Firewatir
:) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.comwrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Delete cookies in Firewatir
thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.comwrote: Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: JSSH on FF 3.0.14 [Solved]
Thanks for all your efforts. Much appreciated. - Angrez On Mon, Nov 16, 2009 at 4:43 PM, Alexandre neonoe123...@gmail.com wrote: Le lundi 16 novembre de l'année 2009, vers 15 heures et 15 minutes, Angrez Singh écrivait: Glad to see that you solved it yourself. Can you post this to wiki so that its helpful to other people who are running Firewatir on Debian? Done: http://wiki.openqa.org/display/WTR/FireWatir+Installation -- Alexandre Delanoë --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: firewatir- I cannot close the second popup.
It might work, because both of them will be looking for the pop up to close. When you click the delete button pop up will come, not sure which thread will close the pop up. But second one will close second pop up if you are using Auto IT. In Firewatir the concept is bit different, I don't use AutoIT to close the pop up to make it cross-platform. So if you are on Windows you can use AutoIt in two different threads and tell them to close the pop ups. - Angrez On Mon, Nov 16, 2009 at 5:24 PM, Pallavi Sharma write2pall...@gmail.comwrote: Can't you start two start clickers at once? Will they both try to access the first pop up and if found close it? So what i am suggesting is this: ff.startClicker(ok) $ff.startClicker(ok) $ff.image(:name, /elete/).click Wont this work Angrez? I had a similar situation for IE, and i used the Auto IT script to handle popup by calling them in separate threads but both invoked at the same time. -- Pallavi. On Mon, Nov 16, 2009 at 3:17 PM, Angrez Singh ang...@gmail.com wrote: It would be bit tricky to handle the second pop up. I'll try here at my end and if possible will come up with some solution, but as of now it might not be possible. Thanks, Angrez On Mon, Nov 16, 2009 at 1:14 PM, Shlomit Gazit shlomitpatr...@gmail.comwrote: Anybody?? On Nov 13, 4:43 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello, I am trying to handlepopupswithfirewatir. My scenario is clicking on delete button, a popup confirmation will open and I should click ok. After that a second popup will open and I should write the reason and click ok. So far I was able to click on the delete button and the second popup will appear but not closed (the first popup is not appearing, but I assume it is by design). How can I close the second popup? Myfirewatircode is: $ff.startClicker(ok) $ff.image(:name, /elete/).click $ff.startClicker(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 -~--~~~~--~~--~--~---
[wtr-general] Re: JSSH on FF 3.0.14
Did you tried using Latest version of Firefox 3.5 along with the JSSh for 3.5? Also are you an administrator while installing the extension? - Angrez On Thu, Nov 12, 2009 at 3:08 PM, Alexandre neonoe123...@gmail.com wrote: Le mardi 10 novembre de l'année 2009, vers 11 heures et 08 minutes, Alexandre Delanoë écrivait: Hi all, I have 3.0.14-1 firefox on a debian testing box. Then I installed : http://wiki.openqa.org/download/attachments/13893658/jssh-20080725-Linux.xpi?version=1 In a terminal I launch the command: firefox -jssh Then telnet localhost 9997 is Unable to connect to remote host: Connection refused Error console indicates that Components.classes['@mozilla.org/jssh-server;1'] is undefined in Source File: file:///home/user/.mozilla/firefox/.default/extensions/ j...@extensions.mozilla.org/components/nsJSShStarter.js Line: 133 Code: JSShStarter.prototype = { // nsICommandLineHandler methods: handle : function(commandline) { debug(JSShStarter: checking for -jssh startup option\n); if (commandline.handleFlag(jssh, false)) { // start a jssh server with startupURI // chrome://jssh/content/jssh-debug.js. We use 'getService' // instead of 'createInstance' to get a well-known, globally // accessible instance of a jssh-server. // XXX Todo: get port, startupURI and loopbackOnly from prefs. Components.classes[@mozilla.org/jssh-server;1] .getService(Components.interfaces.nsIJSShServer) .startServerSocket(9997, chrome://jssh/content/jssh-debug.js, true); debug(JSShStarter: JSSh server started on port 9997\n); } }, helpInfo : -jsshStart a JSSh server on port 9997.\n, }; Any idea to fix this ? Thank you for help. -- Alexandre Delanoë --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: JSSH on FF 3.0.14
But as user, it was ok with my previous computer... Can you tell what are you doing different this time? - 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: FireWatir status method gives error in 1.6.5
I can commit the fix and will also add unit test for the same. Thanks, Angrez On Thu, Nov 12, 2009 at 9:08 PM, Bret Pettichord b...@pettichord.comwrote: We also need to add a unit test for the status method. I know we have one for the IE status method. Bret Bret Pettichord wrote: Thanks for the report and the fix. Who can commit this fix? Bret al3kc wrote: Seems like WINDOW_VAR in status method should be typed in lower case. Then it works. --~--~-~--~~~---~--~~ 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: IRB Console
Why are you using Watir 1.4.1 when 1.6.5 rc2 is already out. Check this link for more details on installation: http://wiki.openqa.org/display/WTR/Development+Builds* - *Angrez On Tue, Nov 10, 2009 at 8:00 PM, tester86 sagar.am...@gmail.com wrote: In IRB I get the following message and according to Watir In 5 Minutes Im guessing my output is incorrect.. irb(main):001:0 require watir = true irb(main):002:0 ie = Watir::IE.new = #Watir::IE:0x825f690 @ie=#WIN32OLE:0x825f640, @error_checkers= [#Proc:0x0830d...@c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1135], @logger=#Watir::DefaultLogger:0x825f5f0 @level=2, @progname=nil, @logdev=#Logger::LogDevice:0x825f58c @shift_size=nil, @shift_age=nil,@filename=nil, @mutex=#Logger::LogDevice::LogDeviceMutex:0x825f564 @mon_owner=nil, @mon_waiting_queue=[], @mon_entering_queue=[], @mon_count=0, @dev=#IO:0x7916ad4, @formatter=nil, @default_formatter=#Logger::Formatter:0x825f5b4 @datetime_format=%d- %b-%Y %H:%M:%S, @defaultSleepTime=0.1, @activeObjectHighLightColor=yellow, @enable_spinner=false, @url_list= [], @typingspeed=0.08, @form=nil irb(main):003:0 So from my debugging have I set Watir up incorrectly... since my IRB output is incorrect. Can someone please point me in the right direction. --~--~-~--~~~---~--~~ 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: Basic authentication on Linux with FireWatir
Are you using FireWatir? If yes, then did you went through the entire thread? - Angrez On Tue, Nov 10, 2009 at 8:14 PM, amol amol...@gmail.com wrote: Hi All, I want to handle basic authentication window on linux Please help me for that i'm not able to handle that, as i handle that successfully in windows Regards, Amol Khawre On Oct 30, 12:35 am, Angrez Singh ang...@gmail.com wrote: Thats great. I used it only on windows so it works on Linux as well. Happy to help - Angrez On Fri, Oct 30, 2009 at 12:38 AM, Aedorn Varanis aed...@gmail.com wrote: Internet Explorer solutions don't tend to work well with Firefox in Linux. However, Angrez's fork had the solution so I'm using that now. Thanks Angrez, works perfectly! On Thu, Oct 29, 2009 at 7:58 AM, Chris christopher.mcma...@gmail.com wrote: FWIW: http://chrismcmahonsblog.blogspot.com/2006/05/internet-explorer-basic. .. On Oct 28, 1:20 am, Angrez Singh ang...@gmail.com wrote: I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.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: Table row
It would be best if you could post the relevant HTML code and ruby code that you tried. No one can help you without seeing your HTML code and ruby code. Make sure whenever you post any question here tell us what all you tried and what is your HTML code? Thanks, Angrez On Tue, Nov 3, 2009 at 10:10 PM, Abhay abhaybas...@gmail.com wrote: Hi All, I have a web page which contains many tables, none of the table has any distinguishing properties, No name, No id etc. In one of the table there are 5 text boxes each on differant row of the table but same column number. In all these text boxes i want to enter some text value. How do i do this? I tried to do lot many things but ended up adding one value in the first text box and rest overriding it. I would really appreciate if some one could throw some light on this. Thanks in advance Abhay --~--~-~--~~~---~--~~ 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 and Auto it and FireWatir
1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs get stuck on FF 3.0 i dont know why This should not happen. Can you let me know what is not working? 2. I need to use auto it directly as some popups come which's title i dont know before han so i need to use REGEXPTITLE functionality 3. Now the problem is the auto it script doesn't work on FF 3.5 but on 3.0 and my Firewatir doesnot work on 3.0 but on 3.5 Are they javascript popups? If yes, why are you not using the in-build pop up clicker? 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: Firefox 3.5 and Auto it and FireWatir
If you post the HTML code along with ruby code it would be helpful. No one yet knows what kind of pop up you are talking about. Your HTML code shows just one button clicking on which nothing happens. Thanks, Angrez On Mon, Nov 2, 2009 at 5:13 PM, Pallavi Sharma write2pall...@gmail.comwrote: 1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs get stuck on FF 3.0 i dont know why This should not happen. Can you let me know what is not working? I exactly dont know Angrez but the code just hangs in there, but this is not an issue with 3.5. Can you tell me how else to debug this? On Mon, Nov 2, 2009 at 4:15 PM, Angrez Singh ang...@gmail.com wrote: 1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs get stuck on FF 3.0 i dont know why This should not happen. Can you let me know what is not working? 2. I need to use auto it directly as some popups come which's title i dont know before han so i need to use REGEXPTITLE functionality 3. Now the problem is the auto it script doesn't work on FF 3.5 but on 3.0 and my Firewatir doesnot work on 3.0 but on 3.5 Are they javascript popups? If yes, why are you not using the in-build pop up clicker? 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: Firefox 3.5 and Auto it and FireWatir
Can't see your HTML code file? Can you attache that again? - Angrez On Mon, Nov 2, 2009 at 5:40 PM, Pallavi Sharma write2pall...@gmail.comwrote: The Ruby Code: # Function to look for popups def check_for_popups autoit = WIN32OLE.new('AutoItX3.Control') #autoit.Opt(WinTitleMatchMode, 4) # # 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 ret = autoit.WinWait(ARGV[0], '', 1) # #puts HERE # If window found, send appropriate keystroke (e.g. {enter}, {Y}, {N}). if (ret==1) then autoit.ControlClick(ARGV[0],'',ARGV[1]) $flag=true exit(0) #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 # # MAIN APPLICATION CODE Timeout::timeout(ARGV[2].to_i) do begin check_for_popups #popuphandle if $flag==true then exit(0) end rescue Timeout::Error #puts 'No popup existed' end end Here ARGV[0]=Window Title [ i need to use REG Expression] ARGV[1] ==button text ARGV[2]== Wait time. -- Thanks Pallavi On Mon, Nov 2, 2009 at 5:22 PM, Pallavi Sharma write2pall...@gmail.comwrote: Angrez I have attached both the html page and auto it code, and on clicking the button a popup window appears and on clicking on the popup nothing happens, whether you click ok or cancel The ruby code for this is not working with Regular Expression Angrez. That is why i switched to Auto it. But this works only on IE and not on FireFox. The winclicker is not working with regular expression. Can you please send me the winclicker code which works with Regular expression if you can please, would be grateful. -- Thanks Pallavi. On Mon, Nov 2, 2009 at 5:17 PM, Angrez Singh ang...@gmail.com wrote: If you post the HTML code along with ruby code it would be helpful. No one yet knows what kind of pop up you are talking about. Your HTML code shows just one button clicking on which nothing happens. Thanks, Angrez On Mon, Nov 2, 2009 at 5:13 PM, Pallavi Sharma write2pall...@gmail.comwrote: 1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs get stuck on FF 3.0 i dont know why This should not happen. Can you let me know what is not working? I exactly dont know Angrez but the code just hangs in there, but this is not an issue with 3.5. Can you tell me how else to debug this? On Mon, Nov 2, 2009 at 4:15 PM, Angrez Singh ang...@gmail.com wrote: 1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs get stuck on FF 3.0 i dont know why This should not happen. Can you let me know what is not working? 2. I need to use auto it directly as some popups come which's title i dont know before han so i need to use REGEXPTITLE functionality 3. Now the problem is the auto it script doesn't work on FF 3.5 but on 3.0 and my Firewatir doesnot work on 3.0 but on 3.5 Are they javascript popups? If yes, why are you not using the in-build pop up clicker? 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: Firefox 3.5 and Auto it and FireWatir
If you are using the latest Firewatir version i.e. 1.6.5rc2 you can do something like this: browser.button(:id, [button id]).click_no_wait() browser.click_jspopup_button(OK) // If you want to click ok or browser.click_jspopup_button(CANCEL) // If you want to click cancel Let me know if this works. - Angrez On Tue, Nov 3, 2009 at 9:09 AM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Angrez The html page: html head titleMy page/title script type=text/javascript function show_confirm() { var r=confirm(Press a button); if (r==true) { } else { } } /script /head body input type=button onclick=show_confirm() value=Show confirm box / /body /html Thanks for looking into this issue -- Pallavi. On Mon, Nov 2, 2009 at 9:36 PM, Angrez Singh ang...@gmail.com wrote: Can't see your HTML code file? Can you attache that again? - Angrez On Mon, Nov 2, 2009 at 5:40 PM, Pallavi Sharma write2pall...@gmail.comwrote: The Ruby Code: # Function to look for popups def check_for_popups autoit = WIN32OLE.new('AutoItX3.Control') #autoit.Opt(WinTitleMatchMode, 4) # # 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 ret = autoit.WinWait(ARGV[0], '', 1) # #puts HERE # If window found, send appropriate keystroke (e.g. {enter}, {Y}, {N}). if (ret==1) then autoit.ControlClick(ARGV[0],'',ARGV[1]) $flag=true exit(0) #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 # # MAIN APPLICATION CODE Timeout::timeout(ARGV[2].to_i) do begin check_for_popups #popuphandle if $flag==true then exit(0) end rescue Timeout::Error #puts 'No popup existed' end end Here ARGV[0]=Window Title [ i need to use REG Expression] ARGV[1] ==button text ARGV[2]== Wait time. -- Thanks Pallavi On Mon, Nov 2, 2009 at 5:22 PM, Pallavi Sharma write2pall...@gmail.comwrote: Angrez I have attached both the html page and auto it code, and on clicking the button a popup window appears and on clicking on the popup nothing happens, whether you click ok or cancel The ruby code for this is not working with Regular Expression Angrez. That is why i switched to Auto it. But this works only on IE and not on FireFox. The winclicker is not working with regular expression. Can you please send me the winclicker code which works with Regular expression if you can please, would be grateful. -- Thanks Pallavi. On Mon, Nov 2, 2009 at 5:17 PM, Angrez Singh ang...@gmail.com wrote: If you post the HTML code along with ruby code it would be helpful. No one yet knows what kind of pop up you are talking about. Your HTML code shows just one button clicking on which nothing happens. Thanks, Angrez On Mon, Nov 2, 2009 at 5:13 PM, Pallavi Sharma write2pall...@gmail.com wrote: 1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs get stuck on FF 3.0 i dont know why This should not happen. Can you let me know what is not working? I exactly dont know Angrez but the code just hangs in there, but this is not an issue with 3.5. Can you tell me how else to debug this? On Mon, Nov 2, 2009 at 4:15 PM, Angrez Singh ang...@gmail.comwrote: 1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs get stuck on FF 3.0 i dont know why This should not happen. Can you let me know what is not working? 2. I need to use auto it directly as some popups come which's title i dont know before han so i need to use REGEXPTITLE functionality 3. Now the problem is the auto it script doesn't work on FF 3.5 but on 3.0 and my Firewatir doesnot work on 3.0 but on 3.5 Are they javascript popups? If yes, why are you not using the in-build pop up clicker? 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: How to turn to another newline when input the info in the textarea?
try this: @browser.text_field,(ld...).set(Hello,\\nHappy new year) - Angrez On Thu, Oct 29, 2009 at 2:47 PM, yuping zhong littlezhong...@gmail.comwrote: Hi, Fill some info in the textarea,I use \n to turn to a newline. But it doesn't work. Such as: @browser.text_field,(ld...).set(Hello,\nHappy new year) But it still fill as: Hello,Happy new year I want to be: Hello, Happy new year Any idea of that? Thanks. -Zhong --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Basic authentication on Linux with FireWatir
Thats great. I used it only on windows so it works on Linux as well. Happy to help - Angrez On Fri, Oct 30, 2009 at 12:38 AM, Aedorn Varanis aed...@gmail.com wrote: Internet Explorer solutions don't tend to work well with Firefox in Linux. However, Angrez's fork had the solution so I'm using that now. Thanks Angrez, works perfectly! On Thu, Oct 29, 2009 at 7:58 AM, Chris christopher.mcma...@gmail.comwrote: FWIW: http://chrismcmahonsblog.blogspot.com/2006/05/internet-explorer-basic-authorization.html On Oct 28, 1:20 am, Angrez Singh ang...@gmail.com wrote: I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.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: Basic authentication on Linux with FireWatir
I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.comwrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.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: Basic authentication on Linux with FireWatir
Its in my fork on github. You can have a look. - Angrez On Wed, Oct 28, 2009 at 7:31 PM, aidy lewis aidy.le...@googlemail.comwrote: Angrez, Is that code on github though? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.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: Basic authentication on Linux with FireWatir
firefox.rb file contains code for basic authentication. On Wed, Oct 28, 2009 at 10:42 PM, aidy lewis aidy.le...@googlemail.comwrote: What file and methods should I be looking at? Thanks Aidy 2009/10/28 Angrez Singh ang...@gmail.com: Its in my fork on github. You can have a look. - Angrez On Wed, Oct 28, 2009 at 7:31 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Is that code on github though? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.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: Basic authentication on Linux with FireWatir
getWindows() is method exposed by jssh with gives you all the Firefox windows which are currently opened. Is this what you are asking? Or am I missing something? On Wed, Oct 28, 2009 at 11:50 PM, aidy lewis aidy.le...@googlemail.comwrote: Sorry Angrez But where is the getWindows method coming from? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: firefox.rb file contains code for basic authentication. On Wed, Oct 28, 2009 at 10:42 PM, aidy lewis aidy.le...@googlemail.com wrote: What file and methods should I be looking at? Thanks Aidy 2009/10/28 Angrez Singh ang...@gmail.com: Its in my fork on github. You can have a look. - Angrez On Wed, Oct 28, 2009 at 7:31 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Is that code on github though? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.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: FireWatir Issue with Regular expressions
Firewatir 0.9.4 :) ... that is history now .. you should upgrade .. I am not sure how you are able to run the test cases on firewatir. - Angrez On Tue, Oct 27, 2009 at 9:32 AM, Pallavi Sharma write2pall...@gmail.comwrote: Sorry Angrez, forgot to mention that. it is 0.9.4. I think i should upgrade firewatir now. On Mon, Oct 26, 2009 at 3:50 PM, Angrez Singh ang...@gmail.com wrote: Not sure about that. Which Firewatir version are you using? On Mon, Oct 26, 2009 at 3:41 PM, Pallavi Sharma write2pall...@gmail.comwrote: The version on which we are checking is Firefox 3.0, maybe it is because of this. On Mon, Oct 26, 2009 at 3:22 PM, Pallavi Sharma write2pall...@gmail.com wrote: Hi Angrez So can it be a possibility that this might fail with other firewatir and firefox versions? Please let me know. Thanks Pallavi. On Mon, Oct 26, 2009 at 3:04 PM, Angrez Singh ang...@gmail.com wrote: Your code works for me. I am using Firewatir 1.6.5rc2 with Firefox 3.5.3 - Angrez On Mon, Oct 26, 2009 at 2:17 PM, Pallavi Sharma write2pall...@gmail.com wrote: Hi I have a weird situation where the Fire-watir sometimes work very smoothly with the scripts involving regular expression to identify the objects but in another case, the script just hangs. and also this scenario happens on different systems, which have the same configuration. Can anyone advice me on this? I believe there is more to this issue. Can anyone please tell me what else should i check or provide with to the group. The script for the same is here: require 'firewatir' ff=FireWatir::Firefox.new ff.goto('http://www.makemytrip.com') ff.link(:href,/international-flights/).click I don't face any issues with IE and watir though. Thanks, Pallavi. --~--~-~--~~~---~--~~ 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: Error occured while working with firefox browser
Which JSSh extension you have installed and from where? - Angrez On Sun, Oct 25, 2009 at 5:31 PM, rrash586 rrash...@gmail.com wrote: Hi All, I want to use Firefox browser for testing one of the webpplication. But after following all the steps mentioned on link mentioned below http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-4%29%28Optional%29RunFireWatirunittests 1) Install the FireWatir Gem 2) Install the JSSH Firefox Extension 3) Ensure Firefox settings are correct 4) (Optional) Run FireWatir unit tests but when i execute the 4 th steps i am getting following error c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- unittests/setup/lib (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/ setup.rb:15 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from mozilla_all_tests.rb:3 I am not getting what is the exact error. I tried the sample script mentioned in one of the jssh post which are 1.require 'watir' Watir.options[:browser]='firefox' ff=Watir::Browser.new ff.goto ('www.google.com') 2. require 'firewatir' system(C:\\Program Files\\Mozilla Firefox\\firefox.exe -jssh) sleep(5) $ie = FireWatir::Firefox.new $ie.goto(google.com) puts $ie.title 3. require 'firewatir' system(C:\\Program Files\\Mozilla Firefox\\firefox.exe -jssh) sleep(5) $ie = FireWatir::Firefox.attach(:title,Google) $ie.goto(google.com) puts $ie.title in all the above three cases firefox browser opened but the execution of the script hanged and script not navigate to proper url i.e to www.google.com I am using Firefox 3.0.10 and FireWatir 1.6.2 Please tell me if anything or any steps i am missing or what the exact problem and how can i overcome the same . Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Error occured while working with firefox browser
I agree with you .. all I wanted is to make the project read only in google code and move everything to openqa - Angrez On Mon, Oct 26, 2009 at 2:38 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Oct 26, 2009 at 7:44 AM, Angrez Singh ang...@gmail.com wrote: Which JSSh extension you have installed and from where? Angrez, I hope I am not pushing this too much, but you would not need and from where if we had firewatir stuff located only in one place. Željko -- watir.com - community manager watirpodcast.com - host --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: FireWatir Issue with Regular expressions
Your code works for me. I am using Firewatir 1.6.5rc2 with Firefox 3.5.3 - Angrez On Mon, Oct 26, 2009 at 2:17 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi I have a weird situation where the Fire-watir sometimes work very smoothly with the scripts involving regular expression to identify the objects but in another case, the script just hangs. and also this scenario happens on different systems, which have the same configuration. Can anyone advice me on this? I believe there is more to this issue. Can anyone please tell me what else should i check or provide with to the group. The script for the same is here: require 'firewatir' ff=FireWatir::Firefox.new ff.goto('http://www.makemytrip.com') ff.link(:href,/international-flights/).click I don't face any issues with IE and watir though. Thanks, Pallavi. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: FireWatir Issue with Regular expressions
Not sure about that. Which Firewatir version are you using? On Mon, Oct 26, 2009 at 3:41 PM, Pallavi Sharma write2pall...@gmail.comwrote: The version on which we are checking is Firefox 3.0, maybe it is because of this. On Mon, Oct 26, 2009 at 3:22 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Angrez So can it be a possibility that this might fail with other firewatir and firefox versions? Please let me know. Thanks Pallavi. On Mon, Oct 26, 2009 at 3:04 PM, Angrez Singh ang...@gmail.com wrote: Your code works for me. I am using Firewatir 1.6.5rc2 with Firefox 3.5.3 - Angrez On Mon, Oct 26, 2009 at 2:17 PM, Pallavi Sharma write2pall...@gmail.com wrote: Hi I have a weird situation where the Fire-watir sometimes work very smoothly with the scripts involving regular expression to identify the objects but in another case, the script just hangs. and also this scenario happens on different systems, which have the same configuration. Can anyone advice me on this? I believe there is more to this issue. Can anyone please tell me what else should i check or provide with to the group. The script for the same is here: require 'firewatir' ff=FireWatir::Firefox.new ff.goto('http://www.makemytrip.com') ff.link(:href,/international-flights/).click I don't face any issues with IE and watir though. Thanks, Pallavi. --~--~-~--~~~---~--~~ 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: Error occured while working with firefox browser
Code works for me. I am using Firewatir 1.6.5rc2 and Firefox 3.5. Can you try updating your firewatir installation using instructions over here and then try your code? http://wiki.openqa.org/display/WTR/Development+Builds - Angrez On Mon, Oct 26, 2009 at 5:55 PM, rrash586 rrash...@gmail.com wrote: I installed jssh from http://wiki.openqa.org/download/attachments/13893658/jssh-20080708-WINNT.xpi?version=1 as i am using the mozilla firefox 3.0 i also tried with jssh http://wiki.openqa.org/download/attachments/13893658/jssh-3.5.x-WINNT.xpi?version=1 but the same problem persist On Oct 26, 2:37 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Oct 26, 2009 at 10:33 AM, Angrez Singh ang...@gmail.com wrote: all I wanted is to make the project read only in google code and move everything to openqa Sure, I will reply in another thread about what to do. I hope I did not sound rude, I just wanted to point it as an example why I am pushing so hard towards the merge of everything watir related. Ž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: Running FF with JSSH
This has been fixed in 1.6.5rc2. You can build the latest code using instructions from here: http://wiki.openqa.org/display/WTR/Development+Builds - Angrez On Fri, Oct 23, 2009 at 10:59 PM, Shlomit Gazit shlomitpatr...@gmail.comwrote: The thing is that when I Quit FF from the Dock, my telnet connection is being disconnected. I am concern about that since I am trying to use attach method with firewatir and from what I read in another discussion is only if I use firewatir 1.6.2 with JSSH running I will be able to get the attach method working, otherwise I am getting exception on unknown method attach. On Oct 23, 9:11 am, Angrez Singh ang...@gmail.com wrote: I think it will automatically open a new Firefox instance with JSSH when you run the test. - Angrez On Fri, Oct 23, 2009 at 8:43 PM, Shlomit Gazit shlomitpatr...@gmail.com wrote: Angrez hello, I am running on MacOS. How should I run the tests not through eclipse? Thank you, Shlomit Date: Thurs, Oct 22 2009 3:57 pm From: Shlomit Gazit I opened ff with jssh from terminal and was able to telnet only if I was a super user. When I run the firewatir test from eclipse I need to quit ff . So when I run the test ff should be up with jssh but at the same time ff should be down because only one instance allowed running firewatir. How should it work? Shlomit == 2 of 2 == Date: Fri, Oct 23 2009 12:02 am From: Angrez Singh Which OS are you using? As far as I know, when you run Firefox test in opens up a new Firefox instance with JSSh enabled. Never ran the test via eclipse. Can you post your further queries on watir-general@googlegroups.com so that more people can help you? Thanks, Angrez On Fri, Oct 23 --~--~-~--~~~---~--~~ 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: Running FF with JSSH
I think it will automatically open a new Firefox instance with JSSH when you run the test. - Angrez On Fri, Oct 23, 2009 at 8:43 PM, Shlomit Gazit shlomitpatr...@gmail.comwrote: Angrez hello, I am running on MacOS. How should I run the tests not through eclipse? Thank you, Shlomit Date: Thurs, Oct 22 2009 3:57 pm From: Shlomit Gazit I opened ff with jssh from terminal and was able to telnet only if I was a super user. When I run the firewatir test from eclipse I need to quit ff . So when I run the test ff should be up with jssh but at the same time ff should be down because only one instance allowed running firewatir. How should it work? Shlomit == 2 of 2 == Date: Fri, Oct 23 2009 12:02 am From: Angrez Singh Which OS are you using? As far as I know, when you run Firefox test in opens up a new Firefox instance with JSSh enabled. Never ran the test via eclipse. Can you post your further queries on watir-general@googlegroups.com so that more people can help you? Thanks, Angrez On Fri, Oct 23 --~--~-~--~~~---~--~~ 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: Help required regarding link method
can you try this? Browser.link(:xpath,//i...@title='Photogallerysanity']/a).flash() or click() - Angrez On Thu, Oct 22, 2009 at 5:03 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: I also tried to use using Xpath. i.e. Browser.link(:xpath,//a...@href='/Nikes/photo_gallery/attachments/218/edit?media=print']/).text # = Edit Still no success.Is there something wrong with the above code? On Thu, Oct 22, 2009 at 4:55 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Sorry again, Yes i read the tutorial. I tried some stunts but no success.So posted my queries here. On Thu, Oct 22, 2009 at 4:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:47 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Have you read the tutorial? http://wiki.openqa.org/display/WTR/Tutorial You did not answer this. Ž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: firewatir not able to recognise the text box
Can you post the HTML and your ruby code for the same? On Thu, Oct 22, 2009 at 5:14 PM, arihan sinha arihan.si...@googlemail.comwrote: Hi All, When i am running the ruby test from eclipse , the text box in the firefox is not getting recognised because of id=advSearchFirstSearchTerm class=adv_searchTerm type=text value= name=firstSearchTerm onfocus=select() style=background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial I've used all the possible methods like set/type in the text box by using id/name but no result. ( The section in the red is coming automatically) The same test is working ok if i dont run it from eclipse ( of course the section in the red is not coming ). Always working ok in IE6.0/IE7.0 any solution to this Thanks arihan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: firewatir not able to recognise the text box
works for me: require 'watir' # the controller require 'test/unit/ui/console/testrunner' require 'test/unit/testsuite' class Sampletest Test::Unit::TestCase def test_firefox $ie = FireWatir::Firefox.new $ie.goto('http://www.thelancet.com/advancedsearch') $ie.text_field(:name, firstSearchTerm).set(blood) sleep 5.0 $ie.close end end - Angrez On Thu, Oct 22, 2009 at 9:07 PM, arihan sinha arihan.si...@googlemail.comwrote: Thanks Angrez for looking into it. The html code div class=adv_search_box input type=text onfocus=select() class=adv_searchTerm id= advSearchFirstSearchTerm name=firstSearchTerm value=/ in select size=1 name=firstFieldName id=firstFieldName option value=AllFields All Fields /option option value=ArticleTitleAbstractKeywords Article Title, Abstract, Keywords /option option value=Authors Authors /option option value=ArticleTitle Article Title /option option value=Abstract Abstract /option /select *The rubycode* require 'watir' # the controller include Watir require 'test/unit/ui/console/testrunner' require 'test/unit/testsuite' require 'firewatir' include FireWatir class Sampletest Test::Unit::TestCase def test_firefox $ie = FireWatir::Firefox.new $ie.goto('http://www.thelancet.com/advancedsearch') $ie.text_field(:name, firstSearchTerm).set(blood) sleep 5.0 $ie.close end end *The errors* 1) Error: test_firefox(Sampletest): SystemStackError: stack level too deep c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/container. rb:451:in `js_eval_method' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBas eElement.rb:991:in `enabled?' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBas eElement.rb:977:in `assert_enabled' c:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:266:in `focus' c:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:267:in `focus' c:/apps/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/htmlelemen ts.rb:1339:in `set' watir_Sample.rb:22:in `test_firefox' 1 tests, 0 assertions, 0 failures, 1 errors Please let me know if you need anything else. Thanks Arihan On Thu, Oct 22, 2009 at 1:58 PM, Angrez Singh ang...@gmail.com wrote: Can you post the HTML and your ruby code for the same? On Thu, Oct 22, 2009 at 5:14 PM, arihan sinha arihan.si...@googlemail.com wrote: Hi All, When i am running the ruby test from eclipse , the text box in the firefox is not getting recognised because of id=advSearchFirstSearchTerm class=adv_searchTerm type=text value= name=firstSearchTerm onfocus=select() style=background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial I've used all the possible methods like set/type in the text box by using id/name but no result. ( The section in the red is coming automatically) The same test is working ok if i dont run it from eclipse ( of course the section in the red is not coming ). Always working ok in IE6.0/IE7.0 any solution to this Thanks arihan --~--~-~--~~~---~--~~ 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: Close All browsers and Firewatir
I'll implement one for this. Should be a easy task to do. On Fri, Oct 9, 2009 at 2:08 AM, orde ohil...@gmail.com wrote: According to this page, there's no close_all method for firewatir: http://wiki.openqa.org/display/WTR/Firewatir+Compatibility Could be out of date, though... On Oct 7, 11:28 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi Is it possible to close all firefox instances open with FireWatir?? Please let me know Thanks Pallavi. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: FireWatir and FileDownload
Right now if you are using FireWatir on Windows you can use AutoIT to interact with the windows dialog. Its trial error I don't have much idea about how to go about it (AutoIT). Thanks, Angrez On Wed, Oct 7, 2009 at 6:38 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi All How can i do File Download operation using FireWatir, the solution with watir doesn't work.Any help on this please. Thanks Pallavi. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to ensure Firewatir always opens with the jssh
If you are opening it via Firewatir it will always open with JSSh enabled. Else you can use the following command: [Firefox Installation Directory]\firefox.exe -jssh - Angrez On Thu, Oct 8, 2009 at 12:29 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Can anyone here tell me how can i ensure that whenever i open a new instance of Firewatir jssh is enabled?? Thanks Pallavi --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---