Dear Michael,

>>so moveEnd and probably also moveStart are unknow-functions for HtmlUnit, 
>>right?

Right, open a bug report in HtmlUnit so we are notified when they are 
implemented.

Yours,
Ahmed

________________________________
From: Michael Habbert <[email protected]>
To: [email protected]
Sent: Thursday, January 8, 2009 1:41:01 PM
Subject: Re: [Webtest] Problem with the actual build

Hi Marc,

Report about the JS-Code Errors:

first:
------------------------------
JavaScript error loading page 
https://webgate-dev/ags/ofbiz/projection/control/EditSalesActionsServiceQuantAssessed?_SEARCH_PERFORMED_=true&filterProjectionDatasetId=60862&selectedProjectionUnitId=128367:
 TypeError: Cannot find function moveEnd in object [object]. 
(WebTestParallelInit.groovy#57)
--------------------

so moveEnd and probably also moveStart are unknow-functions for HtmlUnit, right?

--------------------
if (elem.createTextRange) {
      var r = document.selection.createRange().duplicate()
      r.moveEnd('character', elem.value.length)
      if (r.text == ''){
          pStart = elem.value.length;
      }
      else{
          pStart = elem.value.lastIndexOf(r.text)
      }
  }   else pStart = elem.selectionStart;
       if (elem.createTextRange) {
      var r = document.selection.createRange().duplicate()
       r.moveStart('character', -elem.value.length)
       pEnd = r.text.length
   } else pEnd = elem.selectionEnd;
---------------



      

Reply via email to