Re: [wtr-general] Re: Problem starting watir in Ubuntu, Firefox 3, Ruby 1.8.7

2010-02-07 Thread Jari Bakken
On Sat, Feb 6, 2010 at 4:53 AM, parkurm park...@gmail.com wrote:

 I tried to use your recommended gem, but had the problem:

 superclass mismatch for class UnknownObjectException

 /usr/lib/ruby/gems/1.8/gems/watir-webdriver-0.0.1.dev5/lib/watir-
 webdriver/exception.rb:8
 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
 `gem_original_require'
 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
 `require'
 .

 Any ideas?


Željko is right (in the other thread). You can't require
watir-webdriver alongside other Watir implementations.

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: .text method in Watir and FireWatir

2010-02-07 Thread Betsy
Hi Tiffany,

Hope you have received the source code and other details as required.

Kindly help us out with a resolution.

Thanks in advance,
Betsy Joy.

On Feb 5, 9:14 am, Betsy joybe...@gmail.com wrote:
 Hi Tiffany,

 The source code is as below:-

 !doctype html public -//w3c//dtd html 4.0 transitional//en

 script
 var searchKey = '355a3|0c|54|49|2ac92_';
 /script

 script
 var tripType = 'O';
 var isSpecial = false;

 function selectAirline(airline){
         var airline_arr = new Array();
         var ct = 0;
         airline_arr[0] = airline;
         if(airline.indexOf(^) != -1){
                 airline_arr = airline.split(^);
         }
         for(var m=0;mairline_arr.length;m++){
                 airline = airline_arr[m];

                                                 airlineCodes[ct] = 'G8';
                                                 ct = ct+1;
                                                 if(airline == G8){
                                                         airline = Go Air;
                                                 }

                                                 airlineCodes[ct] = 'SG';
                                                 ct = ct+1;
                                                 if(airline == SG){
                                                         airline = Spicejet;
                                                 }

                                                 airlineCodes[ct] = '6E';
                                                 ct = ct+1;
                                                 if(airline == 6E){
                                                         airline = IndiGo;
                                                 }

                                                 airlineCodes[ct] = 'S2';
                                                 ct = ct+1;
                                                 if(airline == S2){
                                                         airline = Jet Lite;
                                                 }

                                                 airlineCodes[ct] = 'DN';
                                                 ct = ct+1;
                                                 if(airline == DN){
                                                         airline = Kingfisher 
 Red;
                                                 }

                                                 airlineCodes[ct] = 'JK';
                                                 ct = ct+1;
                                                 if(airline == JK){
                                                         airline = Jet 
 Konnect;
                                                 }

                                                 airlineCodes[ct] = '9W';
                                                 ct = ct+1;
                                                 if(airline == 9W){
                                                         airline = Jet 
 Airways;
                                                 }

                                                 airlineCodes[ct] = 'IT';
                                                 ct = ct+1;
                                                 if(airline == IT){
                                                         airline = Kingfisher 
 Class;
                                                 }

                                                 airlineCodes[ct] = 'GC';
                                                 ct = ct+1;
                                                 if(airline == GC){
                                                         airline = Go 
 Business;
                                                 }

                                                 airlineCodes[ct] = 'JL';
                                                 ct = ct+1;
                                                 if(airline == JL){
                                                         airline = Jet Lite 
 Codeshare;
                                                 }

                                                 airlineCodes[ct] = 'IC';
                                                 ct = ct+1;
                                                 if(airline == IC){
                                                         airline = Air India 
 IC;
                                                 }

                                                 airlineCodes[ct] = 'AI';
                                                 ct = ct+1;
                                                 if(airline == AI){
                                                         airline = Air India;
                                                 }

             var groupLength =
 document.getElementsByName('carrierName').length;
             for (var i = 0; i  groupLength; i++) {
                 if (document.getElementsByName('carrierName')[i].value ==
 airline) {
            

[wtr-general] Help with Modal Dialog boxes !!!!

2010-02-07 Thread Rohan Ojha
Hi,

 

Has anybody come across some method with which we can work on a modal dialog
window. I don't imply just closing the window but also clicking on a button
within the modal dialog box and reading the content of the box as well.

 

I am currently using 1.8.6 and Watir 1.5.2 and have read somewhere that Ruby
versions prior to 1.8.6 had support for modal dialog box.

 

Can any body please help with this ? I need to click on the Run button first
and the read the content and finally click on the close.

 



 

Thanks

Rohan Ojha

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
image001.gifimage002.jpg

Re: [wtr-general] Re: Questiona about Watir in Mac with Firefox 3.6

2010-02-07 Thread Angrez Singh
I think you need to install the JSSh plugin in Firefox 3.5 as Administrator.
Can you make sure you have installed the plugin with administrator
privileges.

- Angrez

On Sat, Feb 6, 2010 at 1:22 PM, Alister Scott alister.sc...@gmail.comwrote:

 Hi,

 You can use Firefox 3.5 until someone compiles the JSSH add-on for
 OSX.
 Alternatively you can take a look at SafariWatir:
 http://github.com/redsquirrel/safariwatir

 Cheers,

 Alister Scott

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general