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=
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
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
try:
f.write(t1.to_s + \n)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
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
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
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
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
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
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
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
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
___
+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
/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
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
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
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
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
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
I vote yes :)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
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?
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
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
23 matches
Mail list logo