[wtr-general] how to deal alter popups( in 1.4.1.exe)

2009-05-20 Thread lnl
... def push_alter_ok autoit=win32ole.new('autoitx3.control') autoit.winwait Microsoft Internet Explorer, autoir.send({enter}) end .. why I add the code in my script,it could not useful? thanks. --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Common Watir

2009-05-20 Thread Mary Subaidha
Hi There - I would like to know 1.How to install common watir? 2. Sample code 3. Common watir code can be used for all the OS (or) only on IE FF Browsers? Note: I have got experience in working of Watir Fire Watir Thank you. - Mary :) --~--~-~--~~~---~--~~

[wtr-general] Re: Common Watir

2009-05-20 Thread JArkelen
Install it with 'gem install commonwatir'. I think commonwatir has common methods used by watir, firewatir and safariwatir, so you don't need/can't run commonwatir itself. Cheers, John On May 20, 10:15 am, Mary Subaidha marysubai...@gmail.com wrote: Hi There - I would like to know 1.How to

[wtr-general] Re: Common Watir

2009-05-20 Thread Željko Filipin
On Wed, May 20, 2009 at 10:15 AM, Mary Subaidha marysubai...@gmail.com wrote: 1.How to install common watir? commonwatir is common code used by Watir and FireWatir (from the source). If you install Watir or FireWatir, you will have it installed. Just install Watir or FireWatir and you should be

[wtr-general] Re: Common Watir

2009-05-20 Thread Željko Filipin
On Wed, May 20, 2009 at 10:55 AM, Mary Subaidha marysubai...@gmail.com wrote: May I have some sample scripts for common watir. There is no such thing. Commonwatir is just the code that Watir and FireWatir share. Use Watir or FireWatir. If you need help with Watir, follow the links I have sent in

[wtr-general] Re: Unable to locate element

2009-05-20 Thread Kamesh G
HI Siva, My script is working fine. Main problem in the scripts was, all the objects are in the IFrame. I used the below command it is working fine. ie.frame(:id, evaluationsIframe).link(:text, New Evaluation).click Thanks, Kamesh On Wed, May 20, 2009 at 12:18 PM, sHiVa

[wtr-general] Re: html method on watir don't return the real html

2009-05-20 Thread TCBlues
yep, it works using net/http but could I use watir and net/http together? I mean I need to login the user using watir and then get the html with net/http is it possible? thanks. On May 19, 10:26 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, May 18, 2009 at 7:19 PM, TCBlues

[wtr-general] Re: html method on watir don't return the real html

2009-05-20 Thread sHiVa
Hi TCBlues, As it is an another package in ruby, you can mix up both Watir and net/ http. Grab all the html content in to a file or string, and perform your desired operations. Regards Siva Phaneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message

[wtr-general] How to click on text/images/links within a vidPane

2009-05-20 Thread ash
I have been struggling with a section of my script for some time now where I generate what appears to be a pop up with 2 options for moving on. Having unsuccessfully tried many different pop up handling methods I am now a little stuck. Looking at the html the 'pop up' is referred to as a

[wtr-general] Re: html method on watir don't return the real html

2009-05-20 Thread TCBlues
But the problem is... I need to login the user first with watir and then get the html with net/http, is it possible? Since I think it's impossible to get the real html with watir now I'm trying to do it using only net/http library. In my case I need first to login the user onto the webpage and

[wtr-general] Re: html method on watir don't return the real html

2009-05-20 Thread sHiVa
Hi TCBlues, This code can help you. Here what i am doing is, using watir i opened yahoo.com and by passing the current yahoo url to the net/http i am capturing all the html code as a response for the url require 'watir' require 'net/http' require 'rubygems' ie=Watir::IE.start('www.yahoo.com')

[wtr-general] Re: html method on watir don't return the real html

2009-05-20 Thread TCBlues
Thanks for your answer but this is not working in my case. Since I'm logging the user with watir and I need to get the html with net/http in the same connection. Thanks for the try. On May 20, 4:11 pm, sHiVa krapa.ph...@gmail.com wrote: Hi TCBlues, This code can help you. Here what i am doing

[wtr-general] Watir - some VERY slow functions

2009-05-20 Thread Paul Denize
I finally found a performance issue and it was in the watir library. If a page (and dont get me started about it) has 200 plus radio buttons and your watir script decides to print all the attributes like so radios = ie.radios() for radio in radios puts radio.name puts radio.value end Then

[wtr-general] Re: How do I get the page status (200, 404, 500, etc)

2009-05-20 Thread Paul Denize
Thanks for all the replys. At first I was quite excited then realized they would make additional calls - the cookies, session, conversation elements would all be a nightmare. Not to mention that the load balancer may give valid results sometimes and invalid the next (say if one server is bad).

[wtr-general] Re: watir.rb - matches functions

2009-05-20 Thread Paul Denize
So you can build a function that takes in both an Integer, String, or Regex and then matchs it without having to build a case or switch if (parameter.matches(value)) note parameter could be any of the three types and the correct match function will apply.

[wtr-general] Re: Posting invalid form data with Watir

2009-05-20 Thread Paul Denize
Found a solution ie.text_field(itemtype,itemname).value=text works just fine. Also use the same technique to select options (choice) in a combo where that value may not already exist s = ie.select_list(itemtype,itemname) texts = s.getAllContents if (texts==[])