[wtr-general] Celerity Question - java.net.ConnectException
Hi, I am having an issue with running a basic celerity script, and couldn't find a celerity mailing list so I thought I would try here. I am trying to get celerity running, and using the example script on http://celerity.rubyforge.org/ I am using JDK 1.6.0_20 JRuby 1.5.1 Celerity 0.7.9 from Gemcutter When I try to run the sample script, or any celerity script, I get the error below. Can anyone suggest something to do/try? jruby yay.rb java/net/PlainSocketImpl.java:-2:in `socketConnect': java.net.ConnectException: Connection timed out: connect (NativeException) from java/net/PlainSocketImpl.java:333:in `doConnect' from java/net/PlainSocketImpl.java:195:in `connectToAddress' from java/net/PlainSocketImpl.java:182:in `connect' from java/net/SocksSocketImpl.java:366:in `connect' from java/net/Socket.java:529:in `connect' from java/net/Socket.java:478:in `connect' from java/net/Socket.java:375:in `init' from java/net/Socket.java:249:in `init' ... 14 levels... from c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/c ontainer.rb:761:in `rescue_status_code_exception' from c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/b rowser.rb:99:in `goto' from yay.rb:5 Cheers, Alister Scott Brisbane, Australia Watir Web Master: http://watir.com Blog: http://watirmelon.com LinkedIn: http://www.linkedin.com/in/alisterscott If you never change your mind, why have one? ~ Edward de Bono -- 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: Verify tab order (tab index) on an HTML page
Below is the code to find tab order auto=WIN32OLE.new('AutoItX3.control') # mark the first control in order to prevent indefinite loop. auto.Send({TAB}) auto.Send({TAB}) element = ie.show_active tabOrder = 1 controlKey = EthDomain while (element != nil or element != ) if (element.include? (controlKey)) //controlKey : is either id or name or text break else auto.Send({TAB}) tabOrder += 1 element = ie.show_active end end puts tabOrder George wrote: Thanks, Joedio. There is a way to do this using AutoIt. If I use send_keys, then check the value of the text_field, I can determine which element has focus. Unfortunately, this won't work with buttons and links. On May 18, 9:57 am, joedio joe...@comcast.net wrote: The Watir tabindex method you used is for HTMl tags with a tabindex attribute. For example: a href=#interactive tabindex=1 Link A/a a href=#interactive tabindex=2 Link B/a As you mention, your web page is NOT using the tabindex attribute, thus the method return 0. Perhaps you could use AutoIt's send_keys command to tab through the web page, e.g. # Advance to the next object in the tabbing order browser.send_keys({TAB}) and after each command detect which object has focus. You could then collect the tabbing order, which could be saved and compared to the tabbing order found on subsequent runs. Sorry but I don't know of a means to tell which object has focus, Watir's Watir::Element class lack an in_focus? method. It has focus method to set the focus but not a method to verify if it is in focus. Perhaps someone else can assist with that. On May 14, 7:06 pm, George george.sand...@gmail.com wrote: I'm trying to verify the tab order on a login page by accessing the tabindex attribute. Unfortunately, the tabindex isn't specified in the HTML code and performing the following code isn't helping me. Does anybody have any ideas? ~~ @browser = Watir::IE.attach(:title, /Login/) puts @browser.text_field(:id, 'username').document.tabindex # returns 0 puts @browser.text_field(:id, 'username').attribute_value('tabindex') # returns 0 puts @browser.text_field(:id, 'password').document.tabindex # returns 0, expected 1 puts @browser.text_field(:id, 'password').document.tabindex # returns 0, expected 1 ~~ -- 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.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.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
[wtr-general] Re: How to handle a pop up (google chrome)
thankyou but it still not work i use watir-webdriver to run on google chrome and i didn't found lib - enabled_popup.rb for watir-webdriver and chromewatir too and i can not use click_no_wait method too so i think chromewatir not support popup , am i right? On Jun 16, 4:13 am, orde ohil...@gmail.com wrote: I generally test using IE, but this is the link to the FAQ: http://wiki.openqa.org/display/WTR/Pop+Ups Hope it helps. On Jun 14, 9:20 pm, NumOi3 numobjaka...@gmail.com wrote: Hi All, I am working with web-driver for test google chrome browser. and there's pop up is generated after clicking on a button. i need to click OK button and get text form pop up. How can i access these popup. Please help ... -- 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] Celerity Question - java.net.ConnectException
On Wed, Jun 16, 2010 at 8:41 AM, Alister Scott alister.sc...@gmail.com wrote: I am having an issue with running a basic celerity script, and couldn't find a celerity mailing list I found something, I know celerity-us...@rubyforge.org is active. http://rubyforge.org/mail/?group_id=6198 http://rubyforge.org/forum/?group_id=6198 Ž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.com
Re: [wtr-general] Element #visible?
I agree - I've brought this up on the development mailing list before. I've also changed the behavior in vapir, my fork of watir. On Wed, Jun 16, 2010 at 15:56, chandu.tennety chandu.tenn...@gmail.comwrote: Hi, The visible? method returns false for a disabled element that is visible on the screen. Is this valid behavior? The intent of the code seems to be that if an element's parent is disabled, then the current element is not visible. But if it's just the current element that is disabled, but present on the screen, shouldn't it be treated as visible? Sample code --- HTML: input type=text value=test_read_only size=30 name=user[username] id=user_username disabled=disabled Ruby/Watir: t = ie.text_field(:id, 'user_username') t.visible? # = false t.disabled? # = true t.exists? # = true FWIW, using watir_webdriver, the visible? method for the same text field above returns true, which I believe should be the case. Any thoughts? Thanks! Chandu -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Celerity Question - java.net.ConnectException
Thanks for the lead Zeljko. I found a topic on using celerity behind a firewall which fixed my problem. http://rubyforge.org/forum/forum.php?thread_id=46879forum_id=24213 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: How to handle a pop up (google chrome)
so i think chromewatir not support popup , am i right? To be honest, I really don't know since I don't use chromewatir and I don't know if chromewatir is actively supported by its primary developer at this point. If there was info on handling popups with chromewatir, I'd expect it to be on that page. Perhaps one of the more informed contributors to this forum would have a better idea (Željko?). On Jun 16, 2:59 am, NumOi3 numobjaka...@gmail.com wrote: thankyou but it still not work i use watir-webdriver to run on google chrome and i didn't found lib - enabled_popup.rb for watir-webdriver and chromewatir too and i can not use click_no_wait method too so i think chromewatir not support popup , am i right? On Jun 16, 4:13 am, orde ohil...@gmail.com wrote: I generally test using IE, but this is the link to the FAQ: http://wiki.openqa.org/display/WTR/Pop+Ups Hope it helps. On Jun 14, 9:20 pm, NumOi3 numobjaka...@gmail.com wrote: Hi All, I am working with web-driver for test google chrome browser. and there's pop up is generated after clicking on a button. i need to click OK button and get text form pop up. How can i access these popup. Please help ... -- 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] How to read a google doc or send a google mail?
I just want to have a try on the gmail and goog doc. In fact, I can use ruby-mail to get emails and send email in google. I think google mail and google doc are really welcome, if I can access them in Watir, that would be great. Wesley. For life, the easier, the better. On Mon, Jun 14, 2010 at 4:27 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Sat, Jun 12, 2010 at 7:42 AM, Wesley Chen cjq@gmail.com wrote: Problem 1: Send an gmail(Click Compose Mail link, input Email to, Subject, Email content, click Send button); Problem 2: Go to Google Documents page, open an existing DOC/PPT/excel, read the data in it. Do you need to test Gmail's web interface or just get mail from there? The same question for Docs, do you just need the data or do you need to test web interface? Ž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