为了改变元素在页面中的位置,需要拖拽元素到指定位置 记录一下 1、先定位到要拖拽的元素 Actions action = new Actions(driver); WebElement el = driver.findElement(By.xpath("xxxx")); //使用action的dragAndDropBy方法,action.dragAndDropBy(source,xOffset,yOffset),其中x:左
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有