胡萝卜J

导航

 

2022年8月24日

摘要: 1、使用js滑动页面到指定的元素位置 JavascriptExecutor js =(JavascriptExecutor)driver; WebElement A = driver.findElement(By.xpath("xxxxx")); js.executeScript("argument 阅读全文
posted @ 2022-08-24 15:59 胡萝卜J 阅读(460) 评论(0) 推荐(0) 编辑
 
摘要: 为了改变元素在页面中的位置,需要拖拽元素到指定位置 记录一下 1、先定位到要拖拽的元素 Actions action = new Actions(driver); WebElement el = driver.findElement(By.xpath("xxxx")); //使用action的dra 阅读全文
posted @ 2022-08-24 13:47 胡萝卜J 阅读(28) 评论(0) 推荐(0) 编辑