*i get the following error when using fire_event("onclick") *

function(){return function(){var l=this;
function m(a){var c=typeof a;if(c=="object")if(a){if(a instanceof
Array)return"a
rray";else if(a instanceof Object)return c;var
b=Object.prototype.toString.call(
a);if(b=="[object Window]")return"object";if(b=="[object Array]"||typeof
a.lengt
h=="number"&&typeof a.splice!="undefined"&&typeof
a.propertyIsEnumerable!="undef
ined"&&!a.propertyIsEnumerable("splice"))return"array";if(b=="[object
Function]"
||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!
a.pro
pertyIsEnumerable("call"))return"function"}else return"null";else if(c==
"function"&&typeof a.call=="undefined")return"object";return c}function
n(a,c){f
unction b(){}b.prototype=c.prototype;a.i=c.prototype;a.prototype=new
b};function
 o(a){this.stack=Error().stack||"";if(a)this.message=String(a)}n(o,Error);functi
on aa(a){for(var c=1;c<arguments.length;c++){var
b=String(arguments[c]).replace(
/\$/g,"$$$$");a=a.replace(/\%s/,b)}return a}
function p(a,c){var
b=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("
."),f=String(c).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),k=Math.max(d.len
gth,f.length);for(var j=0;b==0&&j<k;j++){var
e=d[j]||"",g=f[j]||"",q=RegExp("(\\
d*)(\\D*)","g"),s=RegExp("(\\d*)(\\D*)","g");do{var
h=q.exec(e)||["","",""],i=s.
exec(g)||["","",""];if(h[0].length==0&&i[0].length==0)break;b=r(h[1].length==0?0
:parseInt(h[1],10),i[1].length==0?0:parseInt(i[1],10))||r(h[2].length==0,i[2].le
ngth==0)||r(h[2],i[2])}while(b==
0)}return b}function r(a,c){if(a<c)return-1;else if(a>c)return 1;return
0};funct
ion
t(a,c){c.unshift(a);o.call(this,aa.apply(null,c));c.shift();this.l=a}n(t,o);
function ba(a,c){if(!a){var
b=Array.prototype.slice.call(arguments,2),d="Asserti
on failed";if(c){d+=": "+c;var f=b}throw new t(""+d,f||[]);}return a};var
u=Arra
y.prototype,ca=u.indexOf?function(a,c,b){ba(a.length!=null);return
u.indexOf.cal
l(a,c,b)}:function(a,c,b){b=b==null?0:b<0?Math.max(0,a.length+b):b;if(typeof
a==
"string"){if(typeof c!="string"||c.length!=1)return-1;return
a.indexOf(c,b)}for(
b=b;b<a.length;b++)if(b in a&&a[b]===c)return b;return-1};var
v,w,x,y;function z
(){return l.navigator?l.navigator.userAgent:null}y=x=w=v=false;var
A;if(A=z()){v
ar
da=l.navigator;v=A.indexOf("Opera")==0;w=!v&&A.indexOf("MSIE")!=-1;x=!v&&A.in
dexOf("WebKit")!=-1;y=!v&&!x&&da.product=="Gecko"}var B=v,C=w,D=y,E=x,F;
a:{var G="",H;if(B&&l.opera){var I=l.opera.version;G=typeof
I=="function"?I():I}
else{if(D)H=/rv\:([^\);]+)(\)|;)/;else if(C)H=/MSIE\s+([^\);]+)(\)|;)/;else
if(E
)H=/WebKit\/(\S+)/;if(H){var J=H.exec(z());G=J?J[1]:""}}if(C){var
K,L=l.document
;K=L?L.documentMode:undefined;if(K>parseFloat(G)){F=String(K);break
a}}F=G}var M
={};var
ea;!C||M["9"]||(M["9"]=p(F,"9")>=0);C&&(M["9"]||(M["9"]=p(F,"9")>=0));fu
nction
N(a,c){this.x=a!==undefined?a:0;this.y=c!==undefined?c:0}N.prototype.toSt
ring=function(){return"("+this.x+", "+this.y+")"};function O(a){return
a?new fa(
P(a)):ea||(ea=new fa)}function P(a){return
a.nodeType==9?a:a.ownerDocument||a.do
cument}function fa(a){this.e=a||l.document||document}function ga(a){a=!E&&
a.e.co
mpatMode=="CSS1Compat"?a.e.documentElement:a.e.body;return new
N(a.scrollLeft,a.
scrollTop)};var Q="StopIteration"in
l?l.StopIteration:Error("StopIteration");fun
ction ha(){}ha.prototype.next=function(){throw Q;};function
R(a,c,b,d,f){this.a=
!!c;a&&S(this,a,d);this.d=f!=undefined?f:this.c||0;if(this.a)this.d*=-1;this.h=!
b}n(R,ha);R.prototype.b=null;R.prototype.c=0;R.prototype.g=false;function
S(a,c,
b,d){if(a.b=c)a.c=typeof b=="number"?b:a.b.nodeType!=1?0:a.a?-1:1;if(typeof
d=="
number")a.d=d}
R.prototype.next=function(){var
a;if(this.g){if(!this.b||this.h&&this.d==0)throw
 Q;a=this.b;var c=this.a?-1:1;if(this.c==c){var
b=this.a?a.lastChild:a.firstChil
d;b?S(this,b):S(this,a,c*-1)}else(b=this.a?a.previousSibling:a.nextSibling)?S(th
is,b):S(this,a.parentNode,c*-1);this.d+=this.c*(this.a?-1:1)}else
this.g=true;a=
this.b;if(!this.b)throw Q;return a};
R.prototype.splice=function(){var
a=this.b,c=this.a?1:-1;if(this.c==c){this.c=c*
-1;this.d+=this.c*(this.a?-1:1)}this.a=!this.a;R.prototype.next.call(this);this.
a=!this.a;c=arguments[0];var b=m(c);c=b=="array"||b=="object"&&typeof
c.length==
"number"?arguments[0]:arguments;for(b=c.length-1;b>=0;b--)a.parentNode&&a.parent
Node.insertBefore(c[b],a.nextSibling);a&&a.parentNode&&a.parentNode.removeChild(
a)};function
T(a,c,b,d){R.call(this,a,c,b,null,d)}n(T,R);T.prototype.next=functi
on(){do T.i.next.call(this);while(this.c==-1);return this.b};function
U(a,c){var
 b;a:{b=P(a);if(b.defaultView&&b.defaultView.getComputedStyle)if(b=b.defaultView
.getComputedStyle(a,null)){b=b[c]||b.getPropertyValue(c);break
a}b=""}return b||
(a.currentStyle?a.currentStyle[c]:null)||a.style[c]}function ia(a){var
c=a.getBo
undingClientRect();if(C){a=a.ownerDocument;c.left-=a.documentElement.clientLeft+
a.body.clientLeft;c.top-=a.documentElement.clientTop+a.body.clientTop}return
c}
function ja(a){if(C)return a.offsetParent;var
c=P(a),b=U(a,"position"),d=b=="fix
ed"||b=="absolute";for(a=a.parentNode;a&&a!=c;a=a.parentNode){b=U(a,"position");
d=d&&b=="static"&&a!=c.documentElement&&a!=c.body;if(!d&&(a.scrollWidth>a.client
Width||a.scrollHeight>a.clientHeight||b=="fixed"||b=="absolute"))return
a}return
 null};String.fromCharCode(160);var
ka=C?1:0,la=["dragstart","dragexit","mouseov
er","mouseout"];
function V(a,c,b){var d=P(a),f=d?d.parentWindow||d.defaultView:window,k=new
N;if
(a.nodeType==1)if(a.getBoundingClientRect){var
j=ia(a);k.x=j.left;k.y=j.top}else
{j=ga(O(a));var
e,g=P(a),q=U(a,"position"),s=D&&g.getBoxObjectFor&&!a.getBoundin
gClientRect&&q=="absolute"&&(e=g.getBoxObjectFor(a))&&(e.screenX<0||e.screenY<0)
,h=new
N(0,0),i;e=g?g.nodeType==9?g:P(g):document;if(i=C)i=O(e).e.compatMode!="C
SS1Compat";i=i?e.body:e.documentElement;if(a!=i)if(a.getBoundingClientRect){e=ia
(a);g=ga(O(g));h.x=e.left+
g.x;h.y=e.top+g.y}else
if(g.getBoxObjectFor&&!s){e=g.getBoxObjectFor(a);g=g.getB
oxObjectFor(i);h.x=e.screenX-g.screenX;h.y=e.screenY-g.screenY}else{e=a;do{h.x+=
e.offsetLeft;h.y+=e.offsetTop;if(e!=a){h.x+=e.clientLeft||0;h.y+=e.clientTop||0}
if(E&&U(e,"position")=="fixed"){h.x+=g.body.scrollLeft;h.y+=g.body.scrollTop;bre
ak}e=e.offsetParent}while(e&&e!=a);if(B||E&&q=="absolute")h.y-=g.body.offsetTop;
for(e=a;(e=ja(e))&&e!=g.body&&e!=i;){h.x-=e.scrollLeft;if(!B||e.tagName!="TR")h.

On Mon, Mar 18, 2013 at 2:27 PM, Alex Shtayer <[email protected]> wrote:

> try element.fire_event("onclick") or element.fire_event("onmousedown") or
> element.send_keys :enter instead element.click
>
> second, it can be absolutely okay that you are not able to click that
> button if it under another container. Why automation should able click if
> you physically can't do that?
>
>
>  --
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to