Unable to run Selenium tests on CentOS through Xvfb

28 views
Skip to first unread message

gajanan...@gmail.com

unread,
Jun 24, 2020, 1:11:48 AM6/24/20
to headless-dev
I'm running Selenium tests on `CentOS 7` machine through Jenkins pipeline hence using `Xvfb`. When use `screen` argument with any valid value like following -

    wrap([$class: 'Xvfb', autoDisplayName: true, screen: '1440x800x8']) { 
       <code to run Selenium test here>
    }

It results into following error -



    [testng] org.openqa.selenium.WebDriverException: chrome not reachable
    
       [testng]   (Session info: chrome=80.0.3987.132)
    
       [testng]   (Driver info: chromedriver=80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}),platform=Linux 3.10.0-862.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
    
       [testng] Command duration or timeout: 0 milliseconds
    
       [testng] Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z'
    
     
If we run it without `screen` argument it runs successfully.

One more observation - with `screen` argument, it perfectly works on `Ubuntu 18`

Please help me how I can run Selenium tests with `screen` argument on `CentOS 7`.

Jerry Lee Daniel

unread,
Nov 19, 2023, 5:04:56 PM11/19/23
to headless-dev, gajanan...@gmail.com
Loans, Project and Digital Investment financing available up to $500m.
Have a Business Plan, Fundable Project and Redeemable Collateral.

Whatsapp: +44 7405 896213

Reply all
Reply to author
Forward
0 new messages