Why drag and drop is not working in Selenium Webdriver?

后端 未结 12 1808
借酒劲吻你
借酒劲吻你 2021-01-11 11:45

I am trying to drag an element into another element using Selenium WebDriver but it\'s not working. I tried all the solutions which I can find on internet but none of the so

12条回答
  •  猫巷女王i
    2021-01-11 12:00

    In your code 1: Not calling perform() method, it should be

     Actions builder = new Actions( _controls.getDriver());
    
     builder.dragAndDrop(sourceelement, destelement).perform();
    

    In your code 2: I don't think you need to call release()

    Please search for similar questions before posting.

提交回复
热议问题