I use:
selenium server 3.0.1 firefox 46+, пробовал на разных версиях Windows 10 Jython 2.5.4 Code:
self.profileDir = File(self.dict['profileDir']) System.setProperty("webdriver.gecko.driver", Config.DISTR_DIR + '\\geckodriver.exe') self.profile = FirefoxProfile(self.profileDir) self.driver = FirefoxDriver(self.profile) When starting, it gives an error:
1479121081847 geckodriver INFO Listening on 127.0.0.1:13582 self.driver = FirefoxDriver(self.profile) java.lang.OutOfMemoryError: Java heap space The fact is that if you remove the loading profile, and make it simple:
self.driver = FirefoxDriver() then everything seems to be fine, but I need to load the profile. I tried to increase the memory of Java (now -Xms64M -Xmx512M) to -Xmx1200M (for some reason, the java swears), sometimes the browser is still running, but this is extremely rare and not stable. What are the solutions and why this happens because of profile loading?
java -Xmx1024m -Xms256m- Senior Pomidor