Sikuli-Selenium script failing while changing system resolution

Asked by Yogesh Baviskar on 2017-11-09

Hello Team,

I have integrate sikuli with selenium and trying to run script at default resolutuion and its working fine.
But if same script run on same machine with different screen resolution then sikuli tool unable to click Geometric element.
 Please provide solution.

getting below error:

<2017-11-09 17:07:56,513> INFO selenium.com.ptc.windchill.enterprise.common.PageSolvent [main] () - Wait for page content to be ready. Ensures all ajax calls are complete before test continues.
<2017-11-09 17:07:58,014> DEBUG org.apache.http.client.protocol.RequestAddCookies [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - CookieSpec selected: best-match
<2017-11-09 17:07:58,014> DEBUG org.apache.http.client.protocol.RequestAuthCache [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Auth cache not set in the context
<2017-11-09 17:07:58,014> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection request: [route: {}->http://localhost:14950][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
<2017-11-09 17:07:58,015> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection leased: [id: 333][route: {}->http://localhost:14950][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
<2017-11-09 17:07:58,015> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Opening connection {}->http://localhost:14950
<2017-11-09 17:07:58,016> DEBUG org.apache.http.impl.conn.HttpClientConnectionOperator [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connecting to localhost/127.0.0.1:14950
<2017-11-09 17:07:58,021> DEBUG org.apache.http.impl.conn.HttpClientConnectionOperator [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection established 127.0.0.1:64853<->127.0.0.1:14950
<2017-11-09 17:07:58,022> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Executing request POST /session/5a99de29921f845490d40d209e022edd/execute HTTP/1.1
<2017-11-09 17:07:58,022> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Target auth state: UNCHALLENGED
<2017-11-09 17:07:58,022> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Proxy auth state: UNCHALLENGED
<2017-11-09 17:07:58,022> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> POST /session/5a99de29921f845490d40d209e022edd/execute HTTP/1.1
<2017-11-09 17:07:58,022> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> Content-Type: application/json; charset=utf-8
<2017-11-09 17:07:58,022> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> Content-Length: 61
<2017-11-09 17:07:58,022> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> Host: localhost:14950
<2017-11-09 17:07:58,022> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> Connection: Keep-Alive
<2017-11-09 17:07:58,022> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5)
<2017-11-09 17:07:58,022> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> Accept-Encoding: gzip,deflate
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "POST /session/5a99de29921f845490d40d209e022edd/execute HTTP/1.1[\r][\n]"
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "Content-Length: 61[\r][\n]"
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "Host: localhost:14950[\r][\n]"
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "Connection: Keep-Alive[\r][\n]"
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]"
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "Accept-Encoding: gzip,deflate[\r][\n]"
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "[\r][\n]"
<2017-11-09 17:07:58,022> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 >> "{"script":"return PTC.automation.page.isReady();;","args":[]}"
<2017-11-09 17:07:58,041> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << "HTTP/1.1 200 OK[\r][\n]"
<2017-11-09 17:07:58,041> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << "Content-Length:72[\r][\n]"
<2017-11-09 17:07:58,041> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << "Content-Type:application/json; charset=utf-8[\r][\n]"
<2017-11-09 17:07:58,041> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << "Connection:close[\r][\n]"
<2017-11-09 17:07:58,041> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << "[\r][\n]"
<2017-11-09 17:07:58,041> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << "{"sessionId":"5a99de29921f845490d40d209e022edd","status":0,"value":true}"
<2017-11-09 17:07:58,042> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << HTTP/1.1 200 OK
<2017-11-09 17:07:58,042> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << Content-Length:72
<2017-11-09 17:07:58,042> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << Content-Type:application/json; charset=utf-8
<2017-11-09 17:07:58,042> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333 << Connection:close
<2017-11-09 17:07:58,042> DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333: Shutdown connection
<2017-11-09 17:07:58,042> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection discarded
<2017-11-09 17:07:58,042> DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-333: Close connection
<2017-11-09 17:07:58,042> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection released: [id: 333][route: {}->http://localhost:14950][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
<2017-11-09 17:07:58,043> INFO selenium.com.ptc.selenium.SolventSelenium [main] () - ELAPSED in waitForConditionInCurrentWindow()= 0.029678646
<2017-11-09 17:07:58,044> DEBUG org.apache.http.client.protocol.RequestAddCookies [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - CookieSpec selected: best-match
<2017-11-09 17:07:58,045> DEBUG org.apache.http.client.protocol.RequestAuthCache [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Auth cache not set in the context
<2017-11-09 17:07:58,045> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection request: [route: {}->http://localhost:14950][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
<2017-11-09 17:07:58,045> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection leased: [id: 334][route: {}->http://localhost:14950][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
<2017-11-09 17:07:58,045> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Opening connection {}->http://localhost:14950
<2017-11-09 17:07:58,045> DEBUG org.apache.http.impl.conn.HttpClientConnectionOperator [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connecting to localhost/127.0.0.1:14950
<2017-11-09 17:07:58,051> DEBUG org.apache.http.impl.conn.HttpClientConnectionOperator [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection established 127.0.0.1:64854<->127.0.0.1:14950
<2017-11-09 17:07:58,051> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Executing request POST /session/5a99de29921f845490d40d209e022edd/execute HTTP/1.1
<2017-11-09 17:07:58,051> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Target auth state: UNCHALLENGED
<2017-11-09 17:07:58,051> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Proxy auth state: UNCHALLENGED
<2017-11-09 17:07:58,051> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> POST /session/5a99de29921f845490d40d209e022edd/execute HTTP/1.1
<2017-11-09 17:07:58,051> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> Content-Type: application/json; charset=utf-8
<2017-11-09 17:07:58,051> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> Content-Length: 6023
<2017-11-09 17:07:58,051> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> Host: localhost:14950
<2017-11-09 17:07:58,051> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> Connection: Keep-Alive
<2017-11-09 17:07:58,051> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5)
<2017-11-09 17:07:58,051> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> Accept-Encoding: gzip,deflate
<2017-11-09 17:07:58,051> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "POST /session/5a99de29921f845490d40d209e022edd/execute HTTP/1.1[\r][\n]"
<2017-11-09 17:07:58,051> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
<2017-11-09 17:07:58,051> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "Content-Length: 6023[\r][\n]"
<2017-11-09 17:07:58,051> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "Host: localhost:14950[\r][\n]"
<2017-11-09 17:07:58,051> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "Connection: Keep-Alive[\r][\n]"
<2017-11-09 17:07:58,051> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]"
<2017-11-09 17:07:58,051> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "Accept-Encoding: gzip,deflate[\r][\n]"
<2017-11-09 17:07:58,051> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "[\r][\n]"
<2017-11-09 17:07:58,052> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 >> "{"script":"return (function() { return (function(){return function(){var d=this;function aa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}function f(a,b){function c(){}c.prototype=b.prototype;a.f=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.c=function(a,c,p){for(var m=Array(arguments.length-2),n=2;n<arguments.length;n++)m[n-2]=arguments[n];return b.prototype[c].apply(a,m)}};var ba=window;var g=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")};\nfunction h(a,b){for(var c=0,e=g(String(a)).split(\".\"),l=g(String(b)).split(\".\"),p=Math.max(e.length,l.length),m=0;0==c&&m<p;m++){var n=e[m]||\"\",ha=l[m]||\"\",ia=RegExp(\"(\\\\d*)(\\\\D*)\",\"g\"),ja=RegExp(\"(\\\\d*)(\\\\D*)\",\"g\");do{var q=ia.exec(n)||[\"\",\"\",\"\"],r=ja.exec(ha)||[\"\",\"\",\"\"];if(0==q[0].length&&0==r[0].length)break;c=k(0==q[1].length?0:parseInt(q[1],10),0==r[1].length?0:parseInt(r[1],10))||k(0==q[2].length,0==r[2].length)||k(q[2],r[2])}while(0==c)}return c}function k(a,b){return a<b?-1:a>b?1:0};function t(a){if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}f(t,Error);t.prototype.name=\"CustomError\";var u;a:{var v=d.navigator;if(v){var w=v.userAgent;if(w){u=w;break a}}u=\"\"}function x(a){return-1!=u.indexOf(a)};function y(){return x(\"Opera\")||x(\"OPR\")}function z(){return(x(\"Chrome\")||x(\"CriOS\"))&&!y()&&!x(\"Edge\")};function A(){return x(\"iPhone\")&&!x(\"iPod\")&&!x(\"iPad\")};var B=y(),C=x(\"Trident\")||x(\"MSIE\"),D=x(\"Edge\"),E=x(\"Gecko\")&&!(-1!=u.toLowerCase().indexOf(\"webkit\")&&!x(\"Edge\"))&&!(x(\"Trident\")||x(\"MSIE\"))&&!x(\"Edge\"),F=-1!=u.toLowerCase().indexOf(\"webkit\")&&!x(\"Edge\");function ca(){var a=u;if(E)return/rv\\:([^\\);]+)(\\)|;)/.exec(a);if(D)return/Edge\\/([\\d\\.]+)/.exec(a);if(C)return/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/.exec(a);if(F)return/WebKit\\/(\\S+)/.exec(a)}function G(){var a=d.document;return a?a.documentMode:void 0}\nvar H=function(){if(B&&d.opera){var a;var b=d.opera.version;try{a=b()}catch(c){a=b}return a}a=\"\";(b=ca())&&(a=b?b[1]:\"\");return C&&(b=G(),null!=b&&b>parseFloat(a))?String(b):a}(),I={},J=d.document,da=J&&C?G()||(\"CSS1Compat\"==J.compatMode?parseInt(H,10):5):void 0;var ea=x(\"Firefox\"),fa=A()||x(\"iPod\"),ga=x(\"iPad\"),K=x(\"Android\")&&!(z()||x(\"Firefox\")||y()||x(\"Silk\")),ka=z(),L=x(\"Safari\")&&!(z()||x(\"Coast\")||y()||x(\"Edge\")||x(\"Silk\")||x(\"Android\"))&&!(A()||x(\"iPad\")||x(\"iPod\"));function M(a){return(a=a.exec(u))?a[1]:\"\"}var la=function(){if(ea)return M(/Firefox\\/([0-9.]+)/);if(C||D||B)return H;if(ka)return M(/Chrome\\/([0-9.]+)/);if(L&&!(A()||x(\"iPad\")||x(\"iPod\")))return M(/Version\\/([0-9.]+)/);if(fa||ga){var a;if(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(u))return a[1]+\".\"+a[2]}else if(K)return(a=M(/Android\\s+([0-9.]+)/))?a:M(/Version\\/([0-9.]+)/);return\"\"}();var ma={},N;function O(a){return na?N(a):K?0<=h(oa,a):0<=h(la,a)}var na=function(){if(!E)return!1;var a=d.Components;if(!a)return!1;try{if(!a.classes)return!1}catch(l){return!1}var b=a.classes,a=a.interfaces,c=b[\"@mozilla.org/xpcom/version-comparator;1\"].getService(a.nsIVersionComparator),e=b[\"@mozilla.org/xre/app-info;1\"].getService(a.nsIXULAppInfo).version;N=function(a){return 0<=c.compare(e,\"\"+a)};return!0}(),P;if(K){var Q=/Android\\s+([0-9\\.]+)/.exec(u);P=Q?Q[1]:\"0\"}else P=\"0\";var oa=P;K&&O(2.3);\nK&&O(4);L&&O(6);function R(a){t.call(this,a)}f(R,t);function S(a,b){return(new RegExp(a)).test(b)}function pa(a,b){return(new RegExp(a,\"i\")).test(b)}function qa(a){a=a.replace(/([.^$+(){}\\[\\]\\\\|])/g,\"\\\\$1\");a=a.replace(/\\?/g,\"(.|[\\r\\n])\");return a=a.replace(/\\*/g,\"(.|[\\r\\n])*\")}var T={exact:function(a,b){return-1!=b.indexOf(a)},glob:function(a,b){return(new RegExp(\"^\"+qa(a)+\"$\")).test(b)},globcontains:function(a,b){return(new RegExp(qa(a))).test(b)},regex:S,regexi:pa,regexpi:pa,regexp:S};\nfunction ra(a){var b=\"glob\",c=/^([a-zA-Z-]+):(.*)/.exec(a);if(c){var e=c[1],c=c[2];T[e.toLowerCase()]&&(b=e.toLowerCase(),a=c)}e=T[b];if(!e)throw new R(\"Cannot find pattern matching strategy: \"+b);\"glob\"==b?(0==a.indexOf(\"glob:\")&&(a=a.substring(5)),e=T.glob):\"exact\"==b&&0==a.indexOf(\"exact:\")&&(a=a.substring(6));a=aa(e,a);a.a=b;return a};var U;if(!(U=!E&&!C)){var V;if(V=C)V=9<=Number(da);U=V}U||E&&(I[\"1.9.1\"]||(I[\"1.9.1\"]=0<=h(H,\"1.9.1\")));C&&(I[\"9\"]||(I[\"9\"]=0<=h(H,\"9\")));function sa(a,b){if(a.style&&(\"hidden\"==a.style.visibility||\"none\"==a.style.display))return\"\";var c;if(3==a.nodeType)return c=a.data,b||(c=c.replace(/\\n|\\r|\\t/g,\" \")),c.replace(/&nbsp/,\" \");if(1==a.nodeType&&\"SCRIPT\"!=a.nodeName){var e=b||\"PRE\"==a.tagName;c=\"\";for(var l=0;l<a.childNodes.length;l++){var p=a.childNodes.item(l);p&&(c+=sa(p,e))}if(\"P\"==a.tagName||\"BR\"==a.tagName||\"HR\"==a.tagName||\"DIV\"==a.tagName)c+=\"\\n\";c=c.replace(/&nbsp/,\" \");ma.b&&O(9)&&(c=c.replace(/&#100;/,\" \"));return c}return\"\"}\n;function ta(a){var b;if(b=ba.document.body){var c=\"\";E&&\"1.8\"<=H||F||C?c=sa(b,!1):b.textContent?c=b.textContent:b.innerText&&(c=b.innerText);c=c.replace(/\\r\\n|\\r/g,\"\\n\");b=c.replace(/\\ +/g,\" \");c=new RegExp(String.fromCharCode(160),\"g\");if(F)for(c=String.fromCharCode(160);-1!=b.indexOf(c);)b=b.replace(c,\" \");else b=b.replace(c,\" \");b=g(b)}else b=\"\";c=ra(a);\"glob\"==c.a&&(0==a.indexOf(\"glob:\")&&(a=a.substring(5)),c=ra(\"globContains:\"+a));return c(b)}var W=[\"_\"],X=d;\nW[0]in X||!X.execScript||X.execScript(\"var \"+W[0]);for(var Y;W.length&&(Y=W.shift());){var Z;if(Z=!W.length)Z=void 0!==ta;Z?X[Y]=ta:X[Y]?X=X[Y]:X=X[Y]={}};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}\n).apply(null, arguments);})(arguments[0]);","args":["Windchill Error"]}"
<2017-11-09 17:07:58,095> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << "HTTP/1.1 200 OK[\r][\n]"
<2017-11-09 17:07:58,096> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << "Content-Length:73[\r][\n]"
<2017-11-09 17:07:58,096> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << "Content-Type:application/json; charset=utf-8[\r][\n]"
<2017-11-09 17:07:58,096> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << "Connection:close[\r][\n]"
<2017-11-09 17:07:58,096> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << "[\r][\n]"
<2017-11-09 17:07:58,096> DEBUG org.apache.http.wire [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << "{"sessionId":"5a99de29921f845490d40d209e022edd","status":0,"value":false}"
<2017-11-09 17:07:58,096> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << HTTP/1.1 200 OK
<2017-11-09 17:07:58,096> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << Content-Length:73
<2017-11-09 17:07:58,096> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << Content-Type:application/json; charset=utf-8
<2017-11-09 17:07:58,096> DEBUG org.apache.http.headers [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334 << Connection:close
<2017-11-09 17:07:58,096> DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334: Shutdown connection
<2017-11-09 17:07:58,096> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection discarded
<2017-11-09 17:07:58,096> DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-334: Close connection
<2017-11-09 17:07:58,096> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding executeScript on session 5a99de29921f845490d40d209e022edd to remote] () - Connection released: [id: 334][route: {}->http://localhost:14950][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
<2017-11-09 17:07:58,098> DEBUG org.apache.http.client.protocol.RequestAddCookies [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - CookieSpec selected: best-match
<2017-11-09 17:07:58,098> DEBUG org.apache.http.client.protocol.RequestAuthCache [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Auth cache not set in the context
<2017-11-09 17:07:58,098> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Connection request: [route: {}->http://localhost:14950][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
<2017-11-09 17:07:58,098> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Connection leased: [id: 335][route: {}->http://localhost:14950][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
<2017-11-09 17:07:58,098> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Opening connection {}->http://localhost:14950
<2017-11-09 17:07:58,099> DEBUG org.apache.http.impl.conn.HttpClientConnectionOperator [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Connecting to localhost/127.0.0.1:14950
<2017-11-09 17:07:58,104> DEBUG org.apache.http.impl.conn.HttpClientConnectionOperator [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Connection established 127.0.0.1:64855<->127.0.0.1:14950
<2017-11-09 17:07:58,104> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Executing request POST /session/5a99de29921f845490d40d209e022edd/element HTTP/1.1
<2017-11-09 17:07:58,104> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Target auth state: UNCHALLENGED
<2017-11-09 17:07:58,104> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Proxy auth state: UNCHALLENGED
<2017-11-09 17:07:58,105> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> POST /session/5a99de29921f845490d40d209e022edd/element HTTP/1.1
<2017-11-09 17:07:58,105> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> Content-Type: application/json; charset=utf-8
<2017-11-09 17:07:58,105> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> Content-Length: 63
<2017-11-09 17:07:58,105> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> Host: localhost:14950
<2017-11-09 17:07:58,105> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> Connection: Keep-Alive
<2017-11-09 17:07:58,105> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5)
<2017-11-09 17:07:58,105> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> Accept-Encoding: gzip,deflate
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "POST /session/5a99de29921f845490d40d209e022edd/element HTTP/1.1[\r][\n]"
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "Content-Length: 63[\r][\n]"
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "Host: localhost:14950[\r][\n]"
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "Connection: Keep-Alive[\r][\n]"
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]"
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "Accept-Encoding: gzip,deflate[\r][\n]"
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "[\r][\n]"
<2017-11-09 17:07:58,105> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 >> "{"using":"xpath","value":"//h1[contains(.,'HTTP Status 500')]"}"
<2017-11-09 17:07:58,122> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << "HTTP/1.1 200 OK[\r][\n]"
<2017-11-09 17:07:58,122> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << "Content-Length:366[\r][\n]"
<2017-11-09 17:07:58,122> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << "Content-Type:application/json; charset=utf-8[\r][\n]"
<2017-11-09 17:07:58,122> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << "Connection:close[\r][\n]"
<2017-11-09 17:07:58,122> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << "[\r][\n]"
<2017-11-09 17:07:58,122> DEBUG org.apache.http.wire [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << "{"sessionId":"5a99de29921f845490d40d209e022edd","status":7,"value":{"message":"no such element: Unable to locate element: {\"method\":\"xpath\",\"selector\":\"//h1[contains(.,'HTTP Status 500')]\"}\n (Session info: chrome=61.0.3163.100)\n (Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 6.1.7601 SP1 x86_64)"}}"
<2017-11-09 17:07:58,122> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << HTTP/1.1 200 OK
<2017-11-09 17:07:58,122> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << Content-Length:366
<2017-11-09 17:07:58,122> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << Content-Type:application/json; charset=utf-8
<2017-11-09 17:07:58,122> DEBUG org.apache.http.headers [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335 << Connection:close
<2017-11-09 17:07:58,122> DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335: Shutdown connection
<2017-11-09 17:07:58,123> DEBUG org.apache.http.impl.execchain.MainClientExec [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Connection discarded
<2017-11-09 17:07:58,123> DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - http-outgoing-335: Close connection
<2017-11-09 17:07:58,123> DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager [Forwarding findElement on session 5a99de29921f845490d40d209e022edd to remote] () - Connection released: [id: 335][route: {}->http://localhost:14950][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
<2017-11-09 17:07:58,124> INFO selenium.com.ptc.selenium.SolventSelenium [main] () - ELAPSED in waitForContent()= 0.11066588 Script=PTC.automation.page.isReady();

Thanks,
Yogesh

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-11-09
Last reply:
2017-11-15
RaiMan (raimund-hocke) said : #1

If this mess of a log contains any valuable information on the problem you are complaining, then please concentrate the output on that.

Different resolution does not matter, as long as the pixel contents of the shot are the same as the image currently being on the screen.

But if together with the different resolution, the rendering of images leads to different pixel contents or even changed pixel width or size, then you need a different image set for this environment.

BTW: This is a well known restriction with SikuliX.

TestMechanic (ndinev) said : #2

Solution: Use different elements for different resolutions

Can you help with this problem?

Provide an answer of your own, or ask Yogesh Baviskar for more information if necessary.

To post a message you must log in.