[wtr-general] Re: Screenshot on remote machine

2008-11-19 Thread juuser
It works for me fine if Remote Desktop window is not minimized. It might not be maximized or under any other window, but as soon as it gets minimized, then AutoIt and screenshots won't work. Also, it should not have screensaver, nor locked (on remote machine). You can have screensaver and lock

[wtr-general] watir 1.6.2 - Watir::Browser.new

2008-11-19 Thread Karl
Hi My team recently upgraded to watir 1.6.2. To drive our testing we read data from a file and build data sets for each test case. One element of the data set is the browser we wish to test against (i.e. IE or Firefox). If the browser changes (e.g. from IE to Firefox) we close the IE browser

[wtr-general] how can I invoke the 'include' in the class instance function

2008-11-19 Thread Jarod Zhu
For same reason, I want to invoke the 'include' in the class instance function. The code like this: ** class QQ module QQ_Elem def print_elem puts elem end end def test include QQ_Elem

[wtr-general] Inactive windows on remote machine

2008-11-19 Thread al3kc
Hi all, When I try to run my scripts on remote machine Watir creates browser window as usually but this window stays inactive. So all my scripts with AutoIt fails. But when I open this machine in remote desktop connection and try to run the same scripts browser window became active just after

[wtr-general] Re: HTML report class

2008-11-19 Thread Bret Pettichord
JArkelen wrote: I added a HTML report class example to the wiki: http://wiki.seleniumhq.org/display/WTR/HTML+report+class This class can be used to create a HTML report of a test script execution. thanks for sharing this. could you attach a sample report to the wiki page? that will make

[wtr-general] Conditional Testing of Dynamic Form

2008-11-19 Thread Ransom
Problem: We have a wizard-like application that I have built a Watir and Rasta-based test framework around. A number of the steps in this application contain dynamic forms...meaning, the form changes quite drastically and with many new options being included or dropped depending on the test case.

[wtr-general] Re: Conditional Testing of Dynamic Form

2008-11-19 Thread Ransom
Perhaps my real question is whether or not there is a Watir method that scrapes the current browser page for object names, ids, etc... I think I know the answer ;) Still, this solution can be used, it's just that the conditional part of the case statement would be looking for page objects like

[wtr-general] Re: following object is not identified in watir

2008-11-19 Thread wesley chen
Try the code below: def upload_file(ie, filepath) if filepath.include?(/) filepath.gsub!(/,\\) end if FileTest.exists?(filepath) ie.file_field(:id,theFile[0]).set(filepath) else return false end end upload_file($ie,

[wtr-general] Re: HTML report class

2008-11-19 Thread JArkelen
Done. On Nov 19, 5:08 pm, Bret Pettichord [EMAIL PROTECTED] wrote: JArkelen wrote: I added a HTML report class example to the wiki: http://wiki.seleniumhq.org/display/WTR/HTML+report+class This class can be used to create a HTML report of a test script execution. thanks for sharing