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.
Related
I have 2 simple tests in Selenium IDE, when executed from IDE the order is being maintained. But when I use the Side file to run using Selenium Side runner then order is different.
As you can see the test order here is 1- Amazon Login and then 2- Search Product. This does work fine when executed from IDE but when I use the Selenium Side runner with Selenium grid then Search product is being executed first and then Login. Not sure what's the problem here.
Note: When I open the .side file in text editor then also the order is reversed this is the reason behind the execution. i.e. when saving the project in IDE it's doing something wrong.
I don't have the Run in parallel enabled.
Any help would be appreciated.
The selenium website claims:
It drives the browser much more effectively and over comes the
limitations of Selenium 1.x which affected our functional test
coverage, like the file upload or download, pop-ups and dialogs
barrier
But I know only of more or less strange hacks using AutoIt or AWT KeyEvents.
So, how can I tell Selenium to put a certain path into the file dialog (not the form element that opened the file dialog!) and click on 'OK'?
I have some Selenium IDE scripts for automating tasks (deploying to an internal server via it's web interface), and I want to have bookmarks to launch them.
Don't want go to Tools -> Selenium IDE -> search test -> launch test, just want to click a bookmark and let the script run.
How can I achieve this? Am I missing a point?
Don't know if it makes a difference, but I'm currently using Firefox (if I have to change browser for this, it wouldn't be a problem).
Thanks
Not sure whether you be able to run tests pressing on a bookmark as browser plugins are usually run with a key combo. And bookmark is URL. Well the main issue in your question how to associate bookmark
with browser addon launching.
Well, I've investigated a lil bit workaround. Speaking about getting Selenium HTML Test Suites Running Automatically (i mean an alternative to bookmarks) some solutions are possible:
solution 1:
Patch the Selenium server code to support HTML suites.
Build a script to execute your HTML test suites.
Build a script to read the suites’ output reports and consolidate
the information for inclusion into your CC.NET report.
Setup details you can get here
Solution 2:
Selenium IDE plugin for Firefox to create tests
Java to run Selenium Server
Selenium Server to run test suites
Nant to generate reports for CruiseControl.NET
CruiseControl.Net as a continuous integration engine
Setup details here
Hope this be useful for you.
Bookmarks are nothing else than URLs, which makes it impossible to "bookmark" a functionality of a plugin, such as the Selenium IDE.
However, there might be other plugins out there that do what you want. I haven't had a closer look at it, but one candidate could be the Favorites (Selenium IDE) Firefox Add-on.
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.
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).