[wtr-general] Re: Element is not clickable at point

2013-03-18 Thread Alex Shtayer
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.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Re: Element is not clickable at point

2013-03-18 Thread Sohail Mirza
*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)returna
rray;else if(a instanceof Object)return c;var
b=Object.prototype.toString.call(
a);if(b==[object Window])returnobject;if(b==[object Array]||typeof
a.lengt
h==numbertypeof a.splice!=undefinedtypeof
a.propertyIsEnumerable!=undef
ined!a.propertyIsEnumerable(splice))returnarray;if(b==[object
Function]
||typeof a.call!=undefinedtypeof a.propertyIsEnumerable!=undefined!
a.pro
pertyIsEnumerable(call))returnfunction}else returnnull;else if(c==
functiontypeof a.call==undefined)returnobject;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;carguments.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==0jk;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==0i[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(ac)return-1;else if(ac)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:b0?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;ba.length;b++)if(b in aa[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=!vA.indexOf(MSIE)!=-1;x=!vA.in
dexOf(WebKit)!=-1;y=!v!xda.product==Gecko}var B=v,C=w,D=y,E=x,F;
a:{var G=,H;if(Bl.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(KparseFloat(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=StopIterationin
l?l.StopIteration:Error(StopIteration);fun
ction ha(){}ha.prototype.next=function(){throw Q;};function
R(a,c,b,d,f){this.a=
!!c;aS(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.hthis.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==objecttypeof
c.length==
number?arguments[0]:arguments;for(b=c.length-1;b=0;b--)a.parentNodea.parent
Node.insertBefore(c[b],a.nextSibling);aa.parentNodea.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.defaultViewb.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;aa!=c;a=a.parentNode){b=U(a,position);