private String getPosStringFromFile() throws UiGuardException { return JavaScriptLoader.getJavaScriptStr(UGElement.class, "getPosString") + "function getElementByJsString() { " + "return " + helper().getElementJsString() + "}; " + "var abspos = getPageAbslutePosExceptIE(window, getElementByJsString()); " + "var scrpos = getWinScrolloffset(window); " + "return (abspos.left - scrpos.left) + '###' + (abspos.top - scrpos.top);"; }
private String getIEPosString() { return getStringFromExecuteScript( JavaScriptLoader.getJavaScriptStr(UGElement.class, "getIEPosString")); }