Re: [geb-user] Drag and drop

59 views
Skip to first unread message
Message has been deleted

Marcin Erdmann

unread,
Dec 17, 2016, 11:47:59 AM12/17/16
to Geb User Mailing List
What is the full stacktrace of the error you are getting?

On Thu, Dec 15, 2016 at 8:36 PM, Adam Sherman <asher...@gmail.com> wrote:
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 geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
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 all
Reply to author
Forward
0 new messages