[wtr-general] Re: Logging to file with Firefox

2009-05-12 Thread ash
Full script with line numbers (followed by the full error); 1 #-# 2 require 'watir' 3 require 'test/unit' 4 require 'example_logger1' 5 6 class TC_go_to_homepage Test::Unit::TestCase 7 8 def start 9 Watir::Browser.default =

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-12 Thread Durgesh Nadkarni
Hi Kiran, Thanks for the reply. Please find the code below. require 'test/unit' require 'watir' require 'watir/assertions' require 'watir/screen_capture' class Portal Test::Unit::TestCase include Watir::Assertions include Watir::ScreenCapture  def test_Working   #Open IE and navigate to site  

[wtr-general] Re: file download popup handle

2009-05-12 Thread kiran
Hi, Use Clik_no_wait instead of click and use threads.its something like this t=Thread.new{ file_download_code } t.join() Thnaks, kiran. On May 12, 9:36 am, curious csamigr...@gmail.com wrote: I put below code in order to automate file download popup.. ie.button(:name, Button5).click

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-12 Thread kiran
Change code to # Clicking on search button ie.button(:name, searchSub).click_no_wait # Capturing second image which is not working at the moment screen_capture(keywordserror.jpg,true) Thanks, kiran. On May 12, 12:02 pm, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Kiran, Thanks

[wtr-general] Re: Problems dealing with javascript popups

