I found a solution to my problem that I thought might useful to others
When the underlying web application uses gwt (
http://code.google.com/webtoolkit/) , firing a sequence of mouse events can
also get the desired click event

fire_event "onmouseover"
fire_event "onmousedown"
fire_event "onmouseup"

On Wed, Jul 14, 2010 at 11:49 AM, Basim Baassiri <[email protected]> wrote:

> Thanks Super for the suggestion.I was looking for a cross platform solution
>
> I tried you suggestion and it works (as a workaround)
>
> Thanks
>
> Basim
>
>
> On Wed, Jul 14, 2010 at 10:39 AM, Super Kevy <
> [email protected]> wrote:
>
>> Consider autoit sendkeys.
>>
>> This is code (partial) scraped from the demo on the thumbs popup
>>
>> <div class="product-panel-inner" style="overflow: hidden; position:
>> relative;">
>>  <div class="product-panel-title" style="overflow: hidden; position:
>> relative;">
>>  <div class="gwt-HTML">OVERSIZED SQUARE SUNGLASSES WITH METAL T-HINGE
>> </div>
>>  </div>
>> <div class="panel-close" style="overflow: hidden; position:
>> relative;">
>>  <img class="gwt-Image" onload='this.__gwtLastUnhandledEvent="load";'
>> src="http://v.overlay.tv/demo/html5/retail_player/clear.cache.gif";
>> style="background: transparent url(data:image/
>>
>> png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAOCAYAAADwikbvAAAAiklEQVR42mP4TwFggNJRDCQAkHoMzUB6N5Sfhqa4HCq
>> +G59mJSB
>> +B8VKUDEXqJq7QCyIUzNUIg0qdgZq2F0o3wWvs5EkZyLZBgLlBP2MpuAMzAVEBRiSJMzv/
>> 5H9T6xmmK0zsdmOL8BgGmZi4+OLqjQcNp1BDnEMzdjiGEmzMVLoKxEMbVKSJ1kAAB2R/4f/
>> fHzKAAAAAElFTkSuQmCC) no-repeat scroll 0px 0px; width: 15px; height:
>> 14px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-
>> initial; -moz-background-inline-policy: -moz-initial;" border="0"></
>> div>
>> <div class="clear" style="overflow: hidden; position: relative;"></
>> div>
>> <div class="product-panel-content" style="overflow: hidden; position:
>> relative;">
>> <div class="product-panel-left-pane" style="overflow: hidden;
>> position: relative;">
>> <img style="width: 106px; height: 120px;" src="http://
>> www.toryburch.com/images/catalog/thumb/TB_TY7013_TORTOISE-BROWN.JPG"
>> class="gwt-Image product-panel-image">
>> <div class="product-panel-getit-button" style="overflow: hidden;
>> position: relative;">
>> <img class="gwt-Image" onload='this.__gwtLastUnhandledEvent="load";'
>> src="http://v.overlay.tv/demo/html5/retail_player/clear.cache.gif";
>> style="background: transparent url(data:image/
>>
>> png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAAYCAYAAABA6FUWAAAGMElEQVR42uVYWUyTWRRW0UghgvrgIK6RSEaNIwwFKlC2ArIvZalUVMQiIMiuKIpOK2W1RYbJZFDRGUbelE7C6BOGyBiUGF/
>> UB40PJjKJUI1iBBWMfnPPrX+FLvAsc5Mv//+fe8/ynXPuvU3nzfu/jKtXryobmppv6M
>> +29h4+UtWbnbO/
>>
>> N0d14JtGdk7OjZLyymsPHjzw4CQbm5uvHTl2HNU1p3BSXQt1bT1D3TcNjbYelVXHcOfOnVROUlvf8Fd
>> +UTGKyyrmFHLzCzE4OJjMSWq0WsP
>>
>> +AwUoYETnErL352JAIFlzSmPI2puDnNz8OYXMrL0YGBgwkayurjGkKZRQ7s6eEaRE65JTMzjk6Tuxc9ceKPfswy4GhXI3l9mCgq0jXXvzGZlZ3Ab5MdnaA3lGJveZyp527TKfgp4lUtIU6BdIHq6qMsQlyblRe0iUpyMxJQ3Hjtfg0h
>> +d+PNyFxqbziBDmYX45FQkMdL5hYdQ39iEZp1+Gs7oWtj
>> +OIiTP6n5O8nqGhrRwPSb2fcZfQtKyiq5D/JFtlR5BdCc1vIkntbWTdNrbP6qV3iohK
>> +3FXNMQjL6+/tNJMsrDhtkO2IRm5hiA3JExSYgbacSd+/
>> exeTEBJ48eYKHDx9ifGwMT58+xT7VAQQEh+Pipd9BY3h4eBqMxhGoNafxz61b/J1kNMbHx/
>> H8+XO8ePECFzouIjQymvsMY092neH9+/fIzlHh/
>>
>> v37GBkZ4aDx9u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Fa2jGTjI6J6Z6p/JR9elKb0B1Hjmh8+vQJN2/
>> ehEwm4wZpr4yOjvJjng4NAUS8ra3NHCy1MN21lBR77ZqXl8cPp/
>>
>> XsHBD03NzcuKy0tHTWdhXsmElGRUVzkpRpWxAUTPtpKSQSCSIiIuDp6WmW0zqaW716tRXWrFmD5cuXm
>> +1RlmnfEll7PmkfU+Wo9QQZvZOM9ro9vamguAxfSUbNSNJS0RIzzdlaN3XtbH6oiwQZvc
>> +mZ0XSYDCRlEVGdgsG5xKmk5TJ5j7J4ODgv2drtW8VV65cMf39oVBkqp2dnd
>> +wXwmj7HOu4A2D0WDo8eMk2W3gwH6CuRM6Ojrci4qK5gQ6OztXEL//
>> AAMACnDLNQXgAAAAAElFTkSuQmCC) no-repeat scroll 0px 0px; width: 57px;
>> height: 24px; -moz-background-clip: -moz-initial; -moz-background-
>> origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"
>> border="0"></div>
>> </div>
>> <div class="product-panel-right-pane" style="overflow: hidden;
>> position: relative;">
>> <div class="product-panel-description" style="overflow: hidden;
>> position: relative;">
>> <div class="gwt-HTML">A metal hinge adds a touch of modern cool to the
>> classic oversized square shape.Large modified square shape
>> frame.Plastic frame with metal temple.Highly ductile corrosion
>> resistant frame.T logo at hinge.For a limited time, TORYBURCH.COM is
>> offering free shipping and free returns on all eyewear purchases. </
>> div></div></div></div></div>
>>
>> --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> You received this message because you are subscribed to
>> http://groups.google.com/group/watir-general
>> To post: [email protected]
>> To unsubscribe: 
>> [email protected]<watir-general%[email protected]>
>>
>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to