[wtr-general] Re: Wrong number of arguments error while passing a value to another function

2009-08-07 Thread balbao
HI, I understood from here http://groups.google.com/group/watir-general/ browse_thread/thread/1c45fdb7908ebd71 that i need to convert the value to string. Now the last letter of the string is typed twice, for ex: If human is the text i have in my spread sheet and the script feeds humann in the

[wtr-general] Re: Fire Watir and Safari Watir

2009-08-07 Thread John Kolokotronis
SafariWatir is Mac OS X only - when you install Watir 1.6.2 on a Mac, both SafariWatir and FireWatir get installed. Though for the most part Watir/FireWatir and SafariWatir are API compatible, there are certain differences though these days, Watir and FireWatir are coming closer together.

[wtr-general] How to click the link in dynamically generated ajax content?

2009-08-07 Thread Durgesh
Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] How to judge the button or link exists in the page?

2009-08-07 Thread yuping zhong
Dear all, Right now, I want to use the watir to check the button or link if exists in the page. Who can help me? Such as, I write the watir code to login the gmail. In order to make sure I login successfully, I try to check whether the Sign Out link is exists in the page. If the Sign Out link is

[wtr-general] Re: How to judge the button or link exists in the page?

2009-08-07 Thread Smruti Ranjan Kar
assert($browser.link(:text,Signout)exists?),The sign-out link is absent) On Fri, Aug 7, 2009 at 2:25 PM, yuping zhong littlezhong...@gmail.comwrote: Dear all, Right now, I want to use the watir to check the button or link if exists in the page. Who can help me? Such as, I write the watir

[wtr-general] stop ie from code

2009-08-07 Thread Alex.Dev
I tried to open a very slowly website, i want to stop it(like click stop button in toolbar, but i need to do this from code) when it's readState is interactive. here is my code snippets: require 'rubygems' require 'watir' require 'watir/ie' ie = Watir::IE.new ie.speed =:fast @thread =

[wtr-general] Re: How to judge the button or link exists in the page?

2009-08-07 Thread Smruti Ranjan Kar
And what you need will be: assert($browser.link(:text,Signout)exists?),login failure) puts Login was successful On Fri, Aug 7, 2009 at 2:29 PM, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: assert($browser.link(:text,Signout)exists?),The sign-out link is absent) On Fri, Aug 7, 2009

[wtr-general] undefined method `{ENTER}' for #Watir::IE:0x3ee7b9c

2009-08-07 Thread Marlon
Can anyone help me with this error? I'm trying to press ENTER key focused on a text box. code: $ie.send({ENTER}) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email

[wtr-general] Re: undefined method `{ENTER}' for #Watir::IE:0x3ee7b9c

2009-08-07 Thread Smruti Ranjan Kar
use $ie.send_keys({ENTER}) On Fri, Aug 7, 2009 at 2:33 PM, Marlon marlonmoja...@gmail.com wrote: Can anyone help me with this error? I'm trying to press ENTER key focused on a text box. code: $ie.send({ENTER}) --~--~-~--~~~---~--~~ You received this

[wtr-general] Re: undefined method `{ENTER}' for #Watir::IE:0x3ee7b9c

2009-08-07 Thread Marlon
Yes i already tried that, no error but its not pressing enter key. I'm still searching for the solution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-07 Thread Raveendran P
Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The

[wtr-general] Re: undefined method `{ENTER}' for #Watir::IE:0x3ee7b9c

2009-08-07 Thread Raveendran P
Hi Marlon, It seems the ENTER key is clicked but not in IE browser. Focus missing here. Please use $ie.div(:id,ANY).focus -- before press enter key. May be it will work ... On Fri, Aug 7, 2009 at 2:49 PM, Marlon marlonmoja...@gmail.com wrote: Yes i already tried that, no error but

[wtr-general] Re: Fire Watir and Safari Watir

2009-08-07 Thread Angrez Singh
I think FireWatir does support Table element. look at the unit tests for more details. Thanks, Angrez On Fri, Aug 7, 2009 at 4:24 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hey Angrez, I found out Fire Watir doesn't supports Table element yet? Is that so? Is there a list of elements

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-07 Thread Durgesh Nadkarni
Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On Fri, 7/8/09, Raveendran P raveend...@railsfactory.org wrote: From: Raveendran

[wtr-general] Re: Dynamically generated elements on Ajax app

2009-08-07 Thread H Kogi
Thank you for your response. I have been searching information for some time and have not found anything that exactly resolve my problem. (I do use some code I found to use 'left-click' instead of standard 'click' for tabs). Tab labels, buton labels, and text labels stay the same. User will

[wtr-general] Re: stop ie from code

2009-08-07 Thread Michael Hwee
Try ie.ie.stop - Original Message From: Alex.Dev btb8...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Friday, August 7, 2009 2:01:38 AM Subject: [wtr-general] stop ie from code I tried to open a very slowly website, i want to stop it(like click stop button in

[wtr-general] [ANN] watirspec

2009-08-07 Thread Jari Bakken
I've factored out the bulk of Celerity's rspec suite to a separate project, available on GitHub at http://github.com/jarib/watirspec/tree/master The idea is to allow other implementations to use the repository as a git submodule in their projects. See the README for details. The project

[wtr-general] Testing Email

2009-08-07 Thread b...@pettichord.com
Hi there. I've been away for a while, but am now back. I would like to automate email testing. Mainly make sure the right emails were sent. I guess what I want is to set up an email server in our lab, configure our app to send emails to it, and then my scripts can access it to make sure that

[wtr-general] Re: Testing Email

2009-08-07 Thread George
Hey Bret, it's been a long time! I found a couple of different approaches to this. I'm leaning towards Tmail (http://tmail.rubyforge.org/), but I haven't spent too much time on this. It appears that you can send and read emails. I also noticed that I can also use 'net/smtp' to send emails.

[wtr-general] Re: How to judge the button or link exists in the page?

2009-08-07 Thread Marlon Mojares
I hope this helps *if link:* begin assert(ie.link(:name,Signout).exists?) puts login successfully rescue = e puts login failed + e.message + \n + e.backtrace.join(\n) end *if button:* begin assert(ie.button(:name,Signout).exists?) puts login successfully rescue = e puts

[wtr-general] Re: Testing Email

2009-08-07 Thread Darryl (gem dandy) Brown
Hello Bret, I'm doing email testing on our web based monitoring cards. Currently using a tweaked version of the Python mock SMTP server - mailsink.py. It displays the emails in the console and you can save them to a log file as well. I'm reading the log file with Ruby to validate the message

[wtr-general] how to stop ie thread?

2009-08-07 Thread Alex.Dev
hey, all. I have one problem is stop current thread in ie. The logic is: when i click button 'login google', it will open the browser and input usename and password. When i am click pause/resume button it will pause the input or resume the input. I have tried many ways, but none of the can work.