[wtr-general] 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
Hi Friends, I just came across this problem in firewatir .Please help me out-error is as following- * 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* Thanks Abhirevo -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option
Are you running this on Linux and is SElinux enabled? Did you check the firewall setting? On Mon, Dec 13, 2010 at 1:12 PM, abhirevo1 abhi.r...@gmail.com wrote: Hi Friends, I just came across this problem in firewatir .Please help me out-error is as following- * 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* Thanks Abhirevo -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option
No, i am using Win 7 and i am having manual proxy configuration with port 8080.Do you mean that this is produing some problem .If yes , please tell me with which setting i should go for ? Thanks Abhirevo On Mon, Dec 13, 2010 at 11:46 PM, Basim Baassiri ba...@baassiri.ca wrote: Are you running this on Linux and is SElinux enabled? Did you check the firewall setting? On Mon, Dec 13, 2010 at 1:12 PM, abhirevo1 abhi.r...@gmail.com wrote: Hi Friends, I just came across this problem in firewatir .Please help me out-error is as following- * 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* Thanks Abhirevo -- 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] 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
Try this link out http://windows.microsoft.com/en-CA/windows-vista/Open-a-port-in-Windows-Firewall http://windows.microsoft.com/en-CA/windows-vista/Open-a-port-in-Windows-FirewallI found it by /searching/ google adding ports to windows 7 firewall On Mon, Dec 13, 2010 at 1:20 PM, abhirevo1 abhi.r...@gmail.com wrote: No, i am using Win 7 and i am having manual proxy configuration with port 8080.Do you mean that this is produing some problem .If yes , please tell me with which setting i should go for ? Thanks Abhirevo On Mon, Dec 13, 2010 at 11:46 PM, Basim Baassiri ba...@baassiri.cawrote: Are you running this on Linux and is SElinux enabled? Did you check the firewall setting? On Mon, Dec 13, 2010 at 1:12 PM, abhirevo1 abhi.r...@gmail.com wrote: Hi Friends, I just came across this problem in firewatir .Please help me out-error is as following- * 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* Thanks Abhirevo -- 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.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
[wtr-general] Re: Undefined method add_assertion
rspec uses a .should method to do validation (aka 'assertions'). so rather than trying to re-create a validation wheel, you should use the existing paradigm that is a part of rspec/cucumber browser.link(:how, what).should exist browser.title.should equal the expected page title I'd suggest picking up a copy of 'The Rspec Book' from Pragmatic Programmers if you will be working with rspec (or cucumber) a lot. I believe it also goes into how you can create new matchers, so you can do things like .should be_visible or .should be_enabled etc. (the watircraft framework was designed to work with rspec/cucumber, and and defined some custom matchers for things like that. You might want to look at it, but be aware there is not a lot of active development on it right now.) On Dec 12, 11:14 pm, Ivan Chung chun...@gmail.com wrote: I could be using the wrong structure but my purpose is actually construct a class that passing an object to perform the assertion check and i am using rspec for reporting in html. objToValidate = ff.link(:text,'Login').exist? val = SomeTest.new() val.Validate(objToValidate) Please advice on what is the best or correct way to do this Thanks Ivan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: help-please: cucumber-watir tutorial
http://www.pragprog.com/titles/achbd/the-rspec-book buy and read On Dec 12, 4:39 pm, Basim Baassiri ba...@baassiri.ca wrote: Have you read any information herehttp://www.cuke4ninja.com/ On Sun, Dec 12, 2010 at 12:40 PM, Irfan Ahmed irfan...@gmail.com wrote: Hi, Anybody here who can provide some tutorial links/books on Cucumber- Watir-Wevdriver? I need this help very urgently. Please help me. -- 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- Hide quoted text - - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] 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
There was no problem in firewall settings .It was problem with firefox version that is 3.6.You can get more info on http://wiki.openqa.org/display/WTR/FireWatir+Installation . Thanks Abhirevo On Mon, Dec 13, 2010 at 11:58 PM, Basim Baassiri ba...@baassiri.ca wrote: Try this link out http://windows.microsoft.com/en-CA/windows-vista/Open-a-port-in-Windows-Firewall http://windows.microsoft.com/en-CA/windows-vista/Open-a-port-in-Windows-FirewallI found it by /searching/ google adding ports to windows 7 firewall On Mon, Dec 13, 2010 at 1:20 PM, abhirevo1 abhi.r...@gmail.com wrote: No, i am using Win 7 and i am having manual proxy configuration with port 8080.Do you mean that this is produing some problem .If yes , please tell me with which setting i should go for ? Thanks Abhirevo On Mon, Dec 13, 2010 at 11:46 PM, Basim Baassiri ba...@baassiri.cawrote: Are you running this on Linux and is SElinux enabled? Did you check the firewall setting? On Mon, Dec 13, 2010 at 1:12 PM, abhirevo1 abhi.r...@gmail.com wrote: Hi Friends, I just came across this problem in firewatir .Please help me out-error is as following- * 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* Thanks Abhirevo -- 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.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
[wtr-general] Re: unable to click on list list item inside a div
(The OP appears to have deleted their original message.. not sure why, but since others may havesimilar issues, I'll respond anyway) What you have there is not a select list. It's an unordered list, that is made to look and behave like a select list via extensive Javascript reacting to events such as onmouseover, onclick, etc. The first step is to realise that since this is not a true HTML 'select list' element, you can't use standard methods to check the settings of the list, select an item etc. Instead you are going to need to interact with this thing at least partially like a user does. That means making some careful observations as to just exactly how the control is working.. for example, does the list 'open up' when you float the mouse over it? Do list items change appearance when the mouse is over them? This will give you some clues as to what actions you might need to simulate. It is not uncommon for the javascript to have hidden and de-activated the various 'list items' so you often cannot just go to directly clicking on the item as if it was a select list (something watir knows how to do) Instead you may have to simulate putting the mouse over the list, allow time for it to open, simulate putting it over an item, and clicking on the item. Also since javascript rendering takes time, you often can't just fire the scripted items at it at full speed, you may need small pauses between each step to allow the page to be reformateed etc. I usually start with a half second, and then once things are working you can try adjusting down to speed up the script, as long as it does not break things. browser.span(:class, menuLink).fire_event(onmouseover) sleep .5 browser.li(:text, LED Settings).fire_event(onmouseover) sleep .5 browser.li(:text, LED Settings).click # or if .click doesn't work try browser.li(:text, LED Settings).fire_event(onclick) On Dec 11, 5:43 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: What have you tried? Željko On Saturday, December 11, 2010, mike_sukhi sukhija...@gmail.com wrote: PLease any body help MEEE On Dec 11, 1:49 pm, Arto Vuori vuo...@iki.fi wrote: Try fire_event with onclick. --A. Vuori On Dec 11, 10:31 am, mike_sukhi sukhija...@gmail.com wrote: hi the code is : li id=MI_4span onclick=ChangeContent('setvid.htm'); onmouseout=MainMenuOut(this,'application') onmouseover=MainMenuIn(this,'application') class=menuLinka href=#Application/a/spanul class=applicationSubspanSetting/span li class=currentVideo File/lili onclick=ChangeContent('setftp.htm'); onmouseout=MainMenuOut(this,'ftp') onmouseover=MainMenuIn(this,'ftp') class=menuLinkFTP/li li onclick=ChangeContent('setcard.htm'); onmouseout=MainMenuOut(this,'app_sd_card') onmouseover=MainMenuIn(this,'app_sd_card') class=menuLinkSD Card/ li li onclick=ChangeContent('setsmtp.htm'); onmouseout=MainMenuOut(this,'smtp') onmouseover=MainMenuIn(this,'smtp') class=menuLinkSMTP/li li onclick=ChangeContent('led.htm'); onmouseout=MainMenuOut(this,'LED Settings') onmouseover=MainMenuIn(this,'LED Settings') class=menuLinkLED Settings/li/ul ul class=applicationSubspanRecord/spanli onclick=ChangeContent('renable.htm'); onmouseout=MainMenuOut(this,'enable_rec') onmouseover=MainMenuIn(this,'enable_rec') class=menuLinkEnable Record/li li onclick=ChangeContent('rsch.htm'); onmouseout=MainMenuOut(this,'schedule') onmouseover=MainMenuIn(this,'schedule') class=menuLinkSchedule/ li/ul after clicking on Application the list items visible.inside like a vertical menu.bar.. i have to click on sd card ..SMTP..like page..these are links..on clicking thm page loads..plz help me to do this ..plzz Thanks in advance -- 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- Hide quoted text - - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Can not get url of a page when using firewatir
Hi friends, When i using firewatir i found that i can not using the url api to get the href of a page. The version of firewatir is 1.6.5. Is there any suggestions about this? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: help-please: cucumber-watir tutorial
that's on my wish list. i'll probably buy it next. dave On Dec 13, 10:39 am, Chuck van der Linden sqa...@gmail.com wrote: http://www.pragprog.com/titles/achbd/the-rspec-book buy and read On Dec 12, 4:39 pm, Basim Baassiri ba...@baassiri.ca wrote: Have you read any information herehttp://www.cuke4ninja.com/ On Sun, Dec 12, 2010 at 12:40 PM, Irfan Ahmed irfan...@gmail.com wrote: Hi, Anybody here who can provide some tutorial links/books on Cucumber- Watir-Wevdriver? I need this help very urgently. Please help me. -- 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- Hide quoted text - - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Can not get url of a page when using firewatir
What error you are getting? On Tue, Dec 14, 2010 at 6:54 AM, Ekin Han nbkhic...@gmail.com wrote: Hi friends, When i using firewatir i found that i can not using the url api to get the href of a page. The version of firewatir is 1.6.5. Is there any suggestions about this? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.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] Can not get url of a page when using firewatir
no error, but using when i puts the url, it outputs an empty string. for example b = FireWatir::Firefox.start(url) puts b.url = ''an empty string outputs. I have got another problem when using firewaitr there is a button on the page, after click it, an js alert will be shown. i use the following code to handle it. button = b.button(:id, '') button.click puts 'xxx' handle_js puts 'done' but when the button was clicked, the whole script was holding, maybe waiting for the pop up... then i used click_no_wait instead, but it did not work. How can i handle this satuasion? 2010/12/14 abhirevo1 abhi.r...@gmail.com What error you are getting? On Tue, Dec 14, 2010 at 6:54 AM, Ekin Han nbkhic...@gmail.com wrote: Hi friends, When i using firewatir i found that i can not using the url api to get the href of a page. The version of firewatir is 1.6.5. Is there any suggestions about this? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.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: are you sure you want to navigate from this page.
Thanks Darry for the reply I have tried all the posible options which are given in the links.but no luck.i have facing the same problem.. i am using the following. IE 6.0 Watir 1.6.5 Please let me know if you have any other solution. Regards, Ramu On Sat, Dec 11, 2010 at 7:26 PM, Darryl Brown d-l-br...@roadrunner.comwrote: Hello Basim, The dialogue that contains Are you sure you want to navigate from this page is commonly known as a popup. They can readily be handled in Watir. Just read the links provided by Željko. Give them a try. If it doesn't work, post what you tried. Regards, Darryl On Dec 9, 9:03 am, Basim Baassiri ba...@baassiri.ca wrote: Are you able to disable some of the security settings in IE? On Thu, Dec 9, 2010 at 7:26 AM, Ramu Gadde ramu.ga...@gmail.com wrote: Hi All, Can any one help to handle this message are you sure you want to navigate from this page. in IE 6 using ruby and watir. I tried in different ways. so please give me your valuable suggestion and solutions. Thanks in advance. Regards, Ramu -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com http://groups.google.com/group/watir-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 -- Regards, Ramu. 9000101030. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Clicking OK javascript confirm popup?
I am using solution #6 from http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups. The Javascript popup disappears fine, but the underlying web application does not operate normally. I change 'Search Settings' in Google. I click on the Save Preferences button when I have finished updating the Google Search Settings and then click the OK button on the Javascript popup. If I do this manually the page goes back to the Google home page, but if I do it with Ruby-Watir the control stays on the Search Settings page. I have Watir 1.6.7 with ruby 1.8.7 (2010-08-16 patchlevel 302) [i386- mingw32] David On Dec 12, 11:23 am, Jarmo Pertman jarm...@gmail.com wrote: Use the simplest way to handleJavaScriptpopups described in the wiki athttp://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups Jarmo Pertman - IT does really matter -http://www.itreallymatters.net On Dec 7, 2:31 am, Eric Mathiesen mathiese...@gmail.com wrote: Have you tried using .fire_event? Sry I'm on my cell On Dec 2, 2010 11:42 PM, slindsey3000 slindsey3...@gmail.com wrote: I have read quite a few things online over the last 2 days about clicking OK in ajavascriptconfirm pop-up. I have been unable to select ok using watir and IE. Here is the div -- div class=actions_wrapper clearfix p id=delete_threads class=btn small white small_white style= onmousedown=util.toggleClass(this, 'active') onmouseup=util.toggleClass(this, 'active') onmouseover=util.toggleClass(this, 'hover') onmouseout=util.toggleClass(this, 'hover')a href=#delete id= class= onclick=if(confirm('Deleting means no going back.')) {Mailbox.deleteThreads();} return false; target=Delete selected conversations/a/p p id=select_all_threads class=btn small white small_white style= onmousedown=util.toggleClass(this, 'active') onmouseup=util.toggleClass(this, 'active') onmouseover=util.toggleClass(this, 'hover') onmouseout=util.toggleClass(this, 'hover') a href=#selectall id= class= onclick=Mailbox.toggleThreadSelection(); return false; target=Select all/a/p /div My code -- browser.link(:text, Delete selected conversations).click_no_wait ??? -- End of code This (above) line triggers thejavascriptconfirm dialog. What goes in the ??? ... I have tried about 50 different things. My inexperience has gotten the best of me here with watir. Any help or direction appreciated. It seems like it should be easy and common to have to click onjavascriptOK buttons. Thanks! Shawn -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-gene...@googlegroups.comhttp://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