This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 15th, 2013  |  syntax: None  |  size: 8.52 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. FirefoxProfile profile = new FirefoxProfile();
  2. // customize your profile here...
  3.  
  4. DesiredCapabilities caps = DesiredCapabilities.Firefox();
  5. caps.SetCapability("firefox_profile", profile.ToBase64String());
  6.  
  7. IWebDriver driver = new RemoteWebDriver(caps);
  8.        
  9. public void setup()
  10.     final FirefoxProfile fp = new FirefoxProfile(new File("C:\temp\Firefox Profile"));        
  11.     final DesiredCapabilities capability = DesiredCapabilities.firefox();
  12.     capability.setCapability(FirefoxDriver.PROFILE, fp);
  13.     driver = new RemoteWebDriver(new URL("http://127.0.0.1:5556/wd/hub"), capability);
  14. }
  15.        
  16. org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
  17. System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_19'
  18. Driver info: driver.version: RemoteWebDriver
  19.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:194)
  20.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:141)
  21.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:174)
  22.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:141)
  23.     at org.openqa.selenium.remote.BeanToJsonConverter.convert(BeanToJsonConverter.java:61)
  24.     at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:247)
  25.     at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:389)
  26.     at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:103)
  27.     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86)
  28.     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
  29.     at samples.prototypeTest.setup(prototypeTest.java:67)
  30.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  31.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  32.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  33.     at java.lang.reflect.Method.invoke(Method.java:597)
  34.     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
  35.     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  36.     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
  37.     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
  38.     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
  39.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
  40.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  41.     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
  42.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
  43.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
  44.     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
  45.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
  46.     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
  47.     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
  48.     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  49.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  50.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  51.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  52.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  53. Caused by: java.lang.reflect.InvocationTargetException
  54.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  55.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  56.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  57.     at java.lang.reflect.Method.invoke(Method.java:597)
  58.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:188)
  59.     ... 33 more
  60. Caused by: java.lang.OutOfMemoryError: Java heap space
  61.     at java.util.Arrays.copyOf(Arrays.java:2882)
  62.     at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
  63.     at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
  64.     at java.lang.StringBuffer.append(StringBuffer.java:320)
  65.     at org.openqa.selenium.internal.Base64Encoder.encode(Base64Encoder.java:67)
  66.     at org.openqa.selenium.io.Zip.zip(Zip.java:42)
  67.     at org.openqa.selenium.firefox.FirefoxProfile.toJson(FirefoxProfile.java:477)
  68.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  69.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  70.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  71.     at java.lang.reflect.Method.invoke(Method.java:597)
  72.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:188)
  73.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:141)
  74.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:174)
  75.     at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:141)
  76.     at org.openqa.selenium.remote.BeanToJsonConverter.convert(BeanToJsonConverter.java:61)
  77.     at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:247)
  78.     at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:389)
  79.     at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:103)
  80.     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86)
  81.     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
  82.     at samples.prototypeTest.setup(prototypeTest.java:67)
  83.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  84.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  85.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  86.     at java.lang.reflect.Method.invoke(Method.java:597)
  87.     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
  88.     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  89.     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
  90.     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
  91.     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
  92.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
  93.  
  94. java.lang.NullPointerException
  95.     at samples.prototypeTest.tearDown(prototypeTest.java:77)
  96.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  97.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  98.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  99.     at java.lang.reflect.Method.invoke(Method.java:597)
  100.     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
  101.     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  102.     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
  103.     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
  104.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
  105.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  106.     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
  107.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
  108.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
  109.     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
  110.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
  111.     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
  112.     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
  113.     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  114.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  115.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  116.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  117.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
clone this paste RAW Paste Data