selenium: Unrecognized platform: mac-unknown-64bit
I am getting the "org.openqa.selenium.WebDriverException: Unrecognized platform: mac-unknown-64bit"
Same exception is occurring for the linux.
while running my test with phantomJs . Below are the configurations i am using Dependencies
compile group: 'org.jboss.arquillian.extension', name: 'arquillian-phantom-driver', version: '1.2.1.1'
compile group: 'org.seleniumhq.selenium', name: 'selenium-server', version: '3.4.0'
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.4.0'
To Open browser:
try { String[] cli_args = new String[]{"--ignore-ssl-errors=true", "--debug=true"}; DesiredCapabilities capabilities = DesiredCapabilities.phantomjs(); capabilities.setJavascriptEnabled(true); capabilities.acceptInsecureCerts(); capabilities.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS, cli_args); driver = new PhantomJSDriver( ResolvingPhantomJSDriverService.createDefaultService(), capabilities); } catch (IOException e) { e.printStackTrace(); } ((JavascriptExecutor) driver).executeAsyncScript( "window.setTimeout(arguments[arguments.length - 1], 30000);"); driver.manage().window().setSize(new Dimension(1280, 1024));
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 20 (4 by maintainers)
Commits related to this issue
- Working around https://github.com/SeleniumHQ/selenium/issues/4781 — committed to mcasperson/IridiumApplicationTesting by mcasperson 7 years ago
- Working around https://github.com/SeleniumHQ/selenium/issues/4781 — committed to mcasperson/IridiumApplicationTesting by mcasperson 7 years ago
- fixes test, but leaves unknown plattform bug open see https://github.com/SeleniumHQ/selenium/issues/4781 — committed to lkwg82/de.lgohlke.selenium-webdriver by lkwg82 7 years ago
- workaround: added workaround for this dumb phantomjs bug https://github.com/SeleniumHQ/selenium/issues/4781 — committed to kwler/kwler by the-codefactory-dev 7 years ago
- No PhantomJS tests, as that it not working with Selenium 3.6.0 (SeleniumHQ/selenium#4781) — committed to MarketSquare/robotframework-seleniumlibrary-java by Hi-Fi 7 years ago
- Switching to version 3.5.3 of Selenium server (workaround for https://github.com/SeleniumHQ/selenium/issues/4781) — committed to YouTransfer/YouTransfer by remie 7 years ago
- Switching back to Selenium 3.5.3 because of a bug in Selenium 3.6.0 in PhantomJS support (see https://github.com/SeleniumHQ/selenium/issues/4781) — committed to serenity-bdd/serenity-core by wakaleo 7 years ago
I see also this error on
selenium-server-standalone-3.6.0.jar
. Onselenium-server-standalone-3.5.3.jar
it’s ok.@barancev : @MrEfrem says that it is fixed in 3.5.3 not 3.6.0, which means it has to be fixed in the latest version . I expect this issue to be open until its resolved in the latest version .
3.7 fixed it for me too
Fixed in version 3.7 that was released a couple of days ago.
@barancev The fix provided by you works fine for now. However, could you tell us as to when would we get a release with a fix for this issue?