Running selenium-chromedriver using Protractor on linux

后端 未结 2 798
我在风中等你
我在风中等你 2020-12-30 05:22

I am using protractor to run tests against an Angular application. They work on my OSX environment but not on Linux where TeamCity is trying to run it.

When I run th

相关标签:
2条回答
  • 2020-12-30 05:44

    I had the same problem and it resolved just after installing unity-gtk3-module !!

    yum install unity-gtk3-module

    Installing:
     PackageKit-gtk3-module                                      
     Updating:                                                          
    Installing for dependencies:
     PackageKit-glib                                                 
     adwaita-cursor-theme                                          
     adwaita-icon-theme                                             
     at-spi2-atk                                                   
     at-spi2-core                                                   
     cairo-gobject                                                  
     colord-libs                                                    
     gtk3                                                            
     json-glib                                                       
     libXevie                                                       
     libgusb                                                  
     rest                                                           
     Updating for dependencies:
     glib2
    

    i hope this helps

    0 讨论(0)
  • 2020-12-30 05:58

    You need to be able to run Chrome or Firefox headless and for that you'll need to configure Xvfb among other things, otherwise Chrome will fail to launch without a proper $DISPLAY.

    You could also use PhantomJS but, IMHO, what good does that to e2e testing since is not a real browser.

    This is what I'm successfully using for continuous testing: https://github.com/elgalu/docker-selenium

    0 讨论(0)
提交回复
热议问题