I am trying to drag and drop a tile (class="link 1") and am getting error 
"groovy.lang.MissingPropertyException at DragAndDropLinkSpec.groovy".  The 
error is occurring on clickAndHold() command in my spec.  Any ideas?  When 
the tile is dragged, an inline style="" attribute is added to <li 
class="link1"></li> to reflect the drag.

*HTML example:*

<div class="applications">
<ul class="container-fluid ui-sortable" id="1">
<li class="header-title">header title</li>
<li class="link1">
<a href="google.com">
<div class="icon-text">
<i class="google"></i>
</div>
</a>
</li>
<li class="link2"></li>
<li class="link3"></li>
</ul>
<ul class="container-fluid ui-sortable" id="2"></ul>
<ul class="container-fluid ui-sortable" id="3"></ul>
<ul class="container-fluid ui-sortable" id="4"></ul>
<ul class="container-fluid ui-sortable" id="5"></ul>
</div>

*Page class:*

class HomePage extends Page{

    static at = { title == "Workforce_Hub" }

    static content = {
tile {$(".applications ul li", 1 )}
    }

}

*Spec:*

class DragAndDropLinkSpec extends GebReportingSpec{
def "can drag and drop tile"(){
when:
to HomePage
and:
interact {
clickAndHold(tile)
moveByOffset(290, 0)
release()
}
then:
at HomePage

}
}

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/5a6c911f-8c0d-4e6a-86b8-4d19725e162c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to