public void move_to(Element other_element) {
takeScreenshot();
action("Moving element '" + this + "' to element '" + other_element + "'");
Actions drag = new Actions(browser.driver());
try {
drag.dragAndDrop(_nativeWebElement(), other_element._nativeWebElement());
action("Moved element '" + this + "' to element '" + other_element + "'");
} catch (org.openqa.selenium.interactions.MoveTargetOutOfBoundsException mtoobe) {
error("Cannot move element '" + this + "' to element '" + other_element + "', got org.openqa.selenium.interactions.MoveTargetOutOfBoundsException");
}
takeScreenshot();