I have a question on Flash Automation. I want to automate my website which is in flash. where i have to login, create users , scroll down and find users.
Can i Automate it using selenium RC if not please suggest some good open source tools.
Thanks
If you don't manage to pull off what you want to do using Selenium RC. Try using Sikuli (found at http://www.sikuli.org/ ). You can use the Sikuli IDE, which works a lot like Selenium IDE, or try using the libs with java per example. They've got some examples on the site where you'll see how to use the image recognition to find certain elements and add/edit the data present there. Hope this helps.
Related
For my functional tests I have Ruby -Cucumber scripts which used selenium webdriver.
For my performance testing instead of manually recording the script for the website navigation, I want to use existing function test automation.
Is there any way to integrate this?
Is there any plug-in or way to integrate them?
Thanks in advance!
Tried before: Have used one jemeyer session, with Blazemeter plugin in this session, started recording, in second Jmeter session opened, in that used simple selenium scripts to execute to open chrome browser, navigation to the website.
But with this approach there was some bizarre error which didn’t go anywhere so looking for altérnate approach.
A company I applied to had sent me a "test", which I had to decline, due to it not making a lot of sense: They asked me to use Selenium to test a Win desktop app GUI and produce bug reports in the table form. They claimed that they're using Selenium to test Win desktop applications in their company, but they wouldn't tell how.
I did some research, and my understanding is that Selenium works with web browsers only, as it's been specifically designed for this. How can it connect to Windows desktop app? I just don't see any way possible for this. I found a claim that some integrate it with another open source tool to do this, but this "test" was supposed to take 1 hour of my time and installing some other framework, configuring, integrating with Selenium, etc, etc definitely wouldn't fall into one hour time frame. I had heard from another company too, that they wanted me to use Selenium to automate non-browser stuff if they hired me... Still have no clue about this--is this even possible? -- or is it something simply wrong?
You can't. Selenium can only automate web browsers, and even then, only certain browsers (Chrome, Firefox, Internet Explorer, Opera, and occasionally Safari). It interacts with them at a very deep level, very specific to the browser in question, in ways that don't apply to other Windows applications.
Selenium is meant for GUI tests of web applications and nothing else. But you can include Sikuli in webdriver code and can test the any of the applications either desktop or web applications, since it uses Image recognition.
else if you want to test the desktop application using Selenium thne u need to import Autoit and can test those as well
I am attempting to test several web pages built in Flex, and need to automate clicking on several videos through the Flash interface. I'm using Ruby and Watir-Webdriver, but I'm not sure how to interact with Flash using them.
Has anyone figured this out? I've tried using Sikuli, but have found it to be a little clunky and not very fast. Any ideas would be greatly appreciated.
I will quote myself:
It is important to say that Watir CAN NOT control browser plugins like
Java applets, Adobe Flash or Microsoft Silverlight.
From https://github.com/zeljkofilipin/watirbook/blob/master/about.md
There is a way though. You can embed javascript into your ruby watir script.
It has worked for me
browser.execute_script <<-JS
Global.videoPlayer.sendEvent("play")
JS
Similarly you can do a pause or stop based on the controller on the player
Enjoy !!
I'm building a Ruby program that uses several other programs, and while most of them are programs I can download and run on this computer, one has to be accessed and run through a web browser.
I actually have two questions: I've found Watir which looks like a good web automation tool, but it's meant for testing. Is it still okay to use Watir for automation in the main program, not for testing? Or is there something better out there to use?
The other question I have is that I can't get Watir to work. I downloaded the firewatir-1.6.5 gem and installed jssh for Firefox 3.6, but when I run
b = Watir::Browser.start("the_web_page_address")
it just opens a new Firefox window to Google, and I'm given the error:
Unable to connect to machine : foo.bar.baz.blah on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option (Watir::Exception::UnableToStartJSShException)
I've run Firefox with -jssh but that doesn't seem to help.
Watir is perfectly suitable for automating browsing tasks. I've personally used it a couple of times for that purpose. However, you might also want to look at other solutions, such as Selenium.
Now, to be honest, I don't have much to say about your second question;
I'm assuming you've set Watir to open firefox by setting
Watir::Browser.default = 'firefox'
If so, things should be running as normal. Did you restart firefox since installing jssh? Did you install Watir and jssh as instructed on the tutorial?
I can suggest running Watir with Internet Explorer, instead of Firefox, but that might be unsuitable for your application. If all else fails, try the other framework I recommended earlier.
You also might want to check out a headless option. Sometimes it's not necessary to install an automation framework like Watir or Selenium when something simple like mechanize would suffice. Really depends on the complexity of what you're trying to automate!
http://mechanize.rubyforge.org/mechanize/EXAMPLES_rdoc.html
I'd like to write a plugin for Firefox with the idea of taking HTML code user is presently onto, process it and send it to external php script.
How would you proceed? What programming languages can I use?
There is a wealth of information available online to help you create Firefox extensions.
Here are some good ones:
Firefox Extension Development Tutorial :: Overview
How To Develop A Firefox Extension
Getting started with extension development