Hi again :-(

I'm under trouble using dragAndDrop with repeat task.

My code is :

--- cut ---
<group description='Drop all objects to trash'>

        <repeat xpath="//[EMAIL PROTECTED]'container1']//[EMAIL 
PROTECTED]'shortObj']"
counterName="curObj"
            description='Iter to trash all object in container'>
        
            <storeXPath description="Retrieve objId using XPath" 
                xpath="$curObj/@id" property="objId" />
        
            <dragAndDrop description='Move object to trash'
toXPath="//[EMAIL PROTECTED]'dropZone1']" 

fromXPath="//[EMAIL PROTECTED]'container1']//[EMAIL PROTECTED]'shortObj'[EMAIL 
PROTECTED]'#{objId}']" />
        
            <sleep description="Wait for container Ajax reload"
seconds='5' />
        
        </repeat>
        
        <clickLink description='Commit container'
            xpath="//[EMAIL PROTECTED]'container1']/table//td[4]//[EMAIL 
PROTECTED]'valid']/a" />


        <sleep description='wait for Ajax containers loading' seconds='2' />
        <verifyXPath description='check in 1st container'

xpath="string(//[EMAIL PROTECTED]'container1']//[EMAIL 
PROTECTED]'short']/table/tr/td/div)" />
        
</group>        
--- cut ---

Running this test, I verify result for previous step and check about my
XPath using XPath Explorer. I know HTML page contains 3 objects to move
to trash, matching my XPath. Additionaly, WebTest report shows me
#{objId} rightly extracted and stored when storeXPath rans.

First dragAndDrop is working fine, but second don't fail (webTest report
them as successfull, but without HTML result page like for first
dragAndDrop) but no more be done. dragAndDrop for latest 2 objets are no
execute...

Does anybody see where I made a mistake or a workaround about this
issue ?

regards,
dav.
--

Reply via email to