0

我尝试使用 WebDriver 调整 web 元素的大小。我使用行动。我尝试使用以下方式:

var actions = new Actions(Browser.Instance);
IAction action = actions.DragAndDropToOffset(resizeElement, offsetX, offsetY).Build();
action.Perform();

var actions = new Actions(Browser.Instance);
IAction action = actions.MoveToElement(resizeElement).ClickAndHold().MoveByOffset(offsetX, offsetY).Build();
action.Perform();

但它不起作用。第一种方法适用于在此站点上移动元素,但不适用于调整大小。也许有人可以帮助我吗?

4

0 回答 0