Selenium for firefox gecko driver - you can create a new remote session on MAC

I get the following error when trying to open url in firebox via selenium on Mac machine.

The Firefox browser launches but does not open the URL. I can run chrome and open the url. The code:

System.setProperty("webdriver.gecko.driver", "/Users/QA/Documents/Selennium_Classes/BrowserExes/geckodriver/");         
WebDriver driver = new FirefoxDriver();
driver.get("http://www.facebook.com");

I get this error below from inside the eclipse console while executing the code above.

2017-03-29 13: 51: 07.977 plugin container [795: 54793] * CFMessagePort: bootstrap_register (): failed 1100 (0x44c) 'Permission denied', port = 0x8f3f, name = 'com.apple.tsm.portname' See / usr / include / servers / bootstrap _defs.h for error codes. 2017-03-29 13: 51: 07.980 plug-in container [795: 54793] *CFMessagePort: bootstrap_register (): crash 1100 (0x44c) 'Permission denied', port = 0x4b1b, name = 'com.apple.CFPasteboardClient' See / usr / include / servers / bootstrap _defs.h for error codes. 2017-03-29 13: 51: 07.980 plug-in container [795: 54793] void __CFPasteboardSetup (): Failed to allocate communication port for com.apple.CFPasteboardClient; this is probably due to the sandbox restrictions. Exception in the stream "main" org.openqa.selenium.SessionNotCreatedException: cannot create a new remote session. desired features = features [{marionette = true, browserName = firefly, Mos: firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@6b9651 f3, version =, platform = ANY, firefox_p rofile = org.openqa.selenium.firefox.FirefoxProfile @ 38bc8ab5}], required features = features [{}] Assembly information: version: '3.2.0', version: '8c03df6b79', time: '2017-02-23 10:51:31 +0000' System information: host: "MacBook-Pro.local", ip: "xxx.xxx.xx, os.name:" Mac OS X ", os.arch: 'x86_64', os.version: '10 .11.6 ', java.version:' 1.8.0_111 'Driver Information: driver.version: FirefoxDriver at org.openqa.selenium.remote.ProtocolHandshake.createSession (ProtocolHandshake.java:91) in org.openqa.selenium.remote.HttpCommandExecutor.execute (HttpComjand14ecec ) in org.openqa.selenium.remote.service.DriverCommandExecutor.execute (DriverCommandExecutor.java:82) in org.openqa.selenium.remote.RemoteWebDriver.execute (RemoteWebDriver.java:604) in org.openqa.selenium RemoteWebDriver.startSession (RemoteWebDriver.java: 244) in org.openqa.selenium.remote.RemoteWebDriver. (RemoteWebDriver.java:131) at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:293) at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:272) at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:267) at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:263) in org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:122) in TestCase.resources.main (resources.java:37)263) at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:122) in TestCase.resources.main (resources.java:37)263) at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:122) in TestCase.resources.main (resources.java:37)

+4

Source: https://habr.com/ru/post/1673478/


All Articles