module-webdriver icon indicating copy to clipboard operation
module-webdriver copied to clipboard

Drop doesn't seem to work in drag & drop

Open SzaboGabesz opened this issue 10 years ago • 2 comments

When I use the dragAndDrop method of the WebDriver module the WebDriverButtonReleaseAction does not seem to run. The drag starts (WebDriverClickAndHoldAction), so the object I want to d&d is floating but the drop never happens, thus my test fails. Interestingly the dashed border appears around the drop zone, so the selenium can find it.

Environment:

  • Ubuntu 14.04 (Linux 3.13.0-71-generic amd64)
  • Firefox 42.0
  • PHP 5.6.14-1+deb.sury.org~trusty+1
  • Selenium v2.46.0. (Built from revision 87c69e2)
  • Codeception v2.1.4

SzaboGabesz avatar Dec 10 '15 09:12 SzaboGabesz

I had same problem, you have work around by executing javascript that is inside your "drop" event function directly with $I->executeJS(...) . The only thing is you must extract info from event object and pass it directly to function that is inside drop event...

mmilojevic avatar Feb 10 '16 13:02 mmilojevic

Hi All I'm having the same issue now , please could you give some example please .Thank you.

mariamj1326 avatar Nov 30 '16 14:11 mariamj1326