[Wtr-general] Is Watir suitable for Web app (.Net Framework)?

2005-08-30 Thread Hue Mach Dieu
Dear All, I just finished the web automation test use Watir. Now I have new web project (base on .Net framework) may be use C# or ASP.net. I would like to know is Watir suitable for it. Thank you and best regards, Hue Mach ___ Wtr-general mailing

[Wtr-general] RE: WATIR is slow ???

2005-08-15 Thread Hue Mach Dieu
Hi, You can use this method for increase Watir speed ie.set_fast_speed Regards, Hue ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] RE: WATIR is slow ???

2005-08-14 Thread Hue Mach Dieu
Hi All, Currently, Watir input data into control so slow. Bc it input one by one character. But we can do this for increase watir input data into control by change a little bit core code of watir I change a little bit code in watir.rd and got the speed increase very fast. I think the Watir

[Wtr-general] RE: Help read data in table with Row

2005-08-13 Thread Hue Mach Dieu
Hi All, I have the one way work around in this case. Normally, I still use method to_a read data in table. So I flatten it to 1D array. In the expected result, I also put it in 1D array. By the way, I can compare value of both arrays. Anyway, in some cases the compare result may be incorrect.

[Wtr-general] Help truncate 2D array?

2005-08-11 Thread Hue Mach Dieu
Hi All, I have 2D array like this A1: [[1,2,3],[4,5,6],[7,8,9]] Now, I would like truncate the any column in array A1 For ex: A1: [[1,2,3],[4,5,6],[7,8,9]] I truncate the column 1 of A1 The expected 2D array as like this A2: [[2,3],[5,6],[8,9]] Thank you for help Hue

[Wtr-general] RE: Help Lib Path incorrect?

2005-08-11 Thread Hue Mach Dieu
Hi, I think the problem cause with D:/Applications/ruby/lib/ruby/site_ruby/1.8/log4r/configurator.rb don't know the base directory. When I run the TC.rb from console the ruby interpreter get the current directory as base path. So it executed without problem. And in case I run it within

[Wtr-general] Re: Small question about split String?

2005-08-08 Thread Hue Mach Dieu
Hi, I solve my problem as like this, It work with my cases string = ABC12345 numPos = string =~ /\d/ alpha = string.slice(0,numPos) number = string.slice(numPos, string.length - numPos).to_i Regards, Hue Mach ___ Wtr-general mailing list

[Wtr-general] Re: Object repository, Popups and other enhancements

2005-08-08 Thread Hue Mach Dieu
Hi, I read the tutorial about WET framework (http://www.wet.qantom.org), It seem good. Now I'm starting try it with my current project Regards, Hue ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Small question about split String?

2005-08-07 Thread Hue Mach Dieu
Dear All, I need split Character Numeric from string to 2 elements. My string in some case as like this: Case1: A13 - The result must be in array: [A, 13] Case2: ACB12334 - The result must be in array: [ABC, 12334] ... Thank you for help Hue ___

[Wtr-general] Re: Help Define Test data Path?

2005-08-07 Thread Hue Mach Dieu
Hi Raghu Venkataramana, You mean define $input_test_data_path = '.\testdata.xls' in config.rb file use this variable in TC1, TC2 I have define it as $input_test_data_path = '.\testdata.xls', but I got the exception Thank you for help Hue ___

[Wtr-general] Re: Small question about split String?

2005-08-07 Thread Hue Mach Dieu
Hi I follow your ways, but it seem don't work Here my script string = ACB12334 puts string string =~ /[A-Z]/ puts string alphas = $ puts alphas string = ACB12334 puts string string =~ /[0-9]/ puts string numerics = $ puts numerics And I got the result: ACB12334 ACB12334 A ACB12334 ACB12334 1

[Wtr-general] Help Define Test data Path?

2005-08-06 Thread Hue Mach Dieu
Hi All Currently, I define the fix path of test data. But in this way is not so good when we run test script in other computer with difference folder. Currently, The structure of my test script like this --testScript -- TC1 -- TC1.rb -- TC2 -- TC2.rb -- .. -- Util --

[Wtr-general] Help check Popup dialog exist?

2005-08-01 Thread Hue Mach Dieu
Hi All, How can I check popup dialog exist or not Thank you for help? Regards, Hue ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Help Object Repository?

2005-07-28 Thread Hue Mach Dieu
Dear ALL, Does anyone have define all object in one file and these object reference by other test cases like [QuickTest Pro] or [Silktest] object repository # ObjectRepository require 'watir' include Watir @ie = IE.new @obj_leftFrame = @ie.frame(leftframe) @obj_btnSubmit =

[Wtr-general] Get Radio Button Text?

2005-07-28 Thread Hue Mach Dieu
Dear All How can I get this Radio Button Text (in this case is Stepper or C/D) The HTML code as below .. tr td class=sitemType/td td input type=radio name=kind value=0 onClick=change_kind(); checked Stepper input type=radio name=kind value=1 onClick=change_kind();

[Wtr-general] RE: Click OK button on Popup Dialog?

2005-07-25 Thread Hue Mach Dieu
Hi I define click popup method like this: $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__ require 'watir' require 'watir/WinClicker' include Watir def startClicker( button , waitTime = 0.5) w = WinClicker.new longName = $ie.dir.gsub(/ , \\ )

[Wtr-general] RE: Get 2D Array size?

2005-07-24 Thread Hue Mach Dieu
(Bret Pettichord) 7. Get 2D Array size? (Hue Mach Dieu) 8. Re: finding javascript-created browser window (Shao Kang Tat) 9. Re: finding javascript-created browser window (Kurt Sussman) 10. Re: Get 2D Array size? (Jared Quinert

[Wtr-general] Help get data from Table

2005-07-20 Thread Hue Mach Dieu
Hi All, I would like get data from table, but when view HTML code of this page, I don't found the id of this table. html head meta http-equiv=Content-Language content=ja meta http-equiv=Content-Type content=text/html; link rel=stylesheet type=text/css href=../style.css script