[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby-Watit

Uthpala Dissanayake

6/11/2009 9:15:00 AM

Hi,

I am using Watir to automate our regression test suite.

I have following question.

In watir I canot expand widgets.Could you please explan me the way to
expand the widgets using watir tool.

Please refer the screen shot for more information.

Attachments:
http://www.ruby-...attachment/3805/needs_to_expand_the_w...

--
Posted via http://www.ruby-....

10 Answers

Uthpala Dissanayake

6/11/2009 9:17:00 AM

0

Uthpala Dissanayake wrote:
> Hi,
>
> I am using Watir to automate our regression test suite.
>
> I have following question.
>
> In watir I canot expand widgets.Could you please explan me the way to write scripts to expand the widgets using watir tool.
>
> Please refer the screen shot for more information.

--
Posted via http://www.ruby-....

James French

6/11/2009 9:56:00 AM

0

SGksDQoNCkluIHJ1YnkgMS44LjcgdGhpcyBkb2VzIG5vdCB3b3JrIChzeW50YXggZXJyb3IpOg0K
DQpjbGFzcyBBDQoNCiAgZGVmIHRlc3Q9KHZhbCwgJmJsb2NrKQ0KICBlbmQNCg0KZW5kDQoNCkEu
bmV3LnRlc3QgPSAxMCBkbw0KZW5kDQoNCg0KSSB3b3VsZCByZWFsbHkgbGlrZSB0byBhbiBhc3Nv
Y2lhdGUgYSBibG9jayBpbiB0aGlzIHdheS4gSXMgdGhlcmUgYSB3YXkgcm91bmQgdGhpcz8NCg0K
Q2hlZXJzLA0KSmFtZXMNCg==

Nugroho Herucahyono

6/11/2009 10:27:00 AM

0

Whoaa... never do it this way, and it seems doesn't work in 1.9 too
and I agree with you, that it should works. Ruby's bug ??

On 6/11/09, James French <James.French@naturalmotion.com> wrote:
> Hi,
>
> In ruby 1.8.7 this does not work (syntax error):
>
> class A
>
> def test=(val, &block)
> end
>
> end
>
> A.new.test = 10 do
> end
>
>
> I would really like to an associate a block in this way. Is there a way
> round this?
>
> Cheers,
> James
>

James French

6/11/2009 3:47:00 PM

0

Thanks for checking this. I guess I should raise a bug report.

-----Original Message-----
From: Nugroho Herucahyono [mailto:me@xinuc.org]=20
Sent: 11 June 2009 11:27
To: ruby-talk ML
Subject: Re: method=3D and block

Whoaa... never do it this way, and it seems doesn't work in 1.9 too
and I agree with you, that it should works. Ruby's bug ??

On 6/11/09, James French <James.French@naturalmotion.com> wrote:
> Hi,
>
> In ruby 1.8.7 this does not work (syntax error):
>
> class A
>
> def test=3D(val, &block)
> end
>
> end
>
> A.new.test =3D 10 do
> end
>
>
> I would really like to an associate a block in this way. Is there a way
> round this?
>
> Cheers,
> James
>


Joel VanderWerf

6/11/2009 4:05:00 PM

0

> On 6/11/09, James French <James.French@naturalmotion.com> wrote:
>> Hi,
>>
>> In ruby 1.8.7 this does not work (syntax error):
>>
>> class A
>>
>> def test=(val, &block)
>> end
>>
>> end
>>
>> A.new.test = 10 do
>> end
>>
>>
>> I would really like to an associate a block in this way. Is there a way
>> round this?

I'm pretty sure this is not a bug. It's been discussed once or twice
before on the ruby-talk list.

What are you trying to do with this syntax? Note the potential for
ambiguity:

A.new.test = [1,2,3].find do |i| i>1 end

This is currently parsed as

A.new.test = (
[1,2,3].find do |i| i>1 end
)

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Christopher Dicely

6/12/2009 2:01:00 PM

0

On Thu, Jun 11, 2009 at 2:55 AM, James
French<James.French@naturalmotion.com> wrote:
> I would really like to an associate a block in this way. Is there a way round this?

I don't think so. It isn't parsed as a normal method call, its parsed
as a special construct with the = that is converted into a method call
in a way which doesn't support picking up a block. I don't really
think that using = this way would be a good idea even if you could.

Robert Klemme

6/12/2009 2:19:00 PM

0

2009/6/12 Christopher Dicely <cmdicely@gmail.com>:
> On Thu, Jun 11, 2009 at 2:55 AM, James
> French<James.French@naturalmotion.com> wrote:
>> I would really like to an associate a block in this way. Is there a way round this?
>
> I don't think so. It isn't parsed as a normal method call, its parsed
> as a special construct with the = that is converted into a method call
> in a way which doesn't support picking up a block. I don't really
> think that using = this way would be a good idea even if you could.

+1

If I see this

foo.bar = x do
something
end

I assume that "foo.bar" becomes the result of evaluating "x do ...
end". And the Ruby interpreter does so, too. Joel is absolutely
right about the ambiguity. Note also that this it is not possible to
somehow make a block work with a "regular" assignment (i.e. a direct
variable assignment):

bar = x do
something
end

Again, x will be called with the block and the result will be assigned
to bar. It would be a very bad idea IMHO to introduce inconsistencies
here. Please rather try to find a different solution. Note that you
can always do

def bar(&b)
@block = b
end

And then

foo.bar do
something
end

Kind regards

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestprac...

booie

11/18/2011 12:35:00 PM

0

On Nov 17, 9:59 pm, band beyond description
> it was just a Sweetbac-like attempt to let loose a zinger riposte,
<snip>
> in terms of style to Sweets' excoriating Don Rickles.

I would think more on the line of Andrew Dice Clay type of zingers.
The way he rips into something with no finese?
Andrew Dice Clay lets it fly like Sweetbac.


What comedian or stand up comic do you think is on par withs Sweets?



booie..............

mr.rapidan

11/18/2011 3:19:00 PM

0

On Friday, November 18, 2011 7:35:06 AM UTC-5, booie wrote:
> What comedian or stand up comic do you think is on par withs Sweets?

One of Sweets' faves: Nipsey Russell.

Dave Kelly

11/18/2011 3:57:00 PM

0


"dr.narcolepsy" <jminpa@gmail.com> wrote in message

> One of Sweets' faves: Nipsey Russell.

Moms Mably was a bigger influence.
I've also been influenced by Galllagher....
you shoulda been there at last years RMGD lunch when
I broke out the sledgehammer and gross of honeydews!