Automating Cross-Browser Testing Using Selenium RC - cross-browser

I am trying to use Selenium RC to automate cross-browser testing. I need to automate testing IE7, 8 and 9. These browsers aren't installed on my machine. I have a cross-browser testing tool called Multi-Browser Viewer installed on my machine, which has made the said browsers available to me as virtual browsers, located in the folder C:\ProgramData\Multi-Browser Viewer. I would like to know how to use Selenium RC to access these browsers. I mention the deprecated RC, as opposed to the WebDriver, because the vendor of Multi-Browser Viewer recommends using RC with their software.

use the custom browser as following
*custom "Path to executable of browser"

Related

Does Google allow to load its libraries on a headless browsers (PhantomJS)?

Does Google allow to load its libraries on a headless browsers? I am running tests with PhantomJS but they are failing because it Can't find the variable: google, but if I run the tests in Chrome they all pass.
Yes, Google JavaScript libraries run1 on PhantomJS. It's the way they come to PhantomJS that's troubling sometimes. Most web servers disabled support for SSL v3 because of the POODLE vulnerability, but PhantomJS <1.9.8 uses it as a default.
You either need to pass the --ssl-protocol=tlsv1 --ignore-ssl-errors=true commandline flags to PhantomJS when you run it or you can update to a newer version such as 1.9.8 or 2.0.0.
1 That's not exactly true, since PhantomJS 1.x also doesn't implement Function.prototype.bind which many web sites use and which might stop the execution of some JavaScript.

Selenium Standalone + Chrome driver, add capabilities from command line

I want to run some test using selenium standalone server on Google Chrome but i need to pass some ChromeOptions to the chrome driver from command line
Anybody has an idea of how can i do that?
Selenium Core, which is what you are referring to, was released before Chrome existed. Support for Chrome was added later. What you are asking for was never supported, and with Selenium Core deprecated several years back, it will probably never be supported.
One possible workaround is to set the desired options in the Chrome profile.
Another options, although much more painful, is to move up to Selenium WebDriver.

What is the correct version for Box Android sdk

I go http://developers.box.com/onecloud/ to download the Android SDK. I got box-box-android-sdk-5482811 Is this the latest version?
Because when I open up the OneCloudAppToAppSample, even the R. variable is not well defined. And I cannot run the sample code.
Where can I find more help or documentation on using Box with Android SDK?
The SDK is being improved quite frequently, so our advice would be to always use the latest version on the "master" branch. We consider the master branch to be our stable release. In your case, 5482811 should work fine.
Regarding your issues with the sample app, I don't seem to have any problems compiling it off of a fresh download. I can think of one thing you might be running into:
The sample app was configured to point to target "Google APIs:15". It's possible you don't have this installed (through the Android SDK manager). We actually should not have configured this build target, since the project doesn't use the Google APIs, and we'll fix that in our next release.
In the meantime, could you try this (assuming you're using Eclipse):
Right-click on the OneCloudAppToAppSample project and go to Properties.
Go to the Android section on the left, and change the build target to Android 4.0.3 - 15 (not the Google APIs version).
Project -> Clean -> Clean all projects.

Google chrome npapi plug-in load support on Leopard (10.5.8)

Does Google Chrome loads npapi based plug-in on Leopard (10.5.8). My npapi based plug-in is loaded by Google Chrome on Snow Leopard (10.6) and Lion(10.7). But on Leopard (10.5.8) my plug-in is not loaded.
Do I have to make any change to make my plug-in work on Google Chrome on Leopard (10.5.8)?
Yes, plugins were supported in Leopard; we have one we're using there. If it isn't loading I would guess there are some incompatibilities with libraries or APIs that you're using.
Are you building it against the 10.5 SDK and setting the deployment target to 10.5?
What drawing model(s) does your plugin use? If it's only Core Animation, then it won't work in Chrome on 10.5, as support for the Core Animation model (as opposed to the invalidating Core Animation model) is 10.6+ only.
It would help if you could be more specific about what you mean by "loaded". Does the plugin show up in chrome://plugin but not actually get instantiated, or is it not even listed?

Standalone version of Chrome (for development)

I use the stable version of Google Chrome as my default browser on my system. I now need to work on a project requiring the development version of Chrome, yet I do not wish to replace my system install of Chrome.
Does there exist a standalone package of Chome which can be unpacked into a folder and executed entirely from there? Ie, it should not require anything to be installed, it should not touch the profile associated with my installed version of Chrome. I should be able to download different versions of this into different folders, and be sure that they do not conflict with each other..
(Ideally we could package up prototype builds complete with a copy of this version of Chrome. These packages would then be as self contained as a desktop application...)
You could download the Chromium flavour (which is the open source browser that runs Google Chrome). You can download the latest and greatest from:
http://build.chromium.org/buildbot/continuous/LATEST/
If you have specific dates/revision that you want to download, you can pick them from:
http://build.chromium.org/buildbot/continuous/
That will not interfere with the current version of Chrome, instead it will be using Chromium folder structure (chrome replaced with chromium everywhere).
Simply get the portable version, it does what as you need.
As an answer above, you could get Chromium (portable) which also includes chromedriver from chromium snapshots page.
Pick one with the biggest number (scroll down):
https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/
If the link is dead, there is always a solution to build it from source code, it's a benefit of open source application.
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/windows_build_instructions.md#Build-Chromium
Chromium home page:
https://www.chromium.org/
Hope it helps!
I believe Chrome on Windows installs itself into the Application Data (/Users on Win7) folder of a user. While I can't test this at the moment, try creating a new user account, install Chrome, then log into your other account. Then try running both at the same time. Might be a bit hard to find the executable.
Another option would be to run it in a VM. More expensive versions of Win7 have this somewhat built-in (you need to download an XP image from Microsoft, but the VM software is pre-installed, I think) but you can also install VirtualBox + your own ISO. On a decent computer system, you shouldn't get too much of a performance hit.
A really silly way of doing this is installing the multiple concurrent users Remote Desktop hack, Remote Desktopping to your own computer (if that's possible) and running the second Chrome install as a different user.