[wtr-general] Re: Select from auto-complete

2009-05-18 Thread Hemalatha Sivasubramaniam
Hi all, we have found out a solution for the query i posted and it is working fine. The solution is browser2.text_field(:class,dojoComboBox).focus() browser2.text_field(:class,dojoComboBox).set T browser2.text_field(:class,dojoComboBox).fire_event('onkeyup')

[wtr-general] Opening several different browsers

2009-05-18 Thread al3kc
Hi all, I need to open IE and FF browsers from one ruby file. I open IE browser using the following code: Watir::Browser.default = 'ie' $ie = Watir::Browser.new When I try to open new FF3 browser using similar code Watir::Browser.default = 'firefox' $ff = Watir::Browser.new it opens the one

[wtr-general] Re: file download popup handle

2009-05-18 Thread Željko Filipin
On Fri, May 15, 2009 at 8:25 PM, Chuck van der Linden sqa...@gmail.com wrote: reference the FAQ setion on popups http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIattachtoapopupwindow%3F Actually, a long time ago I have moved everything from this link to

[wtr-general] Re: How to upload screen shot here on this group.

2009-05-18 Thread satish
Thank you Siva. On May 17, 10:58 pm, sHiVa krapa.ph...@gmail.com wrote: Send your composed mail to  watir-gene...@googlegroups.com with attachment. Automatically you can see your post with attachment. Regards Siva --~--~-~--~~~---~--~~ You received this

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

2009-05-18 Thread TCBlues
Hi, I'm using watir to get the html of a page in order to verify every single page on w3c.org but what I get with watir is something like: HTML lang=is xml:lang=is xmlns=http://www.w3.org/1999/ xhtmlHEADTITLECertus Games/TITLE META http-equiv=Cache-Control content=no-cache META http-equiv=Pragma

[wtr-general] Re: How to work with popups?

2009-05-18 Thread George
Hi all, I was able to have some success using the following code: # popup_closer.rb require 'win32ole' begin autoit = WIN32OLE.new('AutoItX3.Control') loop do autoit.ControlClick(Windows Internet Explorer,'', 'OK') autoit.ControlClick(Security Information,'', 'Yes')

[wtr-general] Saving xml contents of a page shown on screen

2009-05-18 Thread Natasha
Hello All, Apologies for an unambiguous subject line. Following is a scenario in my test: 1. On a particular page, we have a hyperlink. 2. When you click on that hyperlink, it opens up an XML document in the same window 3. I wanted to copy the contents and save that XML file on disk. I can do

[wtr-general] Re: Saving xml contents of a page shown on screen

2009-05-18 Thread Alex Collins
Natasha, This is where you need to use a little natural Ruby. For example: filename = 'output.xml' File.open(filename, 'w').write browser.html Another useful style is: File.open(filename, 'w') do |output| output.puts Whatever I want to put in the file. end Hope this helps. Alex On

[wtr-general] Re: How to work with popups?

2009-05-18 Thread satish
Hi George, I tried this but did not work. I did use 'click' method on image and I got popup as needed. Once I have popup I am trying to click on Yes button. But there is no responce. I have tried another schenario where I have to use 'click_no_wait', problem here is popup does not appear. Can

[wtr-general] [Urgent help needed.] - CLICK_NO_WAIT does not show the popup needed any thoughts on that?

2009-05-18 Thread satish
Hello guys, Our guys are using DevEx controls. I have a image icon, if I click on that icon I will get a popup message with Yes, No buttons. Problem here is, I am not able to see popup when I use click_no_wait. I do not see any error messages either. When I use click method I am able to see

[wtr-general] no such file to load -- firewatir

2009-05-18 Thread Josh
I am on Mac OSx and am having trouble getting firewatir to run. On Ubuntu it works fine. I added require 'rubygems' to the top of my script but that didn't solve the problem (I shouldn't have to do that anyways because it has been working for 5 months). Any ideas? Thanks, Josh