Search code examples
macosgoogle-chromeselenium-webdrivergoogle-chrome-extension

Using Selenium on Mac Chrome


Recently got a mac and was able to run Mozilla without any issues but having trouble installing chrome extensions and running it for selenium. Can someone guide me through the process of installing the extension and running selenium on Mac chrome.


Solution

  • I think that the easy way for running mac osx, chrome and selenium together is like this on mac os terminal:

    # download selenium jar
    curl -L0 https://selenium-release.storage.googleapis.com/3.9/selenium-server-standalone-3.9.1.jar -o selenium-server-standalone.jar
    
    # install chromedriver using cask
    brew cask install chromedriver
    
    # start chrome driver
    brew services start chromedriver                                                                                                                                                                      
    #==> Successfully started `chromedriver` (label:homebrew.mxcl.chromedriver)
    
    # start selenium server
    java -jar selenium-server-standalone.jar                                                                                                                                                                           
    #14:38:20.684 INFO - Selenium build info: version: '3.9.1', revision: '63f7b50'
    #14:38:20.685 INFO - Launching a standalone Selenium Server on port 4444