Skip to main content

Posts

Installing headless chrome browser on mac(Mojave)

How to install headless chrome browser on Mac   Step#1: install google chrome using below command brew install Caskroom/versions/google-chrome-canary Once installed, find the path of the app using below command sudo find / -type d -name "*Chrome Canary.app" While the code gets executed, you will come across some permissions issues and dialogue popup to seek permission to check certain directories ( click cancel on all the dialogue pop ups, just to be safe side by not allowing terminal to interact with any apps)  However, you will see the path like this for the r we installed just now  /Applications/Google Chrome Canary.app Once we find the path, we can start the headless browser using the below command:  Change the website you want to navigate to:  /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --headless --remote-debugging-port=9222 --disable-gpu https://finance.yahoo.com
Recent posts

How to install PHP.PHPUnit and Composer on mac(mojave)

###################################################### How to install PHP, PHPUnit and composer on Mac ###################################################### 1.PHP installation # curl -s http://php-osx.liip.ch/install.sh | bash -s 7.4 # cd /usr/local/bin # ln -s /usr/local/php74/bin/php php # ln -s /usr/local/php74/bin/phpize phpize # ln -s /usr/local/php74/bin/php-config php-config # php -v PHP 7.4.7 (cli) (built: Jun 12 2020 00:00:24) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies     with Xdebug v3.0.0-dev, Copyright (c) 2002-2020, by Derick Rethans     with Zend OPcache v7.4.7, Copyright (c), by Zend Technologies To download and install the current stable version of PHPUnit: # wget https://phar.phpunit.de/phpunit.phar # chmod +x phpunit.phar # mv phpunit.phar /usr/local/bin/phpunit # phpunit --version PHPUnit 9.2.3 by Sebastian Bergmann and contributors. To download and install the latest version of c...