[Wtr-general] Span troubles

2005-11-15 Thread Shao Kang Tat
I have a span that is not disabled, as follows: span id=ChangeProfileControl_FirstnameRequiredValidator controltovalidate=ChangeProfileControl_first_name errormessage=Please enter your first name. display=Dynamic evaluationfunction=RequiredFieldValidatorEvaluateIsValid initialvalue=

[Wtr-general] image within a link

2005-09-13 Thread Shao Kang Tat
Hey this is similar to the thread Image within a table cell where Bret points out you can get to the image by something like this: ie.table().table().table().cells.each {|c| c.text.strip if c.image(:src, xxx).exists?} I'm interested in images inside a link (i.e. a blah blah img .../a I've

Re: [Wtr-general] Writing values to a file

2005-08-25 Thread Shao Kang Tat
I believe it would be just f.write(t1 + \n) f.write(t3 + \n) the \n puts the next write on a new line ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Writing values to a file

2005-08-25 Thread Shao Kang Tat
try: f.write(t1.to_s + \n) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Writing values to a file

2005-08-25 Thread Shao Kang Tat
or f.write(t3.to_s + \n) rather if t3 is the line that's giving you trouble ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Writing values to a file

2005-08-25 Thread Shao Kang Tat
Well if you create your file and open it, you can just continue writing to it no problem. It's when you create your file, close it for some reason then open it again later on that you might over write it. But in that case you just open it in append mode so nothing gets overwritten. Take a look

[Wtr-general] Table bug

2005-08-23 Thread Shao Kang Tat
I'm working on an app which makes an empty table (it has zero columnsfor some reason and has NO ID) So as I test in IRB I did: ie.tables.each do|t|puts tend I get an error: WIN32OLERuntimeError: Unknown property or method `0'HRESULT error code:0x80020006 Unknown name.from

Re: [Wtr-general] Sleep statements and Attach

2005-08-20 Thread Shao Kang Tat
How about starting up autoit in another thread, then have that process infinite loop until it finds the window? Shao ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Checking for correct URl

2005-08-11 Thread Shao Kang Tat
ie.url() will give you the current url in the browser Shao ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

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

2005-08-11 Thread Shao Kang Tat
Well this line stands out to me: D:\MyScript/Util/config/configLoad.xml ^ this slash is different than the rest..that's my guess :) Shao ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Define methods within test case?

2005-08-09 Thread Shao Kang Tat
I have my test cases set up the same way and it doesn't matter if you define the method before or after. Ive seen that error before and it's as simple as changing: method1 to method1() Shao ___ Wtr-general mailing list Wtr-general@rubyforge.org

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

2005-08-08 Thread Shao Kang Tat
Here's what I did..seems to work: irb(main):069:0 a = ABC123 = ABC123 irb(main):070:0 b = a.split(/\d/) = [ABC] irb(main):071:0 b.push(a.sub(b[0],)) = [ABC, 123] which gives you the two entries in the array b. Not sure how else to do it :) Shao ___

Re: [Wtr-general] Iterators

2005-08-03 Thread Shao Kang Tat
+1 :) I'd also put in a request for table cells...sometimes I work with tables that have more rows/columns than the row_count and column_count say they do. When I try a table[x][y].exists? I get an error On 8/3/05, Bret Pettichord [EMAIL PROTECTED] wrote: At 10:42 PM 8/2/2005, Jeff Wood

Re: [Wtr-general] radio button support

2005-07-29 Thread Shao Kang Tat
/29/05, Shao Kang Tat [EMAIL PROTECTED] wrote: Hey, I got the latest version of watir from the tarball (thanks Zeljko). I currently have a page that has 3 radio buttons..here's the html: input type=radio name=AssociateWith value=Outlet input type=radio name=AssociateWith value=WebSite

Re: [Wtr-general] radio button support

2005-07-29 Thread Shao Kang Tat
Actually, rdoc does exist: C:\ruby\lib\ruby\1.8\rdoc or should it exist else where too? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] radio button support

2005-07-29 Thread Shao Kang Tat
oops, nevermind.I added it to the tarball and it installs now :) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] where's the tarball again?

2005-07-28 Thread Shao Kang Tat
Hey I remember someone told me where to get the tarball of the latest updates...but I forgot where it is and I can't find it... Does the current fix support value for radio buttons yet? Thanks Shao ___ Wtr-general mailing list

Re: [Wtr-general] How to get value out of table?

2005-07-28 Thread Shao Kang Tat
did you try something like this? t = frame1.table(:index, 3) puts t[1][24].text.strip Shao ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] finding javascript-created browser window

2005-07-24 Thread Shao Kang Tat
Speaking of modal dialogs, one of the developers from my company has figured out a way to deal with them (by changing them into regular pop ups at run time). There is one trick that must be employed, and that is to have a check in the Javascript code, for example, in pseudo code (since I don't

Re: [Wtr-general] Tabbing through website

2005-07-20 Thread Shao Kang Tat
I vote yes :) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Select using Value using regular expression

2005-07-13 Thread Shao Kang Tat
Oops, I just realized you wanted to use regular expressions Value. Ignore my post :) On 7/13/05, Bret Pettichord [EMAIL PROTECTED] wrote: At 08:51 PM 7/12/2005, Tuyet Cong-Ton-Nu wrote: I think \A should match the beginning of a string but this doesn't seem to work. Any ideas?

Re: [Wtr-general] missing image

2005-07-13 Thread Shao Kang Tat
Yes, I believe it could be a button. I've come across cases like that, where the HTML is input type=image but the only way for me to access it is by button. I *think* that it's identified as an image if, in the html, you specifically have: img src=blah... but I could be wrong..so, correct

[Wtr-general] deleting

2005-07-06 Thread Shao Kang Tat
I'm still having trouble with ruby dbi and deleting. I have this code: DBI.connect(DBI:ADO:PROVIDER=SQLOLEDB;DATABASE= blah blah) do |dbh| sql = DELETE FROM someTable WHERE someCondition dbh.do(sql) end it runs w/o errors but doesn't do any deletion. When this code is pasted into