[Wtr-general] assertion on the color of the row of a table

2007-01-01 Thread Ajitesh Srinetra
Hi everyone In my application I want to assert on the color of the row of a particular table. Based on the certain rules the color of these rows are changing.so every time i need to assert on those . Thank you in advance ___ Wtr-general mailing list

Re: [Wtr-general] assertion on the color of the row of a table

2007-01-04 Thread Ajitesh Srinetra
Hi all , The html code looks like this td style='background-color:#33FFCC; color:#CC0033' a href=# onClick=populateLinks('subscriber_info',event, 'Recharge Info,Caller Subscriber Info', '2,4', '1,0','+919812005762'); return highlightRow('2');

Re: [Wtr-general] opening a link in new window

2007-01-08 Thread Ajitesh Srinetra
Hi all, I want to open a link in new winow(By right clicking the link we can say open in new window). How this can be achieved in watir. Regards Ajitesh S. ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Problem with wrapper created around Watir.rb

2007-02-20 Thread Ajitesh Srinetra
Ajitesh Srinetra ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Problem with wrapper created around Watir.rb

2007-02-22 Thread Ajitesh Srinetra
Hi Bret This is one sample testcase require File.dirname(__FILE__) + '/../../../test_helper' require File.dirname(__FILE__) + '/../../../Methods/ProcessRecords' require File.dirname(__FILE__) + '/../../../Methods/RuleCreation' class RuleTemplateWithRule_test Test::Unit::TestCase def setup

Re: [Wtr-general] Problem with wrapper created around Watir.rb

2007-02-22 Thread Ajitesh Srinetra
Hi Bret Sorry I missed the wrapper code that i have written require 'watir' include Watir include SupportsSubElements module SupportsSubElements def _getNikiraLink(links, how, what) link = nil case how when :index begin

Re: [Wtr-general] How to save file via File download dialog

2007-04-23 Thread Ajitesh Srinetra
You can use ie.fileField(:id, 'file_name').set(D:/Files/filename.txt) Ajitesh Srinetra ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Assertion on the contents of PDF

2007-05-21 Thread Ajitesh Srinetra
Hi All In my Application I have one link which puts the data from a table on the web-page to a pdf . Now can i assert on the contents of this PDF file through watir Can the same be done with excel and text files Ajitesh Srinetra ___ Wtr-general

[Wtr-general] Error while calculating day of the year

2007-05-28 Thread Ajitesh Srinetra
and throwing error NoMethodError: undefined method `yday' for main:Object from (irb):13 I have seen in date.rb the function, yday() is present so no problems with ruby version Ajitesh Srinetra ___ Wtr-general mailing list Wtr-general@rubyforge.org http

[Wtr-general] assert on the color of a row in the table

2007-06-28 Thread Ajitesh Srinetra
=padding: 5px; 400.00 /td td align=right style=padding: 5px; 400 /td td align=right style=padding: 5px; 40 /td /tr I tried ie.table (:id,'tbl_show_records')[5][1].style but i am getting #WIN32OLE:0x2dad28c as the returned value. Thanks in advance Ajitesh Srinetra

Re: [Wtr-general] How to pick the last word in the sentence (sapna)

2007-07-10 Thread Ajitesh Srinetra
Hi Sapna, The HTML code was not there , But you can try this string=ie.link(:id,'yourlink'sID').text mytext=string.split(' ') #Separated by space yourtext=mytext[mytext.length - 1] For more help you can refer array class in ruby Let me know if it is helpful Ajitesh

[Wtr-general] button.save ?

2007-07-17 Thread Ajitesh Srinetra
:fill_save_image_dialog end In the above code if we change ' Save Picture' with 'File DownLoad ' and put the same in Button class , the same should work for File download. Am I right with this ? Thanks and Regards Ajitesh Srinetra ___ Wtr-general mailing list Wtr

Re: [Wtr-general] Installing watir 1.5 actually installs 1.4.1 again

2007-07-23 Thread Ajitesh Srinetra
You can look into http://wiki.openqa.org/display/WTR/FAQ It will tell you about the installation steps as well as the source . Look for Installing a gem from the latest development source . I hope it helps I ___ Wtr-general mailing list