[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

[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] following object is not identified in watir

2008-11-19 Thread pub
Hi, In our application we have Upload option is there to upload photos from local machine,but the upload button is not identified in watir. Give me the solution for this Thanks and Regards, Pub --~--~-~--~~~---~--~~ You received this message becau

[wtr-general] Re: Text field Numeric Issue

2008-11-19 Thread Prince3105
Hi Friend, I couldn't understand, Its a text field it should accept only numeric value. If we enter any other values it will create a error message pop up. I am using the any one of the above codes, but it creates the pop up, Just i want to know that, Any error on the code? or any other codes av

[wtr-general] Earn some extra money , $3000 per months

2008-11-19 Thread Shiv Jadhav
http://www.AWSurveys.com/HomeMain.cfm?RefID=shivraj.jadhav14 Hi, Click on the link and do registration. This is the online survey site. When you do registration, it will create your own account. They will send some link in your account. When you click on that link it will open one website. You h

[wtr-general] Re: Firewatir (1.6.2) and select_list objects

2008-11-19 Thread Bret Pettichord
This is now fixed in trunk. I would have updated the Jira ticket, but Jira seems to be unavailable right now. (I can view the ticket, but can't log in to update it. OTOH, Confluence is working.) I'll update Jira later. Bret Tiffany Fodor wrote: > Hey Bret! > > I've opened Jira ticket WTR-271

[wtr-general] Executing watir 1.6.2 scripts on MAC

2008-11-19 Thread Natasha
Hi All, I having trouble executing my scripts on MAC. They work well on Windows OS. I have installed firewatir and safariwatir on MAC. 1. Its giving me an error for the following statement: require 'firewatir' Error: 'require': no such file to load -- firewatir(LoadError) 2. Also can I execut

[wtr-general] Efficient code writing

2008-11-19 Thread Natasha
Hi All, Can someone help me in writing better efficient code for the following: Following is a snippet of my of my tests: --- require 'watir' # the controller require 'test/unit' Watir.options_file = 'C:/natasha/RubyScripts/F

[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 lab

[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: 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 m

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

2008-11-19 Thread Bret Pettichord
This is exactly the right thing to do. Your description is quite good and belongs on our wiki. This is the right thing to do *before* the options have been parsed. Watir::Browser.default = x This is the right thing to do *after* the options have been parsed. Watir.options[:browser] = x Thi

[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 cr

[wtr-general] Re: HTML report class

2008-11-19 Thread wesley chen
Thanks John, The code works quite well. I think we can change the code, make it more beautiful and adapt to our project. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To

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

2008-11-19 Thread Charley Baker
I'm really not quite sure I understand what you're trying to do here. A couple of possibilities: -- forget the module altogether, in your example it doesn't really serve any additional value. class QQ def print_elem puts "elem" end def test print_elem puts "test" end end qq =

[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_Ele

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

2008-11-19 Thread Jarod Zhu
For some reason, I want to invoke the "include" in a class instance function, but the code below returns error like this: in `test': undefined method `include' for # (NoMethodError) code: ** class QQ module QQ_Elem def print_e

[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 a

[wtr-general] Re: Text field Numeric Issue

2008-11-19 Thread juuser
You have to probably fire_event("onchange") or whatever JavaScript event you have tied to that text_field after you've set the value. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to t

[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 you

[wtr-general] HTML report class

2008-11-19 Thread JArkelen
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. Cheers, John --~--~-~--~~~---~--~~ You received this message because you are subscri

[wtr-general] Screenshot on remote machine

2008-11-19 Thread LFIdnl
Hi all! I run watir scripts on remote computer (logged-in through MS Remote Desktop ). In case of error/exceptions script make a screenshot with a win32screenshot.gem , but result of screenshot - black rectangle. On local machine screenshot has normal image. What can I do for take a normal scree