Re: [wtr-general] Leveraging safariwatir on a custom webkit application
On Tue, Apr 6, 2010 at 10:54 PM, John Goodsen jgood...@radsoft.com wrote: If somebody can point me onto the right path on how to get the existing Safari scripting support built into our custom webkit application, I'll try to take it from there. Tom Copeland (http://twitter.com/tcopeland) or Dave Hoover ( http://twitter.com/redsquirrel) probably could help you, but I do not think they monitor this group. Let me know if you need their e-mails. Ž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, reply using remove me as the subject.
Re: [wtr-general] Re: FireWatir doesn't wait for the page to load after clicking a button
Watir::Waiter.wait_until{$ff.div(:text, /Done/).exists?} can also work for Firefox Wesley. For life, the easier, the better. On Thu, Feb 11, 2010 at 12:04 PM, Ramapulla Reddy ramapullare...@gmail.comwrote: I have faced same problem and firewatir allows multiple attributes to use. Try using wait_until function to check the element is loaded or not. -- 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 -- 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
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.
[wtr-general] Re: [ANN] WatiRspec 0.1.0
Actually i didn't know about WatirCraft either. I know that i have heard about it, but i thought that it is doing something else... It is indeed somehow similar to my gem and i have also (maybe) a plan to add Cucumber support... i mean, there's not much to add as a support except just an additional dependency and require statement :P Anyway, ideas seem to be somehow similar indeed. But about the name. Since i didn't know anything (i swear!) about the existence of WatirSpec name and didn't find anything on rubygems.org, then that's why i decided to pick a name called WatiRspec (notice that there's also difference in case). Since i didn't steal the name or didn't do anything else bad intentionally, then i feel that it would not be fair against me if you or someone else would force me to change the name because of these reasons. I'm not sure that name conflict can happen on rubygems... So, if Jari or someone else decides to release a gem with already existing name, then i guess that they should be the ones to change their gem's name. I don't see any other solutions here at the moment unfortunately. No hard feelings, i hope. Best regards, Jarmo On Apr 6, 9:47 pm, Charley Baker charley.ba...@gmail.com wrote: A simple gem might make sense or you can help work on the existing gems, I haven't really thought about it too much but the WatirCraft gem does simplify things and add cucumber support. My thought in best to avoid, is that watirspec isn't currently gemified, but easily could be. So while there's not a name clash right now, the possibility exists that there may be in the future. It makes sense to make Jari's current work into a gem. Thoughts? -c On Tue, Apr 6, 2010 at 12:32 PM, Jarmo Pertman jarm...@gmail.com wrote: Well, as i understood, then Taza just offers extra functionality and in deep within Watir and RSpec is used for it. But as i already mentioned, then WatiRspec is not doing much extra except combining both of these tools. And this is enough for my work. What did you mean about this probably best to avoid that name for now exactly? Jarmo On Apr 6, 3:23 am, Charley Baker charley.ba...@gmail.com wrote: Hey Jarmo, No worries. Watirspec isn't a gem yet, but may be at some point, probably best to avoid that name for now. Taza's more complex to some degree, but the basics are fairly simple. Interested to hear more about your point of view and how you see it, or anyone else for that matter. Let me know. :) Cheers, Charley Baker Lead Developer, Watir,http://watir.com QA Architect, Gap Inc Direct On Mon, Apr 5, 2010 at 7:26 AM, Jarmo Pertman jarm...@gmail.com wrote: Hi. You are correct, i didn't know anything about these projects. But as far as i looked on Taza's documentation right now, then i can say that it is a completely different library. It might have a similar idea at some degree, but Taza seems to be just a lot more complex with all those extra features, which are not needed for me. I don't plan to make WatiRspec like that. WatiRspec's main idea is that it takes RSpec and Watir and just makes it easier to use both of these tools together by providing some helper methods and that's mainly it. I haven't been very original in thinking of names, thus i named it like Watir + RSpec = WatiRspec Sorry, if i caused any troubles with that. Jarmo On Apr 3, 10:27 pm, Charley Baker charley.ba...@gmail.com wrote: How is this different from Taza? http://github.com/charley/tazawhichdoes exactly the same sort of thing. watirspec is the name of Jari's rspec tests for celerity and watir, so despite the fact that it's not a gem yet, I'd cede that name to him. Let me know if I'm offbase, maybe you didn't know about these projects. :) I'd be happy to have you involved in Taza. Cheers, Charley Baker Lead Developer, Watir,http://watir.com QA Architect, Gap Inc Direct On Fri, Apr 2, 2010 at 5:40 PM, Jarmo jarm...@gmail.com wrote: Hello. I just wanted to let you know that I've released my first gem called WatiRspec. It does combine Watir and RSpec for you so you could start testing easily and write less code. I created it because i noticed that i'm reinventing these things all the time if new client/project is started. Now it's much easier. Just enter few commands and i'm ready to start. I'm going to use it in my everyday work. It is going to be part of my diploma thesis also. It is very fresh library, so it's possible that something doesn't work as it should - although i have written tests for my code :) What do you think? Do you see any shortages? Might it be useful for you at all? You can read more about it athttp://github.com/jarmo/WatiRspec You can read about some of the principles (haven't had the time to
Re: [wtr-general] Re: [ANN] WatiRspec 0.1.0
I don't think anybody wants to force (or can force) you to use a different name, but it is being pointed out that there exists a piece of work which is already using that name (even if slightly different case). I don't think anybody is implying that you intentionally took an already-in-use name, but the basic fact is that it is in use. Using that name may create confusion amongst people talking about either piece of work, and may conflict if the same name is used in various contexts, including a gem name. It seems to me the polite thing would be to choose a different name and cede the name to the existing, older piece of work. Asking that the existing watirspec change its name in the future to avoid conflict with yours does not seem reasonable. But, ultimately it is your own decision to make I think. On Wed, Apr 7, 2010 at 11:23, Jarmo Pertman jarm...@gmail.com wrote: Actually i didn't know about WatirCraft either. I know that i have heard about it, but i thought that it is doing something else... It is indeed somehow similar to my gem and i have also (maybe) a plan to add Cucumber support... i mean, there's not much to add as a support except just an additional dependency and require statement :P Anyway, ideas seem to be somehow similar indeed. But about the name. Since i didn't know anything (i swear!) about the existence of WatirSpec name and didn't find anything on rubygems.org, then that's why i decided to pick a name called WatiRspec (notice that there's also difference in case). Since i didn't steal the name or didn't do anything else bad intentionally, then i feel that it would not be fair against me if you or someone else would force me to change the name because of these reasons. I'm not sure that name conflict can happen on rubygems... So, if Jari or someone else decides to release a gem with already existing name, then i guess that they should be the ones to change their gem's name. I don't see any other solutions here at the moment unfortunately. No hard feelings, i hope. Best regards, Jarmo On Apr 6, 9:47 pm, Charley Baker charley.ba...@gmail.com wrote: A simple gem might make sense or you can help work on the existing gems, I haven't really thought about it too much but the WatirCraft gem does simplify things and add cucumber support. My thought in best to avoid, is that watirspec isn't currently gemified, but easily could be. So while there's not a name clash right now, the possibility exists that there may be in the future. It makes sense to make Jari's current work into a gem. Thoughts? -c On Tue, Apr 6, 2010 at 12:32 PM, Jarmo Pertman jarm...@gmail.com wrote: Well, as i understood, then Taza just offers extra functionality and in deep within Watir and RSpec is used for it. But as i already mentioned, then WatiRspec is not doing much extra except combining both of these tools. And this is enough for my work. What did you mean about this probably best to avoid that name for now exactly? Jarmo On Apr 6, 3:23 am, Charley Baker charley.ba...@gmail.com wrote: Hey Jarmo, No worries. Watirspec isn't a gem yet, but may be at some point, probably best to avoid that name for now. Taza's more complex to some degree, but the basics are fairly simple. Interested to hear more about your point of view and how you see it, or anyone else for that matter. Let me know. :) Cheers, Charley Baker Lead Developer, Watir,http://watir.com QA Architect, Gap Inc Direct On Mon, Apr 5, 2010 at 7:26 AM, Jarmo Pertman jarm...@gmail.com wrote: Hi. You are correct, i didn't know anything about these projects. But as far as i looked on Taza's documentation right now, then i can say that it is a completely different library. It might have a similar idea at some degree, but Taza seems to be just a lot more complex with all those extra features, which are not needed for me. I don't plan to make WatiRspec like that. WatiRspec's main idea is that it takes RSpec and Watir and just makes it easier to use both of these tools together by providing some helper methods and that's mainly it. I haven't been very original in thinking of names, thus i named it like Watir + RSpec = WatiRspec Sorry, if i caused any troubles with that. Jarmo On Apr 3, 10:27 pm, Charley Baker charley.ba...@gmail.com wrote: How is this different from Taza? http://github.com/charley/tazawhichdoes exactly the same sort of thing. watirspec is the name of Jari's rspec tests for celerity and watir, so despite the fact that it's not a gem yet, I'd cede that name to him. Let me know if I'm offbase, maybe you didn't know about these projects. :) I'd be happy to have you involved in Taza. Cheers, Charley Baker Lead Developer, Watir,http://watir.com QA Architect,
[wtr-general] Re: Stop Firefox?
Any suggestions? -- 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.
[wtr-general] Re: How to use the Firewatir in Mac
I'm having the same problem as Yuping with slightly different versions, but opening Firefox using the ...firefox-bin -jssh command suggested above does not fix my issue. I'm running slightly older versions: Mac OS X 10.5.8 Firefox 3.5.9 jssh-3.5.x-Darwin-param.xpi I too get the RuntimeError: Firefox is running without -jssh error and port 9997 does not appear to be opening. Do I need Mac OS X 10.6 in order to open Firefox with arguments? Any suggestions? Cheers, John On Apr 6, 10:05 pm, Moises Siles moises.si...@gmail.com wrote: cool, someone else help me in the same way days ago! thank you to this group :) On Tue, Apr 6, 2010 at 10:57 PM, Yuping Zhong littlezhong...@gmail.comwrote: Great! That works fine! Thanks Moises! On Wed, Apr 7, 2010 at 12:01 PM, Moises Siles moises.si...@gmail.comwrote: 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.comwrote: 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: watir-general@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message
[wtr-general] Re: [ANN] WatiRspec 0.1.0
I understand what you're getting at. Of course i don't want to be impolite nor rude. I'm wondering, what does Jari himself think about this topic? Is he planning to release it as a gem at all? If he does and wants to do it with the same name, then i've given it some thought and have an idea what to rename my gem, but i still have some organizational questions. How can i rename my gem on rubygems? Is it even possible? Or should i just 'yank' all the versions of my gem? Does it free up the name again? And i will just have to release my gem again, but with new name? What guarantees that Jari can use this name at all in the future? Will he push some dummy gem as a placeholder for that? So, as you can see, i have a lot of questions, lol. Cheers, Jarmo On Apr 7, 6:44 pm, Ethan notet...@gmail.com wrote: I don't think anybody wants to force (or can force) you to use a different name, but it is being pointed out that there exists a piece of work which is already using that name (even if slightly different case). I don't think anybody is implying that you intentionally took an already-in-use name, but the basic fact is that it is in use. Using that name may create confusion amongst people talking about either piece of work, and may conflict if the same name is used in various contexts, including a gem name. It seems to me the polite thing would be to choose a different name and cede the name to the existing, older piece of work. Asking that the existing watirspec change its name in the future to avoid conflict with yours does not seem reasonable. But, ultimately it is your own decision to make I think. On Wed, Apr 7, 2010 at 11:23, Jarmo Pertman jarm...@gmail.com wrote: Actually i didn't know about WatirCraft either. I know that i have heard about it, but i thought that it is doing something else... It is indeed somehow similar to my gem and i have also (maybe) a plan to add Cucumber support... i mean, there's not much to add as a support except just an additional dependency and require statement :P Anyway, ideas seem to be somehow similar indeed. But about the name. Since i didn't know anything (i swear!) about the existence of WatirSpec name and didn't find anything on rubygems.org, then that's why i decided to pick a name called WatiRspec (notice that there's also difference in case). Since i didn't steal the name or didn't do anything else bad intentionally, then i feel that it would not be fair against me if you or someone else would force me to change the name because of these reasons. I'm not sure that name conflict can happen on rubygems... So, if Jari or someone else decides to release a gem with already existing name, then i guess that they should be the ones to change their gem's name. I don't see any other solutions here at the moment unfortunately. No hard feelings, i hope. Best regards, Jarmo On Apr 6, 9:47 pm, Charley Baker charley.ba...@gmail.com wrote: A simple gem might make sense or you can help work on the existing gems, I haven't really thought about it too much but the WatirCraft gem does simplify things and add cucumber support. My thought in best to avoid, is that watirspec isn't currently gemified, but easily could be. So while there's not a name clash right now, the possibility exists that there may be in the future. It makes sense to make Jari's current work into a gem. Thoughts? -c On Tue, Apr 6, 2010 at 12:32 PM, Jarmo Pertman jarm...@gmail.com wrote: Well, as i understood, then Taza just offers extra functionality and in deep within Watir and RSpec is used for it. But as i already mentioned, then WatiRspec is not doing much extra except combining both of these tools. And this is enough for my work. What did you mean about this probably best to avoid that name for now exactly? Jarmo On Apr 6, 3:23 am, Charley Baker charley.ba...@gmail.com wrote: Hey Jarmo, No worries. Watirspec isn't a gem yet, but may be at some point, probably best to avoid that name for now. Taza's more complex to some degree, but the basics are fairly simple. Interested to hear more about your point of view and how you see it, or anyone else for that matter. Let me know. :) Cheers, Charley Baker Lead Developer, Watir,http://watir.com QA Architect, Gap Inc Direct On Mon, Apr 5, 2010 at 7:26 AM, Jarmo Pertman jarm...@gmail.com wrote: Hi. You are correct, i didn't know anything about these projects. But as far as i looked on Taza's documentation right now, then i can say that it is a completely different library. It might have a similar idea at some degree, but Taza seems to be just a lot more complex with all those extra features, which are not needed for me. I don't plan to make WatiRspec like that. WatiRspec's main idea is that it takes RSpec and Watir and
[wtr-general] Re: Stop Firefox?
Hey Ethan, Thanks for the response. Can I override the wait method through my script or do I have to do that through the source? On Apr 7, 11:49 am, Ethan notet...@gmail.com wrote: That is tricky. Watir generally should wait until the page is loaded until it tries to do anything, or it will probably end up interacting with a partially-loaded page where the elements that you try to use don't exist yet. But, if the application never says the page is loaded, there's no way to know when that is. You could override the #wait method to just sleep for some constant amount of time, perhaps. That's my best thought. On Wed, Apr 7, 2010 at 14:42, Nate nate.s.bar...@gmail.com wrote: Any suggestions? -- 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, reply using remove me as the subject. -- 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: Stop Firefox?
You can basically override any method anywhere in ruby. require 'firewatir' class FireWatir::Firefox def wait sleep 5 # just pause a few seconds rather than actually checking to see if the page is still loading end end that should clobber the existing Firefox#wait method. (Note: that's just written off the top of my head and untested.) On Wed, Apr 7, 2010 at 15:39, Nate nate.s.bar...@gmail.com wrote: Hey Ethan, Thanks for the response. Can I override the wait method through my script or do I have to do that through the source? On Apr 7, 11:49 am, Ethan notet...@gmail.com wrote: That is tricky. Watir generally should wait until the page is loaded until it tries to do anything, or it will probably end up interacting with a partially-loaded page where the elements that you try to use don't exist yet. But, if the application never says the page is loaded, there's no way to know when that is. You could override the #wait method to just sleep for some constant amount of time, perhaps. That's my best thought. On Wed, Apr 7, 2010 at 14:42, Nate nate.s.bar...@gmail.com wrote: Any suggestions? -- 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, reply using remove me as the subject. -- 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
[wtr-general] Re: Stop Firefox?
very cool. I'll mess around with it now :) On Apr 7, 12:52 pm, Ethan notet...@gmail.com wrote: You can basically override any method anywhere in ruby. require 'firewatir' class FireWatir::Firefox def wait sleep 5 # just pause a few seconds rather than actually checking to see if the page is still loading end end that should clobber the existing Firefox#wait method. (Note: that's just written off the top of my head and untested.) On Wed, Apr 7, 2010 at 15:39, Nate nate.s.bar...@gmail.com wrote: Hey Ethan, Thanks for the response. Can I override the wait method through my script or do I have to do that through the source? On Apr 7, 11:49 am, Ethan notet...@gmail.com wrote: That is tricky. Watir generally should wait until the page is loaded until it tries to do anything, or it will probably end up interacting with a partially-loaded page where the elements that you try to use don't exist yet. But, if the application never says the page is loaded, there's no way to know when that is. You could override the #wait method to just sleep for some constant amount of time, perhaps. That's my best thought. On Wed, Apr 7, 2010 at 14:42, Nate nate.s.bar...@gmail.com wrote: Any suggestions? -- 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, reply using remove me as the subject. -- 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 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: Stop Firefox?
the above method works fine but the problem is sometimes the page needs more time than you mention in such cases it will fail you can use a function called wait until if you know the next element you are going to test On Wed, Apr 7, 2010 at 4:05 PM, Nate nate.s.bar...@gmail.com wrote: very cool. I'll mess around with it now :) On Apr 7, 12:52 pm, Ethan notet...@gmail.com wrote: You can basically override any method anywhere in ruby. require 'firewatir' class FireWatir::Firefox def wait sleep 5 # just pause a few seconds rather than actually checking to see if the page is still loading end end that should clobber the existing Firefox#wait method. (Note: that's just written off the top of my head and untested.) On Wed, Apr 7, 2010 at 15:39, Nate nate.s.bar...@gmail.com wrote: Hey Ethan, Thanks for the response. Can I override the wait method through my script or do I have to do that through the source? On Apr 7, 11:49 am, Ethan notet...@gmail.com wrote: That is tricky. Watir generally should wait until the page is loaded until it tries to do anything, or it will probably end up interacting with a partially-loaded page where the elements that you try to use don't exist yet. But, if the application never says the page is loaded, there's no way to know when that is. You could override the #wait method to just sleep for some constant amount of time, perhaps. That's my best thought. On Wed, Apr 7, 2010 at 14:42, Nate nate.s.bar...@gmail.com wrote: Any suggestions? -- 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, reply using remove me as the subject. -- 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 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
[wtr-general] Experience with testing Apples Web Objects
Does anyone know of any forums, docs etc on testing Apples web objects in a browser using ruby and WATIR? (http://www.apple.com/ca/ webobjects/) -- 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.
[wtr-general] Re: Experience with testing Apples Web Objects
Is there a website I can take a look at which employs WebObjects? On Apr 7, 3:20 pm, dt_nz david.tay...@sungard.com wrote: Does anyone know of any forums, docs etc on testing Apples web objects in a browser using ruby and WATIR? (http://www.apple.com/ca/ webobjects/) -- 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.
[wtr-general] Checking for contents of a text field
I'm trying to check if a field is populated on a page. This command works fine and returns found it: if ie.text_field(:value,'some value').exists? puts 'found it else puts did not find it end However this one doesn't: if ie.text_field(:id,mytextfield).value == 'some value' puts 'found it else puts did not find it end If I understand correctly the first example is looking for ALL text fields on the page to see if any of them have some value. The second is more specific and is looking at a particular text field. I know for certain that mytxtfield contains the text I am looking for ... -- 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] Checking for contents of a text field
ie.text_field(:id,mytextfield).value will get the value in the text field. You can't get the text_field attribute value by it. Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 9:27 AM, Rats crapats...@yahoo.com.au wrote: I'm trying to check if a field is populated on a page. This command works fine and returns found it: if ie.text_field(:value,'some value').exists? puts 'found it else puts did not find it end However this one doesn't: if ie.text_field(:id,mytextfield).value == 'some value' puts 'found it else puts did not find it end If I understand correctly the first example is looking for ALL text fields on the page to see if any of them have some value. The second is more specific and is looking at a particular text field. I know for certain that mytxtfield contains the text I am looking for ... -- 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, 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] Checking for contents of a text field
You'd better not use :value to locate on text field. Because the value in text field can change manual. Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 9:47 AM, Wesley Chen cjq@gmail.com wrote: ie.text_field(:id,mytextfield).value will get the value in the text field. You can't get the text_field attribute value by it. Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 9:27 AM, Rats crapats...@yahoo.com.au wrote: I'm trying to check if a field is populated on a page. This command works fine and returns found it: if ie.text_field(:value,'some value').exists? puts 'found it else puts did not find it end However this one doesn't: if ie.text_field(:id,mytextfield).value == 'some value' puts 'found it else puts did not find it end If I understand correctly the first example is looking for ALL text fields on the page to see if any of them have some value. The second is more specific and is looking at a particular text field. I know for certain that mytxtfield contains the text I am looking for ... -- 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, 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
[wtr-general] Re: Checking for contents of a text field
On Apr 8, 1:47 pm, Wesley Chen cjq@gmail.com wrote: ie.text_field(:id,mytextfield).value will get the value in the text field. You can't get the text_field attribute value by it. Wesley. For life, the easier, the better. So what you're saying is that I need to get the attribute value of the field? Can you please tell me how the syntax will look? Thanks. -- 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.
[wtr-general] ajax and unable to locate element
I am loading a form with an embedded table using Ajax. I am having trouble locating elements that are part of the form. I tried re- reading the dom and waiting using the following: @b=Watir::Browser.attach(:title,'sample') @b.wait() but I am still not able to locate any of the elements. For example: @b.text_field(:name, 'order_ref[1]').set('OE123') and I get the error: Watir::Exception::UnknownObjectException: Unable to locate element, using :name, order_ref[1] I can inspect that element with Firebug and the name is fine. I tried also using id, but I get the same error. Any help with this is much appreciated. -- 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.
[wtr-general] Re: ajax and unable to locate element
On Apr 8, 12:16 pm, sal salem.m.ja...@gmail.com wrote: I am loading a form with an embedded table using Ajax. I am having trouble locating elements that are part of the form. I tried re- reading the dom and waiting using the following: @b=Watir::Browser.attach(:title,'sample') @b.wait() but I am still not able to locate any of the elements. For example: @b.text_field(:name, 'order_ref[1]').set('OE123') and I get the error: Watir::Exception::UnknownObjectException: Unable to locate element, using :name, order_ref[1] I can inspect that element with Firebug and the name is fine. I tried also using id, but I get the same error. Any help with this is much appreciated. Just a suggestion, rather than attach to an existing window try opening a browser and navigating directly to the page. Not sure if that will 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, reply using remove me as the subject.
[wtr-general] Error in IRB: LoadError: no such file to load -- watir
I couldn't get FireWatir to work on Mac, so I'm trying a more basic installation (I hope) of Watir with IE for Windows XP. After successfully installing the latest Ruby, RubyGems, and Watir 1.6.5, every Watir script I run chokes on the require command with the error no such file to load. This occurs whether I am executing a Ruby script or typing require 'watir' in the IRB command line. Clearly Ruby can't find watir. Since Watir installed successfully, do I need to use require commands from any particular directory? Any suggestions appreciated! Thanks, John -- 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: ajax and unable to locate element
I just tried that and I am getting the same error. On Wed, Apr 7, 2010 at 10:19 PM, Rats crapats...@yahoo.com.au wrote: On Apr 8, 12:16 pm, sal salem.m.ja...@gmail.com wrote: I am loading a form with an embedded table using Ajax. I am having trouble locating elements that are part of the form. I tried re- reading the dom and waiting using the following: @b=Watir::Browser.attach(:title,'sample') @b.wait() but I am still not able to locate any of the elements. For example: @b.text_field(:name, 'order_ref[1]').set('OE123') and I get the error: Watir::Exception::UnknownObjectException: Unable to locate element, using :name, order_ref[1] I can inspect that element with Firebug and the name is fine. I tried also using id, but I get the same error. Any help with this is much appreciated. Just a suggestion, rather than attach to an existing window try opening a browser and navigating directly to the page. Not sure if that will 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, reply using remove me as the subject. -- Sal Jamil • ephicax President Desk (650-585-2198)sal.ja...@ephicax.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
[wtr-general] Re: Checking for contents of a text field
So what you're saying is that I need to get the attribute value of the field? Can you please tell me how the syntax will look? Thanks. Don't worry, I figured it out. This will return the value set for mytextfield: ie.text_field(:id, 'mytextfield').attribute_value('value') -- 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.
[wtr-general] Re: ajax and unable to locate element
On Apr 8, 2:59 pm, Sal Jamil salem.m.ja...@gmail.com wrote: I just tried that and I am getting the same error. Is this page published on the web? If so then please provide a URL so we can have a look at it. It is very strange that firebug displays the element name yet Watir cannot find it. I've never had this problem ... -- 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.
[wtr-general] Re: Error in IRB: LoadError: no such file to load -- watir
Just to be clear, I'm using Ruby 1.8.6 and Watir 1.6.5, both successfully installed according to the installation logs. I've already tried updating all gems. Thanks, John On Apr 7, 7:56 pm, John Williams jwil...@gmail.com wrote: I couldn't get FireWatir to work on Mac, so I'm trying a more basic installation (I hope) of Watir with IE for Windows XP. After successfully installing the latest Ruby, RubyGems, and Watir 1.6.5, every Watir script I run chokes on the require command with the error no such file to load. This occurs whether I am executing a Ruby script or typing require 'watir' in the IRB command line. Clearly Ruby can't find watir. Since Watir installed successfully, do I need to use require commands from any particular directory? Any suggestions appreciated! Thanks, John -- 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: ajax and unable to locate element
If there is ajax, please use *fire_event* before you *set* Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 11:09 AM, Rats crapats...@yahoo.com.au wrote: On Apr 8, 2:59 pm, Sal Jamil salem.m.ja...@gmail.com wrote: I just tried that and I am getting the same error. Is this page published on the web? If so then please provide a URL so we can have a look at it. It is very strange that firebug displays the element name yet Watir cannot find it. I've never had this problem ... -- 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, 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
I have another issue. After I type the /Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh,then I can use the irb to open the firefox.After I quit the irb and start the new irb again.I also get the error. So before I want to use the irb to open the firefox each time,I have to type the /Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh Any idea to resolve this issue? Thanks! *** See the following: $ /Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh FoxyProxy settingsDir: /Users/tank/Library/Application Support/Firefox/Profiles/92qg04dg.default/foxyproxy.xml $ irb irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 ff=FireWatir::Firefox.new FoxyProxy settingsDir: /Users/tank/Library/Application Support/Firefox/Profiles/92qg04dg.default/foxyproxy.xml = #FireWatir::Firefox:0x1a34890 url= title=Problem loading page irb(main):004:0 quit $ irb 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 On Thu, Apr 8, 2010 at 2:40 AM, John Williams jwil...@gmail.com wrote: I'm having the same problem as Yuping with slightly different versions, but opening Firefox using the ...firefox-bin -jssh command suggested above does not fix my issue. I'm running slightly older versions: Mac OS X 10.5.8 Firefox 3.5.9 jssh-3.5.x-Darwin-param.xpi I too get the RuntimeError: Firefox is running without -jssh error and port 9997 does not appear to be opening. Do I need Mac OS X 10.6 in order to open Firefox with arguments? Any suggestions? Cheers, John On Apr 6, 10:05 pm, Moises Siles moises.si...@gmail.com wrote: cool, someone else help me in the same way days ago! thank you to this group :) On Tue, Apr 6, 2010 at 10:57 PM, Yuping Zhong littlezhong...@gmail.com wrote: Great! That works fine! Thanks Moises! On Wed, Apr 7, 2010 at 12:01 PM, Moises Siles moises.si...@gmail.com 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.com wrote: 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
Re: [wtr-general] Re: How to use the Firewatir in Mac
John, Do you try the /Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh? Does it work? On Thu, Apr 8, 2010 at 11:27 AM, Yuping Zhong littlezhong...@gmail.comwrote: I have another issue. After I type the /Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh,then I can use the irb to open the firefox.After I quit the irb and start the new irb again.I also get the error. So before I want to use the irb to open the firefox each time,I have to type the /Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh Any idea to resolve this issue? Thanks! *** See the following: $ /Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh FoxyProxy settingsDir: /Users/tank/Library/Application Support/Firefox/Profiles/92qg04dg.default/foxyproxy.xml $ irb irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 ff=FireWatir::Firefox.new FoxyProxy settingsDir: /Users/tank/Library/Application Support/Firefox/Profiles/92qg04dg.default/foxyproxy.xml = #FireWatir::Firefox:0x1a34890 url= title=Problem loading page irb(main):004:0 quit $ irb 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 On Thu, Apr 8, 2010 at 2:40 AM, John Williams jwil...@gmail.com wrote: I'm having the same problem as Yuping with slightly different versions, but opening Firefox using the ...firefox-bin -jssh command suggested above does not fix my issue. I'm running slightly older versions: Mac OS X 10.5.8 Firefox 3.5.9 jssh-3.5.x-Darwin-param.xpi I too get the RuntimeError: Firefox is running without -jssh error and port 9997 does not appear to be opening. Do I need Mac OS X 10.6 in order to open Firefox with arguments? Any suggestions? Cheers, John On Apr 6, 10:05 pm, Moises Siles moises.si...@gmail.com wrote: cool, someone else help me in the same way days ago! thank you to this group :) On Tue, Apr 6, 2010 at 10:57 PM, Yuping Zhong littlezhong...@gmail.com wrote: Great! That works fine! Thanks Moises! On Wed, Apr 7, 2010 at 12:01 PM, Moises Siles moises.si...@gmail.com 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 )
[wtr-general] Re: Error in IRB: LoadError: no such file to load -- watir
Solution: In Ruby 1.8.4 or later, you need to preceed the require 'watir' command with require 'rubygems'. How frustrating that this is not pointed out in the Watir documentation or examples. I found the solution in another discussion forum. In general I'm very disappointed with the sorry state of Watir installation documentation, all of which seems ad hoc, poorly integrated and universalized, and taking for granted big steps (e.g. using IRB, creating scripts in .rb files, executing .rb files, etc). Curiously, nearly all Watir documentation jumps right from installing the gems to using the Watir API, ignoring such critical steps as opening a Command Prompt with Ruby, opening IRB, requiring rubygems, editing and executing a .rb file, etc. Of course the Watir documentation shouldn't have to explain Ruby, IRB, or any other integrated technology in detail, but it should give the necessary steps in order to successfully complete a basic Watir command for someone like me who wasn't familiar with Ruby or IRB and certainly has no clue about which gems need to be required. Cheers, John On Apr 7, 7:56 pm, John Williams jwil...@gmail.com wrote: I couldn't get FireWatir to work on Mac, so I'm trying a more basic installation (I hope) of Watir with IE for Windows XP. After successfully installing the latest Ruby, RubyGems, and Watir 1.6.5, every Watir script I run chokes on the require command with the error no such file to load. This occurs whether I am executing a Ruby script or typing require 'watir' in the IRB command line. Clearly Ruby can't find watir. Since Watir installed successfully, do I need to use require commands from any particular directory? Any suggestions appreciated! Thanks, John -- 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.
[wtr-general] Re: Error in IRB: LoadError: no such file to load -- watir
Thanks, Ethan. You were correct! On Apr 7, 8:37 pm, Ethan notet...@gmail.com wrote: are you requiring rubygems first? require 'rubygems' require 'watir' On Wed, Apr 7, 2010 at 23:09, John Williams jwil...@gmail.com wrote: Just to be clear, I'm using Ruby 1.8.6 and Watir 1.6.5, both successfully installed according to the installation logs. I've already tried updating all gems. Thanks, John On Apr 7, 7:56 pm, John Williams jwil...@gmail.com wrote: I couldn't get FireWatir to work on Mac, so I'm trying a more basic installation (I hope) of Watir with IE for Windows XP. After successfully installing the latest Ruby, RubyGems, and Watir 1.6.5, every Watir script I run chokes on the require command with the error no such file to load. This occurs whether I am executing a Ruby script or typing require 'watir' in the IRB command line. Clearly Ruby can't find watir. Since Watir installed successfully, do I need to use require commands from any particular directory? Any suggestions appreciated! Thanks, John -- 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, reply using remove me as the subject.- Hide quoted text - - Show quoted text - -- 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: Error in IRB: LoadError: no such file to load -- watir
why dont you write up your experienes, we can probably put it on the wiki. Most of the docs are done by people who have been using watir for a while, and theyve done a pretty good job as volunteers. Paul On Wed, Apr 7, 2010 at 9:41 PM, John Williams jwil...@gmail.com wrote: Solution: In Ruby 1.8.4 or later, you need to preceed the require 'watir' command with require 'rubygems'. How frustrating that this is not pointed out in the Watir documentation or examples. I found the solution in another discussion forum. In general I'm very disappointed with the sorry state of Watir installation documentation, all of which seems ad hoc, poorly integrated and universalized, and taking for granted big steps (e.g. using IRB, creating scripts in .rb files, executing .rb files, etc). Curiously, nearly all Watir documentation jumps right from installing the gems to using the Watir API, ignoring such critical steps as opening a Command Prompt with Ruby, opening IRB, requiring rubygems, editing and executing a .rb file, etc. Of course the Watir documentation shouldn't have to explain Ruby, IRB, or any other integrated technology in detail, but it should give the necessary steps in order to successfully complete a basic Watir command for someone like me who wasn't familiar with Ruby or IRB and certainly has no clue about which gems need to be required. Cheers, John On Apr 7, 7:56 pm, John Williams jwil...@gmail.com wrote: I couldn't get FireWatir to work on Mac, so I'm trying a more basic installation (I hope) of Watir with IE for Windows XP. After successfully installing the latest Ruby, RubyGems, and Watir 1.6.5, every Watir script I run chokes on the require command with the error no such file to load. This occurs whether I am executing a Ruby script or typing require 'watir' in the IRB command line. Clearly Ruby can't find watir. Since Watir installed successfully, do I need to use require commands from any particular directory? Any suggestions appreciated! Thanks, John -- 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, 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: ajax and unable to locate element
I used the fire_event ( @b.radio(:id, entryMode_manual).fire_event(onclick)) and I am still getting the same error. The event is firing fine since I am actually getting the div populated properly back from the server. Thanks On Wed, Apr 7, 2010 at 11:12 PM, Wesley Chen cjq@gmail.com wrote: If there is ajax, please use *fire_event* before you *set* Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 11:09 AM, Rats crapats...@yahoo.com.au wrote: On Apr 8, 2:59 pm, Sal Jamil salem.m.ja...@gmail.com wrote: I just tried that and I am getting the same error. Is this page published on the web? If so then please provide a URL so we can have a look at it. It is very strange that firebug displays the element name yet Watir cannot find it. I've never had this problem ... -- 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, 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 -- Sal Jamil • ephicax President Desk (650-585-2198)sal.ja...@ephicax.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: ajax and unable to locate element
I am sorry, it is not available on the web. I can give you the source of the page but it references a lot of libraries and server code that I am not sure it will be helpful. Thanks for your help. On Wed, Apr 7, 2010 at 11:09 PM, Rats crapats...@yahoo.com.au wrote: On Apr 8, 2:59 pm, Sal Jamil salem.m.ja...@gmail.com wrote: I just tried that and I am getting the same error. Is this page published on the web? If so then please provide a URL so we can have a look at it. It is very strange that firebug displays the element name yet Watir cannot find it. I've never had this problem ... -- 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. -- Sal Jamil • ephicax President Desk (650-585-2198)sal.ja...@ephicax.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: ajax and unable to locate element
Thanks. I am using jquery to bind a click event to a button. Through Watir, I am setting the button and that event is firing correctly and populating the div from the server. Do I need to also do a fire_event? Isn't that duplicating the button set event? On Wed, Apr 7, 2010 at 11:12 PM, Wesley Chen cjq@gmail.com wrote: If there is ajax, please use *fire_event* before you *set* Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 11:09 AM, Rats crapats...@yahoo.com.au wrote: On Apr 8, 2:59 pm, Sal Jamil salem.m.ja...@gmail.com wrote: I just tried that and I am getting the same error. Is this page published on the web? If so then please provide a URL so we can have a look at it. It is very strange that firebug displays the element name yet Watir cannot find it. I've never had this problem ... -- 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, 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 -- Sal Jamil • ephicax President Desk (650-585-2198)sal.ja...@ephicax.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: ajax and unable to locate element
Of course not. Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 11:25 AM, Sal Jamil salem.m.ja...@gmail.com wrote: Thanks. I am using jquery to bind a click event to a button. Through Watir, I am setting the button and that event is firing correctly and populating the div from the server. Do I need to also do a fire_event? Isn't that duplicating the button set event? On Wed, Apr 7, 2010 at 11:12 PM, Wesley Chen cjq@gmail.com wrote: If there is ajax, please use *fire_event* before you *set* Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 11:09 AM, Rats crapats...@yahoo.com.au wrote: On Apr 8, 2:59 pm, Sal Jamil salem.m.ja...@gmail.com wrote: I just tried that and I am getting the same error. Is this page published on the web? If so then please provide a URL so we can have a look at it. It is very strange that firebug displays the element name yet Watir cannot find it. I've never had this problem ... -- 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, 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 -- Sal Jamil • ephicax President Desk (650-585-2198)sal.ja...@ephicax.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 -- 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