示例#1
0
 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);";
 }
示例#2
0
 private String getIEPosString() {
   return getStringFromExecuteScript(
       JavaScriptLoader.getJavaScriptStr(UGElement.class, "getIEPosString"));
 }