ICode9

精准搜索请尝试: 精确搜索
  • testNG中拖拽元素到指定位置2022-08-24 14:03:09

    为了改变元素在页面中的位置,需要拖拽元素到指定位置 记录一下 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版权所有