Using browser profiles in selenium grid2 - firefox

I need to launch a firefox with different browser profiles based on the user requirement using selenium GRID.
How can I achieve this??
My framework is in Selenium-RC , so I couldn't make use of Webdriver DesiredCapabilities.
Does anyone has a solution for it??

Related

what is firefox profileing and how can we change firefox profile using selenium webdriver

I have started to learn automation testing and i have come across this concept and its little difficult to understand. I am new to this concept. So..
what is Firefox profiling and how can we change Firefox profile using selenium web driver
Selenium WebDriver launch firefox with a default profile. If you want to launch firefox with your customized settings you can do so by using Firefox Profile.
For Example, if you want to add any extension to firefox you can simply use.
FirefoxProfile fp = new FirefoxProfile();
//fp.addExtension(extensionToInstall);
WebDriver driver = new FirefoxDriver(fp); // here you can launch your webdriver with your customized firefox profile.
Another way to use firefox profile is given here

Can Selenium WebDriver automate Firefox toolbars?

I am trying to build test automation for toolbars built for Firefox browser.
I am wondering if Selenium WebDriver is the correct tool for the job.
Based on the documentation found on Selenium webpage, it seems that Selenium is built to interact with webpages and doesn't have the capability to interact with browser components (a toolbar for example.).
Please correct me if I am mistaken and if possible provide the name of a tool to automate toolbar testing if such a tool exists.
try this Sikuli .
This can be used with your selenium test cases.
One choice for Windows is White automation framework.
For instance, how to start work with White, take a look at my answer: How to validate a messagebox popup in c#?

How to open browsers in private/incognito mode with selenium?

I'm writing Selenium tests in Ruby to test my website in multiple browsers.
However, the tests won't fire correctly unless the cookies are clear(there are triggers I'm testing that only happen X number of times and is stored in a cookie).
Does anyone know how to have selenium open a browser in its private browsing or incognito mode with Selenium or have another idea on how I might solve the issue?
You can get Chrome to start in incognito by default.
There's a solution for Windows at the bottom of the link below... If you're not using Windows, you can Google how to achieve this for you OS =)
https://productforums.google.com/forum/#!topic/chrome/sYaZkNW8II4

Cannot perform native interaction: Could not load native events component for Selenium-webdriver 2.35.0 and Firefox 23.0.1 combination

For automating one of the tests, I've to perform drag and drop. Hence, I tried to achieve it following way:
driver.action.drag_and_drop(source, target).perform
but it results into an error:
Selenium::WebDriver::Error::InvalidElementStateError: Cannot perform native interaction: Could not load native events component.
I ran this test on following configuration:
Firefox 23.0.1
Selenium WebDriver 2.35.0
I chose above combinations because change log says - with Selenium WebDriver 2.35.0 and Firefox 23, native event components works fine.
Even though I used correct Firefox and Selenium WebDriver versions, it's throwing error.
Looking at stackoverflow, I can see same kind of issue has been asked several times. And answers to these questions are like: either downgrade/upgrade Firefox, Selenium WebDriver versions
Everytime Firefox or Selenium WebDriver version is upgraded, users face these problems. Hence user look at change log and try find right combination of Firefox and WebDriver. (and even though I followed it, I'm facing problem)
My questions are:
Is there easiest way which will help to choose correct Firefox and Selenium WebDriver versions?
Or is there any workaround for mouse interactions using Selenium?
so that we can get rid of Cannot perform native interaction: Could not load native events component.error.
You should also have the option of "manually" executing the JS function which is triggered by the drag and drop, using driver.execute_script("JavaScript code here").

Record and replay of GWT site using imacros is not working

Hope anyone has come across this. I have been using imacros plugin to record/replay web pages on firefox. It works very well except for GWT pages. For a GWT and smart gwt based webpage, imacros simply clicks on the row and does nothing.
Any suggestions or alternatives would be very helpful.
update: also tried dejaclick plugin for firefox which seems to work partially.
Thanks
San
Try using Selenium if you are trying to automate testing. It also comes with a simple record/play firefox plugin.
Selenium Firefox plugin - http://seleniumhq.org/projects/ide/
Selenium 2 Driver by coding sample - http://c.gwt-examples.com/home/testing/selenium-testing

Resources