The animation for moving elements is not presenting itself

My current package versions are as follows: NUnit(3.13.3) Microsoft.test.Sdk(17.5.0) NunitTestAdapter(4.4.2) Selenium.Webdriver(4.16.2)

In addition, here is the code snippet I am working with:

public void ActionWithElement()
{
    var dragMe = _driver.FindElement(By.Id("draggable"));
    var droppableBox = _driver.FindElement(By.Id("droppable"));

    _builder.ClickAndHold(dragMe).MoveToElement(droppableBox);
}

Although my test passed successfully, upon reviewing the animation it appears that the boxes did not move at all. They ended up in the same position as they were initially. Could this issue be related to the latest package versions I am using?

Answer №1

The issue doesn't lie within the code itself, rather it stems from the compatibility of the Selenium WebDriver library version being used. Consider downgrading to a different version or exploring alternative methods for executing drag and drop operations.

public void DragAndDropElement()
{
    var draggableElement = _driver.FindElement(By.Id("draggable"));
    var droppableElement = _driver.FindElement(By.Id("droppable"));

    _builder.DragAndDrop(draggableElement, droppableElement).Perform();
}

This approach may resolve the issue, however, there is no guarantee of success.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Tips for displaying a populated ViewBag string from a try/catch block on the screen

I'm currently working on parsing a JSON file in my controller and implementing try/catch functionality for any errors that may arise. When an error occurs during the JSON parsing process, I populate ViewBag with the error message and attempt to displa ...

Saving a targeted image with C# Selenium Webdriver no matter its whereabouts

There are many examples of how to save an image by taking a screenshot, but this method has a major flaw. The issue is that the screenshot only captures what is visible on the page at that moment. So, if there is an image at the bottom of the page and you ...

Exploring Angular Applications with Search Engine Crawlers on ASP.NET

I am currently using AngularJS for my website's front end, and ASP.NET for the back end. I am in need of a headless browser that can easily render content on the server side for web crawlers. I have been looking into Awesomium.NET and WebKit.NET, bu ...

Is there a way for me to retrieve all the choices from the select dropdown menu?

I need to retrieve all the available options from a dropdown menu HTML Code: <select class="custom-select ng-pristine ng-untouched ng-valid ng-not-empty" ng-model="Air.Class" aria-invalid="false"> <option value="0">All</option> ...

The dropdown menu in Selenium is experiencing issues with option selection

I am currently working on scraping data from a specific website which can be found at the following link: My task involves navigating to the terminal code column and selecting 'General Cargo' Below is the HTML code snippet: <select name="te ...

Using Python and Selenium to trigger a 2FA email on the Palo Alto website

I'm currently working on a script to download a file from the Palo Alto Networks website. Everything is going smoothly so far - I've managed to input the username and password successfully. However, I'm encountering an issue when it comes to ...

Automating the WebDriver script in JMeter with advanced tools

Are there any tools available that can assist in creating automation scripts for WebDriver within JMeter? ...

Tips for clearing Nightwatch session storage efficiently

To ensure the pop-up functionality was working properly, I had to reset the browser's session storage. By doing this, the pop-up will reappear. Is there a way to clear the page's Session Storage in Nightwatch? ...

Error loading Newtonsoft.Json version 8.0.2 assembly file

I am currently facing an issue while trying to parse a JSON file in a Class Library within a Web API solution. This is a standard C# Class Library, not the Portable type. Despite attempting all possible solutions mentioned here, I still cannot resolve the ...

Utilize the same web browser across numerous test scenarios in Katalon Studio

I've been on a quest to discover if there's a way to use the same browser for multiple test cases. The website I'm testing requires each login when the browser is opened. Is there a feature that would enable me to maintain the same browser ...

Changing a List object into a JSON string in C#

Struggling to convert a List object to a Json string has been a major challenge in my ASP.net MVC project. Model: public class PagerBase<T>:List<T> where T:EntityBase { public int totalpage {get;set;} public int pageindex {get;set;} ...

The Selector object cannot be serialized into JSON format

Currently, I'm facing the challenge of scraping a dynamic website which requires the use of Selenium. The specific links that I'm interested in scraping only become visible when clicked on. These links are generated by jQuery, and there is no hr ...

Discovering the ASP.NET Core HTTP response header in an Angular application using an HTTP interceptor

I attempted to create a straightforward app version check system by sending the current server version to the client in the HTTP header. If there's a newer version available, it should trigger a notification for the user to reload the application. Ini ...

Switching from MSTest to NUnit: Exploring NUnit's alternatives for CurrentTestOutcome and UnitTestOutcome

I need assistance converting the code below from MSTest V2 to NUnit 3. Can someone help me identify the alternatives for CurrentTestOutcome and UnitTestOutcome in NUnit? var status = MyTestContext.CurrentTestOutcome; switch (status) { case UnitTestOu ...

What is the best way to interact with the github avatar while forking with Selenium Webdriver?

I'm currently utilizing Selenium to navigate through the process of forking and cloning a repository. However, I'm encountering an issue where I am unable to click on the avatar to access my forked repository (refer to the image link provided). ...

Can you explain the BDD feature file structure for transferring to TestRail?

Having trouble importing BDD feature files from my Automation Framework into TestRail. Even after using the 'Import .feature files into TestRail' feature, the file imports without any testcases and I'm unable to manually add them. Trying to ...

Struggling with Windows Azure Mobile Services and data serialization issues

I'm facing a challenge trying to integrate my model type with Windows Azure Mobile Services. It's functioning well, except for when I introduce the following member: [DataMemberJsonConverter(ConverterType = typeof(DictionaryJsonConverter))] ...

Automate the process of logging into Tenable.io by utilizing Selenium with Python

Greetings! I am fairly new to the world of programming and have been encountering an issue while trying to automate credential input on using Selenium with Python. Despite my attempts at research, I have not been able to find a solution thus far. Please f ...

Issue encountered when running Python scripts using Selenium

I have set up python, pip, and selenium on my computer and I am currently running a sample code on some basic websites. Code: from selenium import webdriver import time driver = webdriver.Chrome("C:\\Users\\skandregula\\Py ...

I am having trouble finding the tabFrame frame shown in the screenshot below

https://i.stack.imgur.com/wCJhN.png I'm having trouble finding the frame labeled tabFrame in the screenshot provided. I did manage to locate outlookFrame successfully. This is the code I used: driver.switch_to.frame('outlookFrame') However ...