Drag and drop local file in browser with Robot Framework - windows

I have a web application with some place holders for photos. The only possibility to move a picture in a placeholder is to do a drag and drop from the filesystem. That means to open a Windows explorer and do a drag and drop of a photo from there into my Firefox browser.
I have already included the AutoIt-library in my Robot Framework. But I do not find any way, how I could test this drag and drop scenario.
Can anyone help me?

According to my knowledge, It is not possible to drag and drop files from your local. While you are executing script your web driver scope will be up to web page which is displayed to you.
Try something else by using javascript executor. It may be useful for your scenario.

Related

Source application for dock drag and drop osx

After many hours searching for a solution to this I'm still stuck, I would be very grateful for your help.
Here is my situation: I would like to know the source application for the (drag and ) drop of a document/file on my app's dock icon (it accepts anything as specified in the .plist). In fact the final goal is to know the url of the dropped document/file if it's a browser drop. For now, knowing the application name should be enough. I simply cannot manage to get the source for a drop, it cannot reliably be found/deduced from the Drag Clipboard as it seems that some applications do not use this (such as Chrome).
Does anyone have a clue about this?
Thank you,
chocozor.
If you're dropping file icons on your app icon in the doc, have you tried the
application:openfile:
or
application:openfiles:
methods in your app delegate?
NSApplicationDelegate documentation: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSApplicationDelegate_Protocol/Reference/Reference.html

Avoiding drag and drop from embedded Web Browser

I have written a Win32 sample, in this sample I have added web Browser control. It is working fine.
I launch the application with web page having some images. Here I can drag the images on to the desktop.
One of the requirements says that application should not allow drag and drop feature.
Please let me know how to disable this feature.

Finding the origin (URL) of a dragged and dropped image/text on a cocoa application dock tile on 10.6.8

I have just started coding an application in cocoa on OSX 10.6.8. It is well underway mostly thanks to threads I have found here. For the subtle functionality I am about to explain I've looked everywhere and really have given it my best without success. Here is the situation:
There is a browser (chrome for now but the solution should be adaptable to FF and Safari at least)
There is my chrome extension
There is my desktop app
Text/images can be dragged on my desktop app which then organises these items by source.
For a file/text from finder, except a web browser, tagging the file with its file path is the desired behaviour, for a text I simply put clipboard as the source. Now the issue is that files/text dragged from a web browser should have the website they were dragged from as the source. There is an easy fix for files: I have an extension which sets a buffer with the last active url so that all I need to check when a file is dragged is whether it comes from the chrome cache to tag it with the content of the said buffer. My problem is for text. The way text dragging is handled is by using a service which I declared in the .plist, There is a similar unanswered question on SO and a technique that seems as if it could work but it is only available for 10.7 on. I also found a link where someone managed to get the url for itunes songs dragged on his application using http://www.mail-archive.com/cocoa-dev#lists.apple.com/msg17452.html
Is there a solution to see the URL of a dragged image/text that could be handled using only cocoa?
The only other option I see is using the extension to inject javascript code into all webpages for handling the 'dragenter' event and send the content of what is being dragged together with the source URL to the desktop app via a custom protocol. I'm not too keen on script injection and I sense some complication down that path as well.
In any case thank you for your help!
Chocozor.

How to get the dropped link from internet browser to my application?

Alright my application has a window. I want to do something when a link from my Internet Browser (e.g. Mozilla Firefox) is drag&dropped on the window of my application. What should I do? It's been a while that I've been searching, but I couldn't find any answer.
The easiest way will be to use Drag and Drop Component Suite.

Dashcode question - OnClick image to fullscreen?

I have a web app I'm building in Dashcode, currently every thing is working as advertised. I'm using the browser template and was able to modify it a bit, got the xml working to connect images and their description. Now I want to add a simple OnClick event that sends the image to fullscreen but I can't find any documentation for that. I'm pretty sure this is easily done so I'm missing something here? Any help greatly appreciated.
Tom
Taking over the screen is a bit complicated (if your talking about a full screen experience like youtube), but full screen in the browser window is defiantly possible. The simplest method is to have the click event open a link to the image location. This would load the image in full resolution in the browser window. A more elegant approach would be to load the image url into the source of a image dashcode object. and have that objects visibility only appear overs the whole web app when the Oncick event occurs. If you are talking about a built in function in dashcode to achieve a full screen/browser image, your out of luck.

Resources