Selenium with SWFUpload - testing

I tried to use Selenium for the automation testing script. The testing web page used SWFUpload for uploading. I don't see any api in Selenium to resolve the upload.
Here is the page: http://demo.swfupload.org/v220/multiinstancedemo/index.php
I found flash-selenium but it is not useful.
http://code.google.com/p/flash-selenium/
Thanks,
Jame

One way of uploading documents is by using autoscripts.
However, autoit scripts are only supported on a windows machine.
You need to do following:
Click on browse button.
Run the .exe autoit file.(exe file can be converted from autoit scripts).

Related

Selenium IDE Load Text From File

I have installed Selenium IDE for Chrome as well as Selenium Side Runner, NodeJS, and ChromeDriver. I am able to successfully create a .side project and run it against a website. However, I have not been able to figure out how to read text from a txt file (just a single numeral in this case) and insert it into a form field on a site. I have previous experience with iMacros, so I attempted to use some of that knowledge to get Selenium to read the file but with no luck. If I edit the .side file in Notepad++, it is mostly just css with embedded commands, so I am really not sure of next steps. Any assistance would be appreciated.

How to automate command prompt(putty) action via selenium

My application requires to enter commands on command prompt(Putty) and then I need to verify that from web browser.
I have used selenium for web functionalities but How can i achieve this with selenium?
which extensions /library files i would require?
Use Auto It (https://www.autoitscript.com/site/autoit/AutoIT) to automate the interaction with putty and run the script in Java using Execute command(or find the command specific to your programming language).

How to install Selenium IDE?

When I follow any tutorial video's and click the download link on Selenium it downloads Selenium as a jar file I'm not sure what to do with. In all the video's I see it downloads the file as an add-on to Firefox which is different to me. I have downloaded a separate add on for Firefox but it doesn't seem to work.
Any help or a pointer to a good tutorial would be great! thanks in advance. Sorry for the question I'm sure it's very basic I just can't figure it out.
Access this url.
Click on Add to firefox
Restart firefox
Simple steps:
Open Firefox -> Search Selenium IDE on Google
Go to this URL: https://addons.mozilla.org/en-us/firefox/addon/selenium-expert-selenium-ide/
Click on Add to firefox
After installation see message
Restart the Browser
GO to Tools-->Selenium IDE

Selenium ChromeDriver SendKeys breaks jQuery File Upload Plugin

I'm creating a UI test for a page with async file upload experience using Selenium ChromeDriver. File upload is implemented using jQuery File Upload Plugin (https://github.com/blueimp/jQuery-File-Upload) which enhances an input type="file" with additional functionality like async upload, multiple files upload, drag-n-drop support etc.
As you know, the recommended way to deal with standard input type="file" in Selenium tests is something like
driver.FindElement(By.Id("fileinput")).SendKeys(#"c:\test.txt");
However, it does not work with this plugin. The server-side (in my case it is an MVC controller's POST action) does not get any calls from the client and when I open Chrome DevTools Console I can see the actual error Failed to load resource: net::ERR_FILE_NOT_FOUND (basically it complains about the unreachable server URI).
At the same time manually it works perfectly fine (when I navigate to the page, click Upload, choose file in Open file dialog and press Open). So it seems the problem can be in between Selenium and the upload plugin itself.
Has anyone else faced with the similar issues using jQuery File Upload Plugin + Selenium ChromeDriver? I'm running ChromeDriver version 2.9 and jQuery File Upload version 5.40.0.

Using selenium grid to execute remote code

We looking to use Selenium grid to parallelize our tests but some of our tests need to run java code local to the testing machine. In other words as well as automating the browser we also need to run some java code on the test machine. Are there hooks in Selenium Grid that will allow us to do this?
PS we are also looking at Jenkins to setup our environment.
EDIT: To be clearer, the java code I need to execute does a get from the web application, downloading pdf files that we cannot do with selenium alone. It then does some processing on those PDF files. I suppose the processing could be done on the server hub but the downloading can't. Unless someone can explain how to download a pdf using selenium and save it to a given location?
Selenium cannot execute your java code in the remote control machine. It will get executed only in the hub machine. However, taking screenshot, deal with popup, uploading the files in a specific path can be taken care by Grid.