2009-05-12 Thread kiran
I have used the below code and it worked fine in my project. Thread.new{ sleep(3) # put appropriate sleep time Watir.autoit.WinWait(Title name) Watir.autoit.WinActivate(Title name) Watir.autoit.Send(username) Watir.autoit.Send('{TAB}')

[wtr-general] Re: Problems dealing with javascript popups

2009-05-12 Thread kiran
Please tell me still if you have any issues. Thanks, kiran. On May 12, 1:46 pm, kiran gki...@gmail.com wrote: I have used the below code and it worked fine in my project. Thread.new{ sleep(3) # put appropriate sleep time Watir.autoit.WinWait(Title name)

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-12 Thread Durgesh Nadkarni
Hi Kiran, I have tried using click_no_wait method. But its still not working. This time it stores the file with extension .mht and that too before alert window appears. Do I need to make any more changes? Thanks Durgesh. --- On Tue, 12/5/09, kiran gki...@gmail.com wrote: From: kiran

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-12 Thread Durgesh Nadkarni
Hi Mark, Thanks for the reply. But .click_no_wait method is not working. It just creates one .mht file before the alert error window appears. Is there any other way to deal with this problem? Thanks Durgesh. --- On Mon, 11/5/09, Mark Anderson mander...@drillinginfo.com wrote: From: Mark

[wtr-general] Re: Problems dealing with javascript popups

2009-05-12 Thread SushilKarwa
Thanks for your help. I was able to successfully get the alert box and click on the OK button with the code you provided... Would this still work if there are multiple alert boxes..I mean after I click OK on the first box and then another one appears..Would this still handle that... Thanks, S.K

[wtr-general] Re: Logging to file with Firefox

2009-05-12 Thread Angrez Singh
FireWatir doesn't support logging like Watir does. You need to write your own logger for that. You can add a JIRA ticket for this. - Angrez On Tue, May 12, 2009 at 12:14 PM, ash ashbr...@gmail.com wrote: Full script with line numbers (followed by the full error); 1

[wtr-general] Re: Watir::IE.new - how does the IE object differ from a normal Windows IE instance?

2009-05-12 Thread Nathan Lane
The Watir IE object is instantiated through OLE (I believe or it could be COM), which is done over a server-like connection, whereas running IE actually starts the entire program from executable. This may not be entirely correct though, as I do not fully understand how OLE or COM work. IE is

[wtr-general] Traversing nested elements

2009-05-12 Thread Gofu
Hello everyone, I have a website that is generated dynamically (jsp). I would like to use the help of Watir to traverse through all of the many levels of nested tables/links in this site. The problem is that I can't be certain about the attributes (name, id) of the tables/links because when the

[wtr-general] Job Opportunity at Columbus, OH

2009-05-12 Thread lgeo...@everesttech.com
Hi all, One of my clients is dire need of a QA Engineer with deep understanding and experience in Watir. Please email Leah at lgeo...@everesttech.com with your interest or any referrals. Thanks Leah --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-12 Thread John Kolokotronis
Sorry, that second $ie, should be ie to match your browser object, like this: t = Thread.new(){ ie.button(:name, searchSub).click } m = Thread.new(ie) { screen_capture(keywordserror.jpg,true) } m.join t.join --~--~-~--~~~---~--~~ You received this message because

[wtr-general] Re: Watir::IE.new - how does the IE object differ from a normal Windows IE instance?

2009-05-12 Thread Bret Pettichord
You can also try Watir::IE.new_process, which starts IE using a different mechanism, closer to what happens when you start it manually. Bret Jason wrote: The question: how does the Internet Explorer object created via Watir (Watir::IE.new) differ from an Internet Explorer object opened the

[wtr-general] Re: Traversing nested elements

2009-05-12 Thread jason
not sure if this helps - but it might be a start ff.tables.each do |table| table.links.each do |link| link.click #for example end end hope that helps. On 12 Mai, 15:49, Gofu thanapoom.chareons...@gmail.com wrote: Hello everyone, I have a website that is generated dynamically

[wtr-general] javascript popup window not responding to startClicker

2009-05-12 Thread jason
I am on a mac and linux with firefox so i cannot use this Autoitx thing that everyone seems to be using to click away javascript popups when then they appear. the code below works most of the time - but for some reason no the website http://www.stepstone.de The pop appear - but it does not get

[wtr-general] Re: Unable to attach to a page on makemytrip

2009-05-12 Thread Eric Morris
I added a 30 second sleep because the page is still processing info when it loads and the button does not exist and it worked fine for me. You might not need to wait that long just the first value I tried. require 'watir' ie=Watir::IE.new ie.goto(www.makemytrip.com)

[wtr-general] Re: Insallation issue

2009-05-12 Thread Alan Baird
Vicky - Are you behind a proxy? Alan -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Vicky Goyal Sent: Sunday, May 10, 2009 3:56 PM To: Watir General Subject: [wtr-general] Re: Insallation issue Both the options did nt wrk

[wtr-general] Re: file download popup handle

2009-05-12 Thread curious
Could you please tell me where in my code I change / add the code you are suggesting?? Would you please update my code with your suggestion?? I am pretty new to WATIR..and I really am not sure what to do with your suggestion.. Your help will be deeply appreciated. Thank you. On May 12,

[wtr-general] Re: Insallation issue

2009-05-12 Thread vikas goyal
@alan Thanks for writing in.. i am working on personal desktop , so there is no proxy server, but i found out few virus on my sys... so tht could be one reason.. way say.. currenly i m wokrin with watir 1.4 , atleast i can learn basic. May be in a week or so, i shal try again with new watir

[wtr-general] Roo error on Ubuntu 9.04

2009-05-12 Thread Richard Wijdenes
Hi all, After installing ruby, rubygems, firewatir, which all seems working fine, i would like to create some datadriven scripts with roo (to access spreadsheets). But when i tried to install roo sudo gem install roo i got the following:

[wtr-general] Re: Roo error on Ubuntu 9.04

2009-05-12 Thread Paul Rogers
I think that means you need t install the ssh libraries. openssh maybe. Cant rememeber exactly im afraid Paul On Tue, May 12, 2009 at 4:22 PM, Richard Wijdenes richard.wijde...@gmail.com wrote: Hi all, After installing ruby, rubygems, firewatir, which all seems working fine, i would like

[wtr-general] Re: Watir::IE.new - how does the IE object differ from a normal Windows IE instance?

2009-05-12 Thread Jason N
Brett, thanks. Unfortunately, but interestingly, that doesn't make a difference. On May 13, 3:17 am, Bret Pettichord b...@pettichord.com wrote: You can also try Watir::IE.new_process, which starts IE using a different mechanism, closer to what happens when you start it manually. Bret

[wtr-general] Re: Watir::IE.new - how does the IE object differ from a normal Windows IE instance?

2009-05-12 Thread Jason N
I think I need to dig around and understand these redirections, but they're basically related to AB variation testing... Thanks for your thoughts! Jason On May 13, 1:20 am, Nathan Lane nathamberl...@gmail.com wrote: The Watir IE object is instantiated through OLE (I believe or it could be

[wtr-general] Re: Roo error on Ubuntu 9.04

2009-05-12 Thread Hugh McGowan
You could try adding require 'open-uri' and see if that helps. net/http, net/https, etc are part of that lib and maybe it's not required by default on Ubuntu? I don't have an install of that handy or I'd check. Worse case (hacky) you can manually modify roo.rb in the installed package and

[wtr-general] Re: Problems dealing with javascript popups

2009-05-12 Thread Wesley Chen
Please don't put your eyes on the rare cases, but on the most important part. When we can do our most automation test in Watir, we think it is perfect. Do you think so? Thanks. Wesley Chen. On Tue, May 12, 2009 at 8:18 PM, SushilKarwa sushil.ka...@gmail.com wrote: Thanks for your help. I was

[wtr-general] Re: Checking form controls/fields using a hash

2009-05-12 Thread George
Hi everybody, I figured I should close out this thread with a good (well, I guess that's relative) solution to my problem: company_name = $ie.text_field(:id, CompanyName) username = $ie.text_field(:id, username) password = $ie.text_field(:id, password) page_hash = {company_name = Company Name