Robot framework - Selenium Lib - Getting embedded browser from Outlook - outlook

My solution is using a special way to open a web page: we embedded chrome browser into outlook app.
Now I have to write automation test for it using robotframework.
I tried but selenium cannot detect that browser.
Any ideas are appreciated.
Thanks!

Because Selenium uses the Webdriver to start the browser, automating a browser that is not started using webdriver won't be supported.
Alternatives are to use AutoIT library, that automates your keyboard and mouse actions and focuses on windows. ImageHorizon Library and Sikuli Library use image pattern recognition and support both Windows and Linux.
If your target OS is Windows 10, then Microsoft WinAppDriver maybe of interest. This follows a similar approach as AutoIT, but from Microsoft. Does require the Python Appium application to be installed as well.
All approaches have the pro's and con's and in my view beyond the scope of this question.

Related

Java FX automation using UFT

Please suggest if there is any way to automate the testing of Javafx application using UFT 12.02 as UFT is unable to identify the objects in JavaFx application.
Thanks in advance.
After a quick Google search, you would find out that UFT has no direct support for JavaFX applications.
This link talks about it:
https://community.hpe.com/t5/Unified-Functional-Testing/QTP-not-recognizing-JavaFX-controls/td-p/5793877
A brief summary on the answers:
QTP does not have any separate add-in specifically for those controls,
QTP has only the standard Java add-in that would work if the mentioned
controls are Java standard controls and if they belongs to the
standard Java Swing classes or Java AWT clases, only standard no any
kind of customized nor third party control. Otherwise, the recognition
will be basic because QTP will not support the controls.
You can find more information about the technologies that support the
Java add-in in the next link at page 4:
HP QuickTest Professional 11.00 Product Availability Matrix
  http://support.openview.hp.com/selfsolve/document/KM1210389
Actually we have an Enhancement Request to evaluate the prosiblitiy to
bring support to JavaFX objects:
Support for JavaFX 2.0.2.
https://support.openview.hp.com/selfsolve/document/FID/DOCUMENTUM_QCCR1J26625
For the moment as a workaround we recomend work with these kind of
controls as third-party controls.
How to work with unsupported or third-party controls
http://support.openview.hp.com/selfsolve/document/KM186906
I don't have further knowledge about it as I've never worked with JavaFX before, but I belive here you will find enough content to help you out
Please check out UFT 14.01, it is supported natively now.
UFT now supports testing applications built with JavaFX, natively using the Java Add-in.
Prior to 14.01, JavaFX was supported by Microsoft UI Automation for
purely JavaFX widgets.
You can find the documentation here: https://admhelp.microfocus.com/uft/en/latest/UFT_Help/Content/Landing_Pages/Whats_New_Landing_Page.htm#hp-minitoc-item-2

"Bundle" selenium application with browser?

Basically I'm going to distribute my Selenium program to a number of clients for automation purposes.
Rather than asking every customer to have FireFox installed (and risking possibly incompatible versions) I would prefer if I could have FireFox (or whatever browser) packaged in my program directory (perhaps a portable version).
All my customers will be using Windows btw.
Anyone tried this or have any suggestions to how this could be accomplished?
EDIT: I suppose I could use PhantomJS with selenium and just package my software with the phantomjs driver. That would not require any external browsers to work, would it?
You have also HTMLUnit headless browser option. Please note that it has own proprietary JavaScript rendering engine so need ensure that your test also will work with the "regular" browsers.
Another option is to use Selenoid and Docker for Windows. Your customers could download easily removable images with browsers (no need to clutter Windows with browser files) and run your test suite in multiple containers in parallel.

FirefoxOS and Gecko SDK on Windows

I am trying to get my hands dirty of firefox OS apps. I tried to follow instructions on https://developer.mozilla.org/en/docs/Gecko_SDK
to get the SDK. I downloaded Gecko 22.0 (Firefox 22.0) zip file for windows.
Could anyone please tell me how to build it on windows system. The details given on the website are not as clear as I expected(I had expected them to be like that on android's site). Or is there a binary available for the SDK?
No SDK needed, it is all HTML5. If people talk about SDKs in that context, its often frameworks or maybe tools that can export to HTML5. But generally, you can use all the languages that work in a browser and use them without any framework or SDK to make an app.
The developer docs on Marketplace have this great intro on app development and testing: https://marketplace.firefox.com/developers/docs/quick_start
Happy Hacking!
The "SDK" you are looking for is probably the Firefox OS Simulator Addon for the Mozilla Firefox browser. Actually, all you need to test your applications for most hosted ones is a browser of some sort, but the Simulator (also called as R2D2B2G) lets you preview most of the phones' functionality, API-s and install packaged apps.
Besides installing and testing your applications you will also get a feel of Gaia - the user interface of Firefox OS, written, too, in HTML5.
Like many of the answers here, there's no real SDK, as Firefox OS apps are basically HTML5 web pages with a manifest.webapp The firefox OS Simulator mentioned by Flaki is great to test your app.
I recommend watching this short video from Robert Nyman, one of Mozilla's FFos evangelists on getting started with it: http://www.youtube.com/watch?v=hqyrldlSx_o
And this is a good tutorial on developing an app: https://hacks.mozilla.org/2013/06/building-a-todo-app-for-firefox-os-part-1/

Are there any good scriptable webpage rendering engines besides Selenium RC?

I like using Selenium RC for automating interaction with webpages that require JavaScript, except for the fact that it goes through launching an full instance of Firefox to run a script. Questions:
Is there a way to run Selenium RC so that it launches a headless version of Firefox that doesn't create a window? I'm using OS X. I know there is a way to do this using Xvfb on a Linux server, but I'm wondering how this would be done on OS X.
Is there any lighter weight alternative to Selenium RC? The tool would have to execute any JavaScript on a webpage and alter the DOM accordingly. I'm not too familiar with Spidermonkey; but can it be used for this purpose? Thanks.
There's a well supported Java one called HtmlUnit, which is completely headless - there is no GUI. It runs Javascript.
If you don't want to directly call Java, you can in theory run Selenium with HtmlUnit as its backend headlessly - I haven't got it to work yet though.
Also, you might find Selenium 2 better than Selenium RC. It has the WebDriver built in, and looks like it is going to be better and more complete.
Finally, you could run Selenium remotely on your own separate Linux server, and call it from the Mac remotely. Or you can use a service like Sauce Labs.

Free tool for automating GUI testing of a Windows Forms application and a Web application

Is there a way to automate GUI testing of a Windows Forms application and a web application (HTML) using free tools?
For example, Ruby + Rspec + Watir work great for web UI testing.
IronRuby + Rspec can work for winforms apps.
Does anybody know a tool that can do both, WinForms and Web?
I've used Autoit for GUI testing of such applications.
The donwloadable bundle includes a record-and-play tool, but it's more advisable to use button names/ids rather than recorded (X,Y) coordinates in order to minimize dependency on changes and screen resolution.

Resources