Laravel - Browser Tests - Drag Drop

The drag method may be used to drag an element matching the given selector to another element:

    
    $browser->drag('.from-selector', '.to-selector');
	

Or, you may drag an element in a single direction:

    
    $browser->dragLeft('.selector', $pixels = 10);
    $browser->dragRight('.selector', $pixels = 10);
    $browser->dragUp('.selector', $pixels = 10);
    $browser->dragDown('.selector', $pixels = 10);
	

Finally, you may drag an element by a given offset:

    
    $browser->dragOffset('.selector', $x = 10, $y = 10);