Drag and drop in silkTest - silktest

I tried to do a functional test that consists of drag and drop but I didn't found a way in silk4j. is there a way to do it or
silk4j doesn't support drag and drop tests?

I am using Silk4J Browser replay and have several tests that do drag and drop.
You basically locate the object (DomElement, DomLink,..) that should be moved, invoke the pressMouse() method on it, find the target object and invoke the mouseMove() and then the releaseMouse() method on it. This should do the drag and drop.
So you just have to manually "simulate" the drag and drop.

Related

electron-react-boilerplate) How to create file download system using drag and drop

I'm creating file converter using electron-react-boilerplate. Although importing files was implemented with drag and drop, did not implement downloading files by drag and drop like when dragging a Google image search result.
https://www.electronjs.org/docs/latest/tutorial/native-file-drag-drop
I tried the above method, but it didn't work in electron-react-boilerplate environment.
Is there a way to get files in a specific path by drag and drop in the app?

Touch users can't drag and drop in React app

I followed the quick start for the dnd kit React library, and it lets me drag and drop just fine with a mouse. However, when I try to use the same page with Chrome on Android, I can't drag the item. It looks like it starts moving and then gets stuck as soon as my finger moves outside its original border.
I tried switching to the drag overlay, but that didn't seem to make any difference.
How can I support touch users with dnd kit?
It wasn't covered in the quick start, but I found the answer in the Draggable section's recommendations:
In general, we recommend you set the touch-action property to none for draggable elements in order to prevent scrolling on mobile devices.
I found that I could either set the CSS style on the draggable element itself, or on a parent element that contains several draggable elements.
However, when I started trying to drag items around within a list or grid of items, that stopped working. Eventually, I had to switch from using the pointer sensor to using the mouse and touch sensors, as described in the sensors section.

Gong drag and drop - Touch

I'm using the Gong - Drag and drop solution, which works like a charm on my Windows 7 Machine, but as soon as I transfer the solution to my Surface tablet, and starts to drag and drop, nothing happens when I use my fingers, but when I use my stylus it works.
How do I easily implement the drag and drop with fingers instead, or am I doing something wrong when dragging and dropping.
I have created a sample project with facilities like:
Drag a node and Drop it in another node
Add a node using Context Menu
Rename a node using Context Menu
Delete a node using Context Menu
You can find sample project here.
I have not tried to solve your problem but you can easily add event handlers for touch and make some changes to that sample to do your work.
You can get complete control over the code as I have not used any external libraries in this project.

How to override default drag&drop cursors when the darg source is outside my application

In Drag&Drop, if I want to customize the cursors, I can subscribe to GiveFeedback on the drag source and set e.UseDefaultCursors = false, and the render the content I want.
But that only work if the drag source is my application. If I want to do the same when dragging files from explorer, for example, I can not subscribe to that event because I only have access to the drop target and not to the drag source.
Is there any other way to disable the built in cursors and copy and link signs so I can render my own in that case?
Hmm... this probably wont help at all (i hope it does somehow) but in visual basic, using a language in the .NET Framework, when creating a form, there is an option for drag and drop to disable it, so whatever compiler your using, there maybe some sort of option in there.
I would look specifically at what you are working with and read up on the drag and dropping, so maybe something to do with a form/GUI.
I hope this has helped in some way, if not, i apologize and gl.

Creating a winforms app that allows drag and dropping of custom 'widgets'

I want to create a winforms application, this application will be similiar to the vs.net winforms designer (in certain aspects).
Basically it is going to be a blank page, where the user can drag and drop a bunch of 'widget's onto the screen. The widgets are basically custom images that I will create, that the user can resize, and it has some text on it by default which the user can double click on it to change the text.
Is this doable in winforms? If yes, what are the key aspects that I have to learn?
This is pretty easy to do in WinForms. Check out basic drag and drop. It's targeted toward 2.0. You'll use the DoDragDrop() method and capture data in drag and drop events. It requires some verbosity, but it gets the job done.
If you're keen on using WPF, take a look at MSDN's topic.

Resources