[wtr-general] Need help on jssh installation for firefox
Hi, I started working on Firewatir, I have installed firewatir using new installation procedure as described in the Watir overview page. I have even installed the jssh as per the instructions. I have done lot of scripting for IE. I started with the firewatir example getting following error `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option (Watir::Exception::UnableToStartJSShException) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:161:in `initialize' Pls help me out to come out of this issue. Thanks in advance, Chethan --~--~-~--~~~---~--~~ 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: example problem
If you have gems, then add require 'rubygems' before require 'watir' or add environment variable RUBYOPT=-rubygems Jarmo On May 31, 8:55 am, James j.s.west...@gmail.com wrote: ok completely new to the world of ruby as well as programming The final goal is too scrape an ajax site... if I understand currently I need both watir and firewatir? I am trying to go through some online examples and am trying to complete the google_search.rb example that seems to be floating around. I don't think the program is running properly when I require watir because I get the error google_search.rb:14:in `require': no such file to load -- watir (LoadError) any idea what this means? I am running windows xp thanks for the help 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: Need help on jssh installation for firefox
Chethan, try starting firefox from the command line with the jssh option ... firefox -jssh then start a terminal session from the command line telnet localhost 9997 you should then get a connection with the following feedback: Welcome to the Mozilla JavaScript Shell! if that is not working then somthing is wrong with the jssh installation... Jason. On 2 Jun., 09:44, Chethan chethan2...@gmail.com wrote: Hi, I started working on Firewatir, I have installed firewatir using new installation procedure as described in the Watir overview page. I have even installed the jssh as per the instructions. I have done lot of scripting for IE. I started with the firewatir example getting following error `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option (Watir::Exception::UnableToStartJSShException) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:161:in `initialize' Pls help me out to come out of this issue. Thanks in advance, Chethan --~--~-~--~~~---~--~~ 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: forms in subframes - elements not found
ok so i have taken a look at the locate_tagged_element method and it looks like it cannot handle elements of objects in nested frames! Can anyone confirm this? i.e. anyone out there that can get elements (i.e. the select list) of a form sitting in a nested frame thanks Jason. On 29 Mai, 21:34, George george.sand...@gmail.com wrote: It looks like this select list is in an IFRAME tag, so this might be a difficult task to do. On May 29, 7:59 am, jason jason.franklin.sto...@gmail.com wrote: Hi Alan - sorry the index instead of :index in my original message was a typo. so ff.frame(:index, 1).form(:name, lay0803234_src350a).select_list (:id, LOV6) does not work either. On May 27, 11:14 pm, Alan Ark ar...@compli.com wrote: Try ff.frame(:index, 1).form(:name, lay0803234_src350a).select_list(:id, LOV6) :index rather than index -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of jason Sent: Wednesday, May 27, 2009 6:02 AM To: Watir General Subject: [wtr-general] forms in subframes - elements not found Hi - here is the issue, to get some element of a form - you can do this... url = http://www.siemens.de/jobs/jobs_bewerbung/jobboerse/Seiten/ jobboerse.aspx ff = FireWatir::Firefox.new ff.goto(url) ff.form(:name, lay0803234_src350a).select_list(:id, LOV6) however, if the form happens to be in a subframe, like this ff.frame(index, 1).form(:name, lay0803234_src350a).select_list(:id, LOV6) then firewatir terminates with `assert_exists': Unable to locate element using :id, LOV6 (Watir::Exception::UnknownObjectException) does anyone have any ideas on this?? help would be highly appreciated!! Jason. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Need help on jssh installation for firefox
ok, when you installed the jssh extention did the firefox plugin manager tell you that the installation was ok did it restart the browser after the installation - if not , then try installing it again. On 2 Jun., 11:13, Chethan chethan2...@gmail.com wrote: I tried it. still no use, I did the Jssh installation fromhttp://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirIn... link i started firefox using firefox.exe -jssh, Then i did telnet localhost 9997, this gave me following error Connecting To localhost...Could not open connection to the host, on port 9997: C onnect failed Thanks, Chethan --~--~-~--~~~---~--~~ 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 I can verify whether all the images of a web page have been loaded or not?
Hi Maumita, I had problems with pages comming back as loaded even though were still loading and so i changed the wait method slightly and it works fine now. def wait(last_url = nil) #puts In wait function isLoadingDocument = start = Time.now while isLoadingDocument != 0 # puts #{BROWSER_VAR}=#{WINDOW_VAR}.getBrowser(); # {BROWSER_VAR}.selectedBrowser.webProgress.busyFlags isLoadingDocument = js_eval(#{BROWSER_VAR}=# {WINDOW_VAR}.getBrowser(); # {BROWSER_VAR}.selectedBrowser.webProgress.busyFlags) # isLoadingDocument = js_eval(#{BROWSER_VAR}=# {WINDOW_VAR}.getBrowser(); # {BROWSER_VAR}.webProgress.isLoadingDocument;) #puts Is browser still loading page: #{isLoadingDocument} #puts Is browser still loading page: #{isLoadingDocument} sleep(0.25) # Derek Berner 5/16/08 # Raise an exception if the page fails to load if (Time.now - start) 300 raise Page Load Timeout end end # Derek Berner 5/16/08 # If the redirect is to a download attachment that does not reload this page, this # method will loop forever. Therefore, we need to ensure that if this method is called # twice with the same URL, we simply accept that we're done. $jssh_socket.send(#{BROWSER_VAR}.contentDocument.URL;\n, 0) url = read_socket() if(url != last_url) # Check for Javascript redirect. As we are connected to Firefox via JSSh. JSSh # doesn't detect any javascript redirects so check it here. # If page redirects to itself that this code will enter in infinite loop. # So we currently don't wait for such a page. # wait variable in JSSh tells if we should wait more for the page to get loaded # or continue. -1 means page is not redirected. Anyother positive values means wait. jssh_command = var wait = -1; var meta = null; meta = # {BROWSER_VAR}.contentDocument.getElementsByTagName('meta'); if(meta != null) { var doc_url = # {BROWSER_VAR}.contentDocument.URL; for(var i=0; i meta.length;++i) { var content = meta[i].content; var regex = new RegExp(\^refresh$\, \i\); if(regex.test(meta[i].httpEquiv)) { var arrContent = content.split(';'); var redirect_url = null; if(arrContent.length 0) { if(arrContent.length 1) redirect_url = arrContent[1]; if(redirect_url != null) { regex = new RegExp(\^.*\ + redirect_url + \$\); if(!regex.test(doc_url)) { wait = arrContent[0]; } } break; } } } } wait; #puts command in wait is : #{jssh_command} jssh_command = jssh_command.gsub(/\n/, ) $jssh_socket.send(#{jssh_command}; \n, 0) wait_time = read_socket(); #puts wait time is : #{wait_time} begin wait_time = wait_time.to_i if(wait_time != -1) sleep(wait_time) # Call
[wtr-general] Re: Need help on jssh installation for firefox
Which platform? OS? it would be nice to have that info to help you more - Angrez On Tue, Jun 2, 2009 at 3:04 PM, jason jason.franklin.sto...@gmail.comwrote: ok, when you installed the jssh extention did the firefox plugin manager tell you that the installation was ok did it restart the browser after the installation - if not , then try installing it again. On 2 Jun., 11:13, Chethan chethan2...@gmail.com wrote: I tried it. still no use, I did the Jssh installation fromhttp:// wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirIn... link i started firefox using firefox.exe -jssh, Then i did telnet localhost 9997, this gave me following error Connecting To localhost...Could not open connection to the host, on port 9997: C onnect failed Thanks, Chethan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Need help on jssh installation for firefox
Hi, I am using window-Xp(sp2) my Firefox version is 3.0.10. Rgds, Chethan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Need help on jssh installation for firefox
did you install the jssh firefox plugin??? On 2 Jun., 14:05, Chethan chethan2...@gmail.com wrote: I installed the Firewatir with new method rather then gem install firewatir command, I done that through gem install watir online how the new Watir overview describes. Thanks, Chethan On Jun 2, 3:04 pm, Chethan chethan2...@gmail.com wrote: Hi, I am using window-Xp(sp2) my Firefox version is 3.0.10. Rgds, Chethan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Need help on jssh installation for firefox
Yes I installed Jssh plug in but if i do telnet localhost 9997 it say there is no service running on 9997 port. That is what i described in my earlier mails. Thanks, Chethan On Jun 2, 5:30 pm, jason jason.franklin.sto...@gmail.com wrote: did you install the jssh firefox plugin??? On 2 Jun., 14:05, Chethan chethan2...@gmail.com wrote: I installed the Firewatir with new method rather then gem install firewatir command, I done that through gem install watir online how the new Watir overview describes. Thanks, Chethan On Jun 2, 3:04 pm, Chethan chethan2...@gmail.com wrote: Hi, I am using window-Xp(sp2) my Firefox version is 3.0.10. Rgds, Chethan --~--~-~--~~~---~--~~ 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] bring_to_front()
I'm trying to add a bring_to_front() to Bret's 'Pragmatic Bookshelf' example from the Watir training class. I''m running watir-1.6.2 on XP using IE6. All goes well until I try to stick in a bring_to_front() command as follows (these are the opening lines of the script): require 'rubygems' require 'watir' #Link to Store browser = Watir::Browser.start('http://localhost:3000/store') browser.bring_to_front() The addition of browser.bring_to_front() causes the following error: ruby PragmaticBookshelfExercise.rb C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': unknown OLE server: `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x800401f3 Invalid class string from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: 113:in `new' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: 113:in `autoit' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 425:in `autoit' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 413:in `bring_to_front' from PragmaticBookshelfExercise.rb:6 Exit code: 1 Looking for answers or ideas. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: bring_to_front()
You need to register the autoit dll. Follow this thread: http://groups.google.com/group/watir-general/browse_thread/thread/f58e3598b03a9111 Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Jun 2, 2009 at 10:46 AM, Monkeybuns shaml...@twia.org wrote: I'm trying to add a bring_to_front() to Bret's 'Pragmatic Bookshelf' example from the Watir training class. I''m running watir-1.6.2 on XP using IE6. All goes well until I try to stick in a bring_to_front() command as follows (these are the opening lines of the script): require 'rubygems' require 'watir' #Link to Store browser = Watir::Browser.start('http://localhost:3000/store') browser.bring_to_front() The addition of browser.bring_to_front() causes the following error: ruby PragmaticBookshelfExercise.rb C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': unknown OLE server: `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x800401f3 Invalid class string from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: 113:in `new' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: 113:in `autoit' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 425:in `autoit' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 413:in `bring_to_front' from PragmaticBookshelfExercise.rb:6 Exit code: 1 Looking for answers or ideas. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: override js confirm FireWatir
when you say 'without success what does that mean? what happens? do you get an error? more detailed info on what happens will help others with troubleshooting this. Have you reviewed the general info on the types of popups and how to handle them? http://wiki.openqa.org/display/WTR/Pop+Ups Different kinds of popups require different techiques to address them, so if the technique you are using is implemened correctly, but not the right one for your popup, well that would explain why you are 'without success' ;-) On Jun 2, 9:03 am, aidy lewis aidy.le...@googlemail.com wrote: Hi, I am trying to override a js confirm in FireWatir: $jssh_socket.send(window.confirm=function(){return true};\n, 0) read_socket Without success, has anyone managed to do this? 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: bring_to_front()
Worked like a charm, Charley. Thank you! On Jun 2, 11:52 am, Charley Baker charley.ba...@gmail.com wrote: You need to register the autoit dll. Follow this thread:http://groups.google.com/group/watir-general/browse_thread/thread/f58... Charley Baker blog:http://blog.charleybaker.org/ Lead Developer, Watir,http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Jun 2, 2009 at 10:46 AM, Monkeybuns shaml...@twia.org wrote: I'm trying to add a bring_to_front() to Bret's 'Pragmatic Bookshelf' example from the Watir training class. I''m running watir-1.6.2 on XP using IE6. All goes well until I try to stick in a bring_to_front() command as follows (these are the opening lines of the script): require 'rubygems' require 'watir' #Link to Store browser = Watir::Browser.start('http://localhost:3000/store') browser.bring_to_front() The addition of browser.bring_to_front() causes the following error: ruby PragmaticBookshelfExercise.rb C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': unknown OLE server: `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x800401f3 Invalid class string from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: 113:in `new' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: 113:in `autoit' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 425:in `autoit' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 413:in `bring_to_front' from PragmaticBookshelfExercise.rb:6 Exit code: 1 Looking for answers or ideas. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: forms in subframes - elements not found
On May 29, 7:58 am, jason jason.franklin.sto...@gmail.com wrote: Michael, thanks for the feedback. as mentioned above that works fine - however is not much use becasue the select list has no relationship to the form that contains it. no, but it would be the correct list (unless your devs are abusing hml) since there is only one instance of that ID allowed, so it would be selecting the corrrect selection list. This seems perhaps to be something limited to Firewatir however.. since with Watir and IE7 as my browser I'm able to perform the function you indicated browser.frame(:index, 1).form(:name, lay0803234_src350a).select_list(:id, LOV6) without a problem. One thing to check, use .show_frames and make sure you have the right one. with IE it's index 1 for the frame you want. There is another frame on the page but that's index 2. I'm not sure if it's possible, but maybe good to check that the order is still the same in FF. Can you do it from IRB or a watircraft console, and see if you can flash the form ? browser.frame(:index, 1).form(:name, lay0803234_src350a).flash that would tell you if you have the right container. for the list and can address it. Not sure if it helps to know I can't duplicate your issue when using IE, but there it is. your code is, in theory anyway (once we eliminate the index for :index typo), sound. so I'd think it ought to work with FF as well as with IE --~--~-~--~~~---~--~~ 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: override js confirm FireWatir
Aidy, I'm guessing and not strong on Javascript, but might it be the lack of a semi-colon after 'return true'? Best wishes, Alex Collins On 2 Jun 2009, at 17:03, aidy lewis wrote: Hi, I am trying to override a js confirm in FireWatir: $jssh_socket.send(window.confirm=function(){return true};\n, 0) read_socket Without success, has anyone managed to do this? 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: example problem
To be more clear, the current version of Watir has integrated in the Firewatir driver.. so you get both Watir and Firewatir when you install it. Most functions are pretty much equally supported on both browsers. and the way things work you now institute an instance of 'browser' which can be either IE or FF, and call most of your methods against that. (see http://wiki.openqa.org/display/WTR/Browser.new) The nice thing is that now I have scripts that do things like: browser.link(:text, clickme).click and they can be developed against either IE or FireFox, and then quickly switched (via a few different methods depending on what works best for you) to run against the other browser. not all of the tutorial and sample code has caught up to the new paradigm, so you will see a lot of code there, and also posted here, where people will write 'ie.method..' and 'ff.method...'but now adays we'd typically say 'browser.method' (and some will shorten that to bro.method, or br, or just b (although there's a bit of a preference style wise among ruby programmers to only use single letter variables for iterators) ) Hopefully that eliminates a bit of the confusion instead of just causing more. On May 30, 10:55 pm, James j.s.west...@gmail.com wrote: ok completely new to the world of ruby as well as programming The final goal is too scrape an ajax site... if I understand currently I need both watir and firewatir? I am trying to go through some online examples and am trying to complete the google_search.rb example that seems to be floating around. I don't think the program is running properly when I require watir because I get the error google_search.rb:14:in `require': no such file to load -- watir (LoadError) any idea what this means? I am running windows xp thanks for the help 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: how to select rows under grid for EXTJS code using watir.
There have been a number of threads here in the last month or two dealing with various aspects of automating websites based on code form this company (search the group for EXTJS and you will find them) Not all of the threads end in success. The webpage code that results when using this company's products contains large numbers of nested objects all in the same spot on the page, and most of the events being monitored by what objects is defined outside of the main page code. This makes it extremely difficult for someone using a traditional tool like the IE Developer Toolbar, or FireBug to tell what objects are responding to what events.. (onmouseover, onmousedown, etc). Normally a tiny bit of perusing the code in one of those tools and you will see 'oh that element there is setup to respond to a 'onMouseDown' event and you try firing that event at that element, and voila things happen. So far (at least for me) I've had no such luck with the EXTJS code, and all that's made me do is be very very very happy that my company isn't using it (lets hear it for jquery) I would strongly recommend in this case seeking advice directly from the EXTJS folks via their forums http://extjs.com/forum/ because while the folks here can tell you a lot about using Watir, and Ruby and such, we don't know for example which of 2 or 6 overlapping objects on the page are looking to have a onMouseDown event fired at them in order to click a tab or table cell. Nor what pre-conditions are needed for that to 'take'. The 'obvious' and 'normal' (like simply clicking a link or button with the .click method) apparently need not apply where their stuff is concerned. A few of us have even tried (with what free time we could afford to investigate the issue) to play around with their sample pages on their sites, and been stumped by something as simple as clicking a tab control. These are things that are not normally difficult, and most of us easily handle automating similar tasks every day when testing similar (but not based on EXTJS) controls on our employers websites. If you do get some good answers (in the form of perhaps say some simple sample WATIR code to manipulate things on some of the EXTJS sample pages, please post it back here so other folks who are stuck trying to automate similar things can benefit from your experience. On May 26, 12:14 am, Bhavesh bhavesh1_sha...@yahoo.com wrote: Hi, I have to select the row under Grid which is anextjscode. When we have a grid, and want to select a row in the grid, for some reason we cannot select it. We have sent click events and it appears that we're getting the right row (watir highlights the row in the browser), but our app code doesnt get the event from ext-js. Can some one help me how can i click/select this row, so that i can go ahead. Any help is appriciated. Bhavesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Need help on jssh installation for firefox
Yes I am admin user for the machine i am using. Here are the steps i followed. 1. browse to http://wtr.rubyforge.org/ 1. Installed Ruby from http://rubyforge.org. 2. from command prompt entered gem update --system 3. then entered gem install watir 4. installed firefox add-on Jssh from the wtr.rubyforge.org site 5. run manually C:\Program Files\Mozilla Firefoxfirefox.exe -jssh 6 checked for Jssh port by telnet localhost 9997 Following error was seen Connecting To localhost...Could not open connection to the host, on port 9997: C onnect failed I am using windows XP(sp2) firefox version is 3.0.10 jssh version is 0.9 Thanks, Chethan On Jun 2, 6:10 pm, Angrez Singh ang...@gmail.com wrote: Are you an admin user on your machine? I use Firewatir a lot on my machine (Windows XP SP2) with Firefox 3.0.10) and never faced any problem with jssh. - Angrez On Tue, Jun 2, 2009 at 6:04 PM, Chethan chethan2...@gmail.com wrote: Yes I installed Jssh plug in but if i do telnet localhost 9997 it say there is no service running on 9997 port. That is what i described in my earlier mails. Thanks, Chethan On Jun 2, 5:30 pm, jason jason.franklin.sto...@gmail.com wrote: did you install the jssh firefox plugin??? On 2 Jun., 14:05, Chethan chethan2...@gmail.com wrote: I installed the Firewatir with new method rather then gem install firewatir command, I done that through gem install watir online how the new Watir overview describes. Thanks, Chethan On Jun 2, 3:04 pm, Chethan chethan2...@gmail.com wrote: Hi, I am using window-Xp(sp2) my Firefox version is 3.0.10. Rgds, Chethan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---