Standalone 2.9.0 running on an XP box. Which means the Selenium code is
executed on Solaris. All day long I can get IE running across the network
(Selenium Server Standalone in between) or Firefox running from Windows to
Windows (with Selenium Server Standalone in between) but Firefox from Unix
to Windows is killing me.
I've seen this<https://groups.google.com/forum/#%21topic/selenium-users/mWSHr9nWDck>and I've seen
this<http://stackoverflow.com/questions/5485709/selenium-server-not-starting-for-for-custom-firefox-profile>but I still can't get it to work. I've seen variations on how to create a
FirefoxProfile instance... FirefoxProfile fp = new
ProfilesIni().getProfile("profileName") or even just FirefoxProfile = new
FirefoxProfile(). I've seen DesiredCapabilities instances created a couple
different ways as well... DesiredCapabilities dc = new
DesiredCapabilities() to DesiredCapabilities dc =
DesiredCapabilities.firefox(). It gets a little confusing as to which was
Bottom line is every way that I try to create a FirefoxProfile instance
seems to leave me with a null reference (only when run from Solaris to
browsers located on Windows.) Recently I saw the second link above where
you can direct Selenium Server Standalone to which profile it uses
seemingly taking that out of the test code. So I was hoping that new
FirefoxProfile() without mentioning profile directory in the constructor
would suffice. Still not working for me.
Please help me tweak my code to get Unix to Windows running. Here is what
I have so far (forgive any mistypes, I don't have copy/paste capabilities
directly from my code)...
DesiredCapabilities dc = DesiredCapabilities.firefox();
FirefoxProfile fp = newProfilesIni().getProfile("SeleniumProfile");
//FirefoxProfile fp = new FirefoxProfile();
//FirefoxProfile fp = new FirefoxProfile("C:\custprofiles");
fp.setEnableNativeEvents(true); //See first link I gave above for where I
errors reading in JS files or something
WebDriver wd = new RemoteWebDriver(new URL("http://blah:4444/wd/hub", dc));
Also, start up of Selenium Server went from
java -jar selenium-sever-standalone-2.9.0.jar
java -jar selenium-sever-standalone-2.9.0.jar -firefoxProfileTemplate
after reading the link I gave above.
Again, can't copy/paste from private network to here but the error is I
can't get a FirefoxProfile instance created.
Any help will surely be appreciated. TIA
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/yQ1TPwgHjqEJ.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.