Tell me more ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I got the developer certificate from Apple and running Selenium 2.23.1 jar. I checked out the base code from Selenium website and when I ran the command " go Safari", I am getting the following error and would like to know how to resolve this error

C:\Selenium>go safari
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Any help is greatly appreciated.

share|improve this question
According to this answer: stackoverflow.com/questions/9303889/… it could be due to using the 32-bit vs 64-bit version. – Sam Woods Dec 6 '12 at 16:59
2  
Can you please mention what efforts you have made to resolve this issue and where else have you looked? This will help people help you. Copying your error message and pasting it on google gave me quite a few links, some of them pointing to stackoverflow: tinyurl.com/abesjlm – Suchit Parikh Dec 6 '12 at 17:02

1 Answer

You don't need to any more. As of 2.30.0 The Safari Driver extension is bundled inside the Selenium jar and automatically installed into Safari when you run tests against it.

It now just works :)

Added more information

To quote https://code.google.com/p/selenium/wiki/SafariDriver

Starting with Selenium 2.30.0, the SafariDriver comes bundled with the Selenium server. If you wish to build the driver from source, head over to the SafariDriverInternals page. For now, grab a copy of the Selenium jar and add it to your classpath. Writing a test for Safari is just as straightforward as using the FirefoxDriver:

share|improve this answer
I am still struggling to get Safari working with version 2.30.0 - do we definitely not need to create the extension for Safari, then? – Tyler Feb 26 at 16:12
1  
Positive, I've added a link to the SafariDriver wiki entry and pulled out the relevant quote. – Ardesco Feb 27 at 9:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.