[wtr-general] Re: How to detect the a mouseover popup?

2009-06-05 Thread Ivan Chung
Thanks for all your replies. Chuck, I think we are using the jquery thickbox for the popup. What are the scripts to actually detect the presence of the popup when i click on a link. I have tried the following code and it gives error ie.link(:text, 'signup').click hwnd = ie.enabled_popup(10) I

[wtr-general] Re: Need help on jssh installation for firefox

2009-06-05 Thread Chethan
Thanks a lot. It working. I skipped this coz it says for Redistributed package for VS 2005 SP1. On Jun 4, 4:25 pm, Angrez Singh ang...@gmail.com wrote: Just a guess did you installed Redistributed package for VS 2005 SP1. Its described in step 2 here

[wtr-general] Re: Need help on jssh installation for firefox

2009-06-05 Thread kiran yajamanyam
Thank you very much Angrez. It is working fine now. Regards, Krian Y On Fri, Jun 5, 2009 at 12:01 PM, Chethan chethan2...@gmail.com wrote: Thanks a lot. It working. I skipped this coz it says for Redistributed package for VS 2005 SP1. On Jun 4, 4:25 pm, Angrez Singh ang...@gmail.com

[wtr-general] Re: Check div for null return

2009-06-05 Thread Jerry Lane
I have the following now: assert(@@ie.div(:class, ext-el-mask-msg x-mask-loading).exists?,Test passes as 'Loading...' is not present on screen) This prints when the assert is true but in reality I want it to print when the assert is false. When it is false the test fails when in reality it is

[wtr-general] Re: WatirCraft LLC is closing

2009-06-05 Thread 90kts
To be honest I'm a little bit sad this has happened! But on the positive side I would like to send out a tremendous THANK YOU to you both for getting Watir to where it is now. That includes integration with firewatir and a solid framework from which to further develop. I feel guilty using

[wtr-general] Re: WatirCraft LLC is closing

2009-06-05 Thread Lisa Crispin
I was really bummed to hear about this too. Congratulations on your new gig, Bret. I suspect you will continue to contribute to the software dev and testing community in some way, as you always have! Thanks to Bret and Pete for all they have done to improve Watir, it sure helped me and my team a

[wtr-general] Re: currentstyle not working in firefox

2009-06-05 Thread Tony
Hi, You could use getComputedStyle. This is similar to currentstyle in IE. Here is a function that is similar to the ie's element.visible function which uses getComputedStyle to get the current visibility style- def visible? assert_exists jssh_command = var val = 'true'; var str = '';

[wtr-general] Re: forms in subframes - elements not found

2009-06-05 Thread jason
FYI the solution above is not quite right.. i am working on the change and will post it later on today. On 4 Jun., 13:17, jason jason.franklin.sto...@gmail.com wrote: ok - so just for documentations sake i found the bug in the firewatir locate_tagged_element code in

[wtr-general] Re: WatirCraft LLC is closing

2009-06-05 Thread Prajakta Jadhav
All the best Bret and Pete...! And a bigg THANK YOU for WATIR... :) On 6/4/09, Bret Pettichord b...@pettichord.com wrote: Pete Dignan and I have decided to shut down WatirCraft LLC. I will begin working full time for Convio in July. Convio has made a big commitment to using Watir. I will

[wtr-general] Re: Towards migrating to Watir.com

2009-06-05 Thread Željko Filipin
On Thu, Jun 4, 2009 at 11:36 PM, Chuck van der Linden sqa...@gmail.com wrote: Has Google Code been considered? also Github? Both Google Code and Github have wiki and bug tracking. The problem with changing software is that somebody would have to enter all data from old software into new

[wtr-general] Re: override js confirm FireWatir

2009-06-05 Thread Angrez Singh
I think you can see startClicker function in firefox.rb which handles the pop ups alert confirm by overriding them so that we are not dependent upon AutoIT. Let me know if that helps. - Angrez On Thu, Jun 4, 2009 at 12:08 AM, Chuck van der Linden sqa...@gmail.comwrote: A thanks for

[wtr-general] Re: Towards migrating to Watir.com

2009-06-05 Thread Alister Scott
This sounds like a good idea. I can ask Patrick and see what he says. On Jun 5, 10:11 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jun 4, 2009 at 6:23 AM, Alister Scott alister.sc...@gmail.com wrote:  I have looked into many options and can't find a free/cheap  option

[wtr-general] Re: currentstyle not working in firefox

2009-06-05 Thread Loft_Tester
I'll give it a shot thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following

[wtr-general] Checking all links on a web page

2009-06-05 Thread ash
Another topic where I have found some part answers but not what I am really looking for. What I need is a way of clicking each link on a page to ensure they don't error. I can't code each link individually as they are changing regularly. So far I have been able to list the links with;

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread Željko Filipin
On Fri, Jun 5, 2009 at 2:33 PM, ash ashbr...@gmail.com wrote: What I need is a way of clicking each link on a page to ensure they don't error. I would do it something like this (not tested): browser.links.each do |link| browser.goto link # check if page is ok browser.back end Željko --

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread Felipe Knorr Kuhn
Hello, The code posted by Željko will work only if all your links are absolute. Try this: require rubygems require watir $browser = Watir::Browser.new $browser.goto http://www.google.com; $links = Array.new $browser.links.each do |l| #Relative link if (l.href.first == /) $url

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread ash
Thanks for that Felipe. As far as validation goes I think my only option is to check that pages visited are not error pages; maybe checking for existnce of page cannot be found text. On Jun 5, 2:48 pm, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, The code posted by Željko will work only

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread Felipe Knorr Kuhn
Ash, If you don't need to be authenticated in the app, this thread might help you: http://groups.google.com/group/watir-general/browse_thread/thread/26486904e89340b7?pli=1 Checking for the response code of the server is more reliable than looking for some text :) FK 2009/6/5 ash

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread ash
Again, thanks Felipe. Looks like the solution I need. I will report back when I have had a chance to script and test. Cheers...Ash On Jun 5, 3:25 pm, Felipe Knorr Kuhn fkn...@gmail.com wrote: Ash, If you don't need to be authenticated in the app, this thread might help you:

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread Chuck van der Linden
if it's not specific to your company, I think a script like this would make an EXCELLENT addition to the examples in the Watir Wiki. I'd like to strongly encourage you to consider 'sanitizing' what you end up with (removing any company specific stuff) and posting it as an watir code example

[wtr-general] How to send the email by Ruby script?

2009-06-05 Thread Wesley Chen
Hi, Guys, I can read my sina.com email by the following code: require 'net/pop' Net::POP3.foreach('*pop3.sina.com.cn*', 110, 'my_em...@sina.com', 'my_password' ) do |email| hdr = email.header if hdr =~ /\d+/ language = hdr.to_s else language = INVALID end puts language end I

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Felipe Knorr Kuhn
Did you try the following? SMTPhttp://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/classes/Net/SMTP.htmlAuthentication The Net::SMTPhttp://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/classes/Net/SMTP.htmlclass supports three authentication schemes; PLAIN, LOGIN and CRAM MD5. (

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Wesley Chen
Hi, Felipe, Thank you very much, it is really helpful, :). There is a great contributor below. http://notepad.onghu.com/2007/3/26/sending-email-with-ruby When I run the code, anything goes expected. I have searched for the results for hours, your one word gets it fixed. :), thank you again.

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Wesley Chen
But do you know how to send an attachment in the email? Thanks. Wesley Chen. On Sat, Jun 6, 2009 at 1:12 AM, Wesley Chen cjq@gmail.com wrote: Hi, Felipe, Thank you very much, it is really helpful, :). There is a great contributor below.

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Felipe Knorr Kuhn
Sending attachments via net/smtp can be a pain. The following links are outdated but might still be useful: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/130390 http://www.tutorialspoint.com/ruby/ruby_sending_email.htm Please share your solution after you're done :) FK 2009/6/5

[wtr-general] xpath problems

2009-06-05 Thread Miguel Argollo
HI, I´m just trying to start using xpath, so I decided to change the Google example in order to have some working code; I changed the ie.button(:name, btnG).click # btnG is the name of the Search button line by ie.button(:xpath,//inp...@name='btnG']/).click but I got this error msg: Step 3:

[wtr-general] Re: xpath problems

2009-06-05 Thread Felipe Knorr Kuhn
Are you using Google in English or another language? Adding this to your code might fix it $KCODE = u WIN32OLE.codepage = WIN32OLE::CP_UTF8 (or CP1252) FK 2009/6/5 Miguel Argollo miguel.argo...@gmail.com HI, I´m just trying to start using xpath, so I decided to change the Google example

[wtr-general] Re: forms in subframes - elements not found

2009-06-05 Thread Chuck van der Linden
Ok I've not tried this, but as far as I know you COULD install the watir gem, you just could not run it with the browser set to IE since yes obviously you don't have an IE browser on your platform. Mostly I gave that as an easy way to provide a tiny bit of sample code where you could quickly

[wtr-general] Re: xpath problems

2009-06-05 Thread Miguel Argollo
I´m using Portuguese; I added yuor code, and it worked fine. thanks a lot. Miguel On Fri, Jun 5, 2009 at 3:24 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Are you using Google in English or another language? Adding this to your code might fix it $KCODE = u WIN32OLE.codepage =

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Željko Filipin
On Fri, Jun 5, 2009 at 7:24 PM, Wesley Chen cjq@gmail.com wrote: But do you know how to send an attachment in the email? I think you can do it with Tmail. http://tmail.rubyforge.org/ Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this

[wtr-general] Re: Check div for null return

2009-06-05 Thread Chuck van der Linden
could you just use .exists?==false where you have .exists? On Jun 5, 1:19 am, Jerry Lane lane...@gmail.com wrote: I have the following now: assert(@@ie.div(:class, ext-el-mask-msg x-mask-loading).exists?,Test passes as 'Loading...' is not present on screen) This prints when the assert is

[wtr-general] Re: WatirCraft LLC is closing

2009-06-05 Thread Chuck van der Linden
Thanks also from myself, co-worker and company.. We're using the framework (I wish we could have afforded to have you train us) and it's great stuff. I'm sorry it didn't work out, but I think it will be a great contribution to the Watir community as a whole. I hope you enjoy going back to

[wtr-general] Re: Towards migrating to Watir.com

2009-06-05 Thread Chuck van der Linden
On Jun 5, 5:07 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jun 4, 2009 at 11:36 PM, Chuck van der Linden sqa...@gmail.com wrote: Has Google Code been considered? also Github? Both Google Code and Github have wiki and bug tracking. The problem with changing software

[wtr-general] Re: Towards migrating to Watir.com

2009-06-05 Thread Charley Baker
Alister's design on the wordpress instance looks good. I'd definitely pin him as the Watir community leader for watir.com going forward and definitely needs to work with Zeljko. They're fortunate enough to share similar time zones, and seem to be working well as a team. I tried getting jira and

[wtr-general] How to get the browser history(url) by Watir?

2009-06-05 Thread Wesley Chen
Hi, Guys, Watir can open an IE or a firefox browser easily, when the IE/FF browser is opened, can Ruby script get the browser history info? Including all the cookies, history? If it can do that, I think I may use this function to handle some error page in my Watir automation. Any suggestion

[wtr-general] Re: Towards migrating to Watir.com

2009-06-05 Thread jari.bakken
On 05.06.09 14.07, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jun 4, 2009 at 11:36 PM, Chuck van der Linden sqa...@gmail.com wrote: Has Google Code been considered? also Github? Both Google Code and Github have wiki and bug tracking. The problem with changing software is

[wtr-general] Changing Div Location Without Puts

2009-06-05 Thread Win
Hi folks, I'm using cucumber with watir frame-work for my testing. In my step file, I'm trying to move one of my div from one location to another location on a browser. Here is my code: When /^I move the card to the top area$/ do #puts active_empcard.style.TOP browser.div(:class =

[wtr-general] Re: WatirCraft LLC is closing

2009-06-05 Thread Darryl (gem dandy) Brown
Hello Bret and Pete, I'm fairly new to Watir...only 8 months in but I've got my scuba gear on now. I'd like to personally thank you guys for everything. Myself like so many others...saying I'll wait until WatirCraft takes more shape before I call. Best of luck, Darryl Brown On Jun 3, 11:45