[SeleniumUtil]Release in dragAndDrop doesn't work after i update the version of Selenium to 2.45.0

在我升级Selenium的版本之前,Drag and Drop 都好使, 将Selenium的版本升级到2.45.0之后,图标拖拽可以成功,释放不生效。

试了N多种解决方案都不管用,后来发现下面这种办法可行。

一开始在界面可以看得见的,用来进行拖拽的图标是dragable的,

在开始拖拽之后一个dropable的元素会从不可见变得可见,这个dropable的元素就是在界面可以晃动的那个元素

用代码实现拖拽并放开的操作分解之后是这样的:

1.点击并hold住dragable的元素

2.将鼠标移动到想到移到的那个container元素,dropable的元素变成可见的

3.释放dropable的元素

public void dragAndDropToElementContainner(WebDriver driver, WebElement dragableEl, WebElement dropableEl,  WebElement targetEl){
		Actions action = new Actions(driver);
		action.clickAndHold(dragableEl).build().perform();
		action.moveToElement(targetEl);
		action.release(dropableEl);
		action.build().perform();
	}

[SeleniumUtil]Release in dragAndDrop doesn't work after i update the version of Selenium to 2.45.0

时间: 2024-08-27 00:27:13

[SeleniumUtil]Release in dragAndDrop doesn't work after i update the version of Selenium to 2.45.0的相关文章

Git for Windows v2.11.0 Release Notes

homepage faq contribute bugs questions Git for Windows v2.11.0 Release Notes Latest update: December 1st 2016 Introduction These release notes describe issues specific to the Git for Windows release. The release notes covering the history of the core

Deploying JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 (文档 ID 393931.1)

In This Document Section 1: Overview Section 2: Pre-Upgrade Steps Section 3: Upgrade and Configuration Section 4: Post-installation Steps Section 5: Known Issues Section 6: Appendices This document covers the procedure to upgrade the version of the J

Using Load-Balancers with Oracle E-Business Suite Release 12 (Doc ID 380489.1)

  Using Load-Balancers with Oracle E-Business Suite Release 12 (Doc ID 380489.1) Modified: 12-Jun-2013 Type: WHITE PAPER   Using Load-Balancers with Oracle E-Business Suite Release 12 Last Updated:  May 17, 2013 The most current version of this docum

深入解析alloc/retain/release/dealloc实现

首先通过GNUstep上得源代码来叙述各个函数的实现(GNUstep是Cocoa框架的互换框架,二者的行为和实现方式非常相似) GNUstep源代码中NSObject类的alloc方法: id = obj = [NSObject alloc]; /**********************************/ +(id) alloc{ return [self allocWithZone : NSDefaultMallocZone()]; } +(id) allocWithZone:(N

Cadence PDK Automation System (PAS) Release v03.05.003 Windows/Linux 1CD

Cadence PDK Automation System (PAS) Release v03.05.003 Windows/Linux 1CD        Library Builder PAS的Library Builder能把开发的GTE数据自动生成一套完整的PDK,也就是说Library Builder会运行上面所有的GTE生成器来建立PDK库,它包含了Pcell.CDF&Callback.PV文件.技术文件.器件模型文件和Symbol.生成的PDK库可以直接给用户使用.PV Rule

Object-C学习(九)——alloc\retain\release

alloc用来创建对象,创建完成后,引用计数为1,只能调用一次: retain使引用计数+1,可以调用多次: release使引用计数-1,可以使用多次. 注意:当引用计数为0时,对象会被系统从内存中销毁,销毁之前,会自动调用此对象的dealloc方法. 黄金法则:如果对一个对象使用了alloc,[mutable]copy,retain,那么你必须使用相对应的release或者autorelease释放.

Release Notes - Apache Storm - Version 0.9.2-incub

Release Notes - Apache Storm - Version 0.9.2-incubating Sub-task [STORM-207] - Add storm-starter as a module [STORM-208] - Add storm-kafka as a module [STORM-223] - Safe YAML Parsing [STORM-232] - ship JNI dependencies with the storm jar [STORM-233]

Oracle Database Release Lifetime (文档 ID 742060.1)

Release Roadmap Release 12.2: New releases will be annual and the version will be the last two digits of the release year. The release originally planned as 12.2.0.2 will now be release 18, and the release originally planned as 12.2.0.3 will be relea

Oracle Database Release Update Introduction and FAQ (文档 ID 2285040.1)

Overview Beginning in July 2017, Oracle has transitioned to a more flexible and responsive strategy for the database software release process.  These changes only affect Database and Grid Infrastructure release 12.2 or later.  The primary goals of th