Solve Firefox webdriver selenium Failed to dlopen /usr/lib/libX11.so.6 in Fedora


I use Selenium for testing, usually I use ChromeDriver which more fast and smoothly than firefox. In case you have failed when using Selenium with Firefox WebDriver and got this issue :

1
WebDriverException: Message: ‘The browser appears to have exited before we could connect. The output was: Failed to dlopen /usr/lib/libX11.so.6ndlerror says: /usr/lib/libX11.so.6: wrong ELF class: ELFCLASS32n’

The solution is easy:

1
2
sudo mv /usr/lib/libX11.so.6{,.x86}
sudo ln -s /usr/lib64/libX11.so.6.3.0 /usr/lib/libX11.so.6

And you can test your Firefox webdriver.

Inspired by : http://www.ilker.de/selenium-on-fedora-17.html


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.