chrome – TecAdmin https://tecadmin.net How to guide for System Administrator's and Developers Thu, 12 Jan 2023 13:43:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 How to Install Google Chrome in Pop!_OS https://tecadmin.net/how-to-install-google-chrome-in-popos/ https://tecadmin.net/how-to-install-google-chrome-in-popos/#respond Thu, 12 Jan 2023 13:43:14 +0000 https://tecadmin.net/?p=33368 Google Chrome is a popular web browser that is widely used for browsing the internet, streaming videos, and running web-based applications. If you want to install Google Chrome on Pop!_OS, you can follow a few simple steps to download and install the browser. In this article, we will walk through the process of installing Google [...]

The post How to Install Google Chrome in Pop!_OS appeared first on TecAdmin.

]]>
Google Chrome is a popular web browser that is widely used for browsing the internet, streaming videos, and running web-based applications. If you want to install Google Chrome on Pop!_OS, you can follow a few simple steps to download and install the browser. In this article, we will walk through the process of installing Google Chrome on Pop!_OS, including downloading the installation package, installing dependencies, making the package executable, and using the “dpkg” command to install the package.

Steps to Install Google Chrome on Pop!_OS

  1. Download the Google Chrome package:
  2. Go to the Google Chrome website (https://www.google.com/chrome/) and click on the “Download Chrome” button. This will download the installation package for the latest version of Google Chrome.

    You can also download the latest Google Chrome version directly from the terminal with the following command:

    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 
    

    The above command will download “google-chrome-stable_current_amd64.deb” in the current directory.

  3. Install the necessary dependencies:
  4. Google Chrome requires several dependencies to be installed on your system in order to run. To install these dependencies, you can use the following command:

    sudo apt install libappindicator3-1 libgbm1 libindicator3-7 libu2f-udev
    

  5. Install Google Chrome:
  6. To install Google Chrome, you can use the “dpkg” command, which is a package manager for .deb packages. Run the following command:

    sudo dpkg -i google-chrome-stable_current_amd64.deb 
    

    This will install the Google Chrome web browser and its dependencies on your Pop!_OS system.

  7. Launch Google Chrome:
  8. To launch Google Chrome, you can use the `google-chrome` command in the terminal, or you can search for “Google Chrome” in the Pop!_OS menu and click on the icon to open the browser.

    Installing Google Chrome on Pop!_OS
    Installing Google Chrome on Pop!_OS

Conclusion

Installing Google Chrome on Pop!_OS is a straightforward process that involves downloading the installation package from the Google Chrome website, installing the necessary dependencies, making the package executable, and using the “dpkg” command to install the package. Once Google Chrome is installed, you can launch it from the terminal or the Pop!_OS menu. With Google Chrome installed, you can enjoy all of the features and benefits of this popular web browser on your Pop!_OS system.

The post How to Install Google Chrome in Pop!_OS appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-google-chrome-in-popos/feed/ 0
How to View HTTP Headers in Google Chrome https://tecadmin.net/how-to-view-http-headers-in-google-chrome/ https://tecadmin.net/how-to-view-http-headers-in-google-chrome/#respond Sun, 11 Sep 2022 02:52:34 +0000 https://tecadmin.net/?p=31655 Google Chrome DevTools (developer tools) is the browser’s built-in comprehensive toolkit for developers. Which provides a large number of information that is useful for the developers for debugging purposes. You can also find the website’s request headers and response header values directly with dev tools. View HTTP Headers in Chrome Follow the below steps to [...]

The post How to View HTTP Headers in Google Chrome appeared first on TecAdmin.

]]>
Google Chrome DevTools (developer tools) is the browser’s built-in comprehensive toolkit for developers. Which provides a large number of information that is useful for the developers for debugging purposes. You can also find the website’s request headers and response header values directly with dev tools.

View HTTP Headers in Chrome

Follow the below steps to open developer tools in Google Chrome and view HTTP header values.

  1. Open DevTools: You can open Google Chrome’s developer tools with two methods. Choose any one method:
    • Right-click on the browser and click Inspect
    • Press F12 function button in the keyboard.

  2. View HTTP headers: Open the target website in the browser. The developer tools will show you a large number of details that is helpful for the developers. Once the website is loaded, you can find header values as shown below:

    View HTTP Headers in Google Chrome
    Viewing the HTTP Headers in Google Chrome

The post How to View HTTP Headers in Google Chrome appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-view-http-headers-in-google-chrome/feed/ 0
How To Install Google Chrome On macOS https://tecadmin.net/how-to-install-google-chrome-on-macos/ https://tecadmin.net/how-to-install-google-chrome-on-macos/#respond Wed, 10 Aug 2022 10:09:05 +0000 https://tecadmin.net/?p=30956 Google Chrome is one of the most widely used web browsers today, with over 1 billion users across the world. While it is available for Windows and macOS – as well as Linux – natively, it can also be installed on OS X using third-party utilities. Installing Google Chrome directly from the official website will [...]

The post How To Install Google Chrome On macOS appeared first on TecAdmin.

]]>
Google Chrome is one of the most widely used web browsers today, with over 1 billion users across the world. While it is available for Windows and macOS – as well as Linux – natively, it can also be installed on OS X using third-party utilities. Installing Google Chrome directly from the official website will only get you so far. Instead, to get the most out of it on a Mac, you need to install it directly from its standalone installer file. Installing Google Chrome on your Mac is not very difficult either.

There are several ways in which you can install Google Chrome on macOS. In this blog post, we will discuss installing Google Chrome on macOS.

The benefits of Google Chrome for macOS

People have been using the Chrome browser since 2008. Since then, Chrome has become one of the most popular browsers on the market and grow as a low-cost and easy-to-use solution.

In fact, there are many reasons why you should use Google Chrome on macOS. Not only is it free, but it is also very lightweight, secure, and fast, making it ideal for all sorts of uses. It is also cross-platform, so you can use it on Windows and macOS. Furthermore, Chrome has more features, extensions, and apps available compared to other browsers. It is also very easy to use and navigate, making it ideal for beginners.

How to Install Google Chrome on macOS

Visit chrome.com/mac to download and install Google Chrome on your Mac computer. You can also follow these steps to install Google Chrome on macOS. Once you do, you will be able to experience all the amazing features that Google Chrome has to offer.

  1. Open Safari browser and visit google.com/chrome
  2. Click the Download Chrome button
    Download Google Chrome on MacOS
    Download Google Chrome for macOS
  3. When the Chrome for Mac download is finished, open the file called googlechrome.dmg under Downloads directory.

    Installing Google Chrome on MacOS
    Run Google Chrome installer on macOS
  4. Drag the Chrome icon to the Applications folder when asked — the last step before you finally have Chrome on Mac
    How to Install Google Chrome on MacOS
    Installing Google Chrome on macOS
  5. Launch Google Chrome from Applications or straight from your Dock
    How to Install Chrome on macOS
    Running Google Chrome on macOS
  6. Remove the Google Chrome dmg file from the Downloads folder.

Google Chrome Shortcuts on macOS

If you start using Google Chrome on your Mac, you will discover some interesting shortcuts for the browser. Here are a few key Google Chrome shortcuts that you should know about:

  • ⌘ + T: Open a new tab
  • ⌘ + Shift + N: Open a private window (Incognito mode)
  • ⌘ + W: Close current tab
  • ⌘ + L: Go to the address bar
  • ⌘ + Shift + R: Reload current tab
  • ⌘ + F: Open the browser’s built-in search feature
  • ⌘ + D: Bookmarks
  • ⌘ + J: History
  • ⌘ + P: Open the Command Menu
  • ⌘ with + or – keys: Zoom in and out

Final words: Is it worth installing Google Chrome?

Yes. If you are looking for an easy-to-use yet powerful web browser, there is no better option than Google Chrome. It is free and cross-platform, so you can use it on Windows, Linux, and macOS. Furthermore, it is lightning fast, secure, and has many useful features and extensions. You won’t be disappointed with Google Chrome, that’s for sure!

This tutorial helps you to install Google Chrome on macOS system.

The post How To Install Google Chrome On macOS appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-google-chrome-on-macos/feed/ 0
How To Install Google Chrome on Ubuntu 20.04 https://tecadmin.net/install-google-chrome-on-ubuntu-20-04/ https://tecadmin.net/install-google-chrome-on-ubuntu-20-04/#comments Tue, 06 Oct 2020 11:13:57 +0000 https://tecadmin.net/?p=23091 Google Chrome is the most popular web browser between developers and Internet users. It is available for the most popular operating systems (like Windows, Linux) and Android devices. As of the last update of this article, Google Chrome 91 is the latest stable version available to install. An official PPA is available to install Google [...]

The post How To Install Google Chrome on Ubuntu 20.04 appeared first on TecAdmin.

]]>
Google Chrome is the most popular web browser between developers and Internet users. It is available for the most popular operating systems (like Windows, Linux) and Android devices. As of the last update of this article, Google Chrome 91 is the latest stable version available to install.

An official PPA is available to install Google Chrome on Ubuntu and other Debian-based systems. Which provides you easy to an install and update option. As well as, you can directly install Google chrome with a graphical interface. This tutorial will cover both methods to install Google Chrome with Command line and GUI.

If you are searching for the Chromium web browser, You can use our tutorial to install Chromium web browser on Ubuntu system.

Let’s begin the installation of the latest Google Chrome web browser on the Ubuntu 20.04 LTS systems.

Prerequisites

  • You must have a running Ubuntu 20.04 LTS Desktop system.
  • Login to your Desktop system with sudo privileged account.

Installing Google Chrome on Ubuntu

First of all, You need to configure Google Chrome Apt repository on your Ubuntu system. Before adding the repository, you must import the GPG key to your system.

  1. Open a terminal on your system and type:
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
    
  2. Next, create a Apt PPA file for Google chrome on your system by executing:
    sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 
    

    The above command will create an Apt configuration file /etc/apt/sources.list.d/google.list to your system.

  3. Your system is ready for Google Chrome installation. Execute the following commands to update the apt cache and install the Google chrome stable package on a Ubuntu system.
    sudo apt update 
    sudo apt install google-chrome-stable 
    

    Press ‘y’ for all the confirmation asked by the installer.

That’s it. You have successfully installed the Google chrome web browser on your Ubuntu system.

Launch Chrome Application

Once the installation finished, you can run the application from applications. Click on show application’s icon at bottom left. Then search for the Google chrome, and you will see the application like below:

Launch Google chrome on Ubuntu 20.04

Click on the launcher icon to start Google chrome on the Ubuntu system.

Installing Google chrome on Ubuntu 20.04

Enjoy browsing!

Upgrade Chrome on Ubuntu

You have installed Google chrome from the official PPA on your Ubuntu system. The upgrade of Google chrome is straightforward. Open a terminal and execute the below commands to upgrade Google chrome on a Ubuntu system.

sudo apt update && apt upgrade 

The above command will upgrade all system packages including Google chrome on your system.

Conclusion

Congratulation’s you have successfully installed Google chrome on Ubuntu 20.04 Linux system. The same commands will also be used to upgrade the older versions.

You can also use the Google chrome GUI installer to install with a graphical interface.

The post How To Install Google Chrome on Ubuntu 20.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-google-chrome-on-ubuntu-20-04/feed/ 1
How to Install Google Chrome on Ubuntu 18.04 https://tecadmin.net/install-google-chrome-on-ubuntu-18-04/ https://tecadmin.net/install-google-chrome-on-ubuntu-18-04/#comments Fri, 02 Oct 2020 06:06:44 +0000 https://tecadmin.net/?p=23096 Google Chrome is the most popular web browser used by Internet users. It is available for the most popular operating systems (like Windows, Linux) and Android devices. You can also install chromium browser on your Ubuntu system. The development team uses chromium source code to build the Chrome browser. Google chrome is not installed by [...]

The post How to Install Google Chrome on Ubuntu 18.04 appeared first on TecAdmin.

]]>
Google Chrome is the most popular web browser used by Internet users. It is available for the most popular operating systems (like Windows, Linux) and Android devices.

You can also install chromium browser on your Ubuntu system. The development team uses chromium source code to build the Chrome browser.

Google chrome is not installed by default on Ubuntu systems. So, this article will guide you to install the latest Google Chrome on Ubuntu 18.04 LTS Linux system.

Prerequisites

Login to your Ubuntu 18.04 LTS system with sudo privileged account.

Install Chrome on Ubuntu 18.04

The Chrome official team provides Debian packages of the Google chrome for the installation on Debian-based system. You just need to add the repository on your system and install Chrome.

First of all, import the GPG key to system used for verifying the packages singed by it. Open a terminal and execute following command:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 

Now, configure the Chrome PPA to your system. The below command will create a PPA file and configure repository:

echo “deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main” | sudo tee /etc/apt/sources.list.d/google.list’ 

Once you configured PPA, your Ubuntu system is ready for the Google chrome installation. Run the following commands to install google chrome on Ubuntu 18.04 system.

sudo apt update 
sudo apt install google-chrome-stable 

Press ‘y’, if the installer prompt for the confirmation.

Running Chrome Application

Click on the application’s launch button at bottom left corner, then search for google chrome. You will see the chrome launcher icon as below:

Launch Chrome Application Ubuntu 18.04

Click the launcher icon to start the Google Chrome application.

Running Chrome on Ubuntu 18.04

All done, enjoy browsing with the power of Google chrome.

Conclusion

In this tutorial, you have found the instructions to install the Google Chrome web browser on Ubuntu 18.04 LTS systems.

The post How to Install Google Chrome on Ubuntu 18.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-google-chrome-on-ubuntu-18-04/feed/ 1
How to Install Chromium Browser on Ubuntu 20.04 https://tecadmin.net/install-chromium-browser-on-ubuntu-20-04/ https://tecadmin.net/install-chromium-browser-on-ubuntu-20-04/#comments Sun, 27 Sep 2020 09:45:54 +0000 https://tecadmin.net/?p=22848 Chromium is an open-source web browser project that aims to build a safer, faster, and more stable way to its users for a better experience of the web. Chromium is perfectly safe for using. Make sure to download it from a good source or official Google download page. Also make sure to update it on [...]

The post How to Install Chromium Browser on Ubuntu 20.04 appeared first on TecAdmin.

]]>
Chromium is an open-source web browser project that aims to build a safer, faster, and more stable way to its users for a better experience of the web.

Chromium is perfectly safe for using. Make sure to download it from a good source or official Google download page. Also make sure to update it on regular basis.

If you are looking for the Chrome (Not chromium) web browser, You can use our tutorial to install Google chrome web browser on Ubuntu system.

This tutorial will help you to install chromium web browser on Ubuntu 20.04.

Install Chromium on Ubuntu

Most of the modern operating systems have chromium browser in default package repositories. Also Chromium is available as Snap package for installation.

Choose one of the below method for installing chromium in Ubuntu system.

  • Install Chromium using Snap Package

    A Snap package is containerized software packages provide easy to install method. You can install sanp package via the command line or using Ubuntu Software application.

    Open a terminal on your system and type:

    sudo snap install chromium 
    

    All done. Chromium web browser has been installed on your Ubuntu desktop. The Snap package will also update it automatically in then background.

  • Install Chromium using Debian Package

    The Chromium debian package is available under the default apt repositories.

    Use the following commands to update apt cache and install the Chromium package.

    sudo apt update 
    sudo apt install chromium-browser 
    

Open Chromium Browser

Open the applications menu and search for Chromium. You will see the chromium browser link similar to chrome but in different color as below screenshot:

launch chromium browser ubuntu on Ubuntu 18.04

Click to the chromium icon link to launch browser:

installing chromium browser on Ubuntu 18.04

Conclusion

In this tutorial, you have learned about to install Chromium on Ubuntu 20.04 Linux system. hh

The post How to Install Chromium Browser on Ubuntu 20.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-chromium-browser-on-ubuntu-20-04/feed/ 1
How to Install Chromium Browser on Ubuntu 18.04 https://tecadmin.net/install-chromium-browser-on-ubuntu-18-04/ https://tecadmin.net/install-chromium-browser-on-ubuntu-18-04/#respond Tue, 15 Sep 2020 09:15:30 +0000 https://tecadmin.net/?p=22860 Chromium is an open-source web browser project that aims to build a safer, faster, and more stable way to its users for a better experience of the web. Chromium is perfectly safe for using. Make sure to download it from a good source or official Google download page. Also make sure to update it on [...]

The post How to Install Chromium Browser on Ubuntu 18.04 appeared first on TecAdmin.

]]>
Chromium is an open-source web browser project that aims to build a safer, faster, and more stable way to its users for a better experience of the web.

Chromium is perfectly safe for using. Make sure to download it from a good source or official Google download page. Also make sure to update it on regular basis.

This tutorial will help you to install chromium web browser on Ubuntu 18.04 LTS Linux system.

Installing Chromium on Ubuntu

The Ubuntu 18.04 operating systems contains chromium browser under the default package repositories. It also available as Snap package for Ubuntu systems

Its your choice to choose any one of the below methods to install chromium browser in Ubuntu system.

  • Install Chromium using Snap Package

    A Snap package is containerized software packages provide easy to install method. You can install sanp package via the command line or using Ubuntu Software application.

    Open a terminal on your system and type:

    sudo snap install chromium 
    

    That’s it. The Chromium browser has been installed on your system.

  • Install Chromium using Debian Package

    Chromium browser debian package is available under the default apt repositories. Just update the apt cache and install browser on your system.

    Open a terminal and install chromium browser by typing:

    sudo apt update 
    sudo apt install chromium-browser 
    

Launch Chromium Browser

Search for Chromium under the application. You will see the chromium browser link similar to chrome but in different color as below screenshot:

launch chromium browser ubuntu on Ubuntu 18.04

Click on the link icon to launch chromium browser:

installing chromium browser on Ubuntu 18.04

Conclusion

In this tutorial, you learned two methods of the installation of Chromium browser on Ubuntu 18.04 Linux system.

The post How to Install Chromium Browser on Ubuntu 18.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-chromium-browser-on-ubuntu-18-04/feed/ 0
How to Setup Selenium with ChromeDriver on Ubuntu 22.04, 20.04 & 18.04 https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/ https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comments Mon, 19 Feb 2018 16:17:20 +0000 https://tecadmin.net/?p=15095 This tutorial will help you to set up Selenium with ChromeDriver on Ubuntu, and LinuxMint systems. This tutorial also includes an example of a Java program that uses a Selenium standalone server and ChromeDriver and runs a sample test case. Read This: Setup Selenium with Firefox on Ubuntu Step 1 – Prerequisites Execute the following [...]

The post How to Setup Selenium with ChromeDriver on Ubuntu 22.04, 20.04 & 18.04 appeared first on TecAdmin.

]]>
This tutorial will help you to set up Selenium with ChromeDriver on Ubuntu, and LinuxMint systems. This tutorial also includes an example of a Java program that uses a Selenium standalone server and ChromeDriver and runs a sample test case.

Read This: Setup Selenium with Firefox on Ubuntu

Step 1 – Prerequisites

Execute the following commands to install the required packages on your system. Here Xvfb (X virtual framebuffer) is an in-memory display server for a UNIX-like operating system (e.g., Linux). It implements the X11 display server protocol without any display. This is helpful for CLI applications like CI services.

sudo apt update 
sudo apt install -y unzip xvfb libxi6 libgconf-2-4 

Also, install Java on your system. Let’s install Oracle Java 8 on your system or use the below command to install OpenJDK.

sudo apt install default-jdk 

Step 2 – Install Google Chrome

Now install Latest Google chrome package on your system using the below list commands. Google chrome headless feature opens multipe doors for the automation.

sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add 
sudo bash -c "echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list.d/google-chrome.list" 
sudo apt -y update 
sudo apt -y install google-chrome-stable 

Step 3 – Installing ChromeDriver

You are also required to set up ChromeDriver on your system. ChromeDriver is a standalone server that implements WebDriver’s wire protocol for Chromium. The WebDriver is an open-source tool for the automated testing of web apps across multiple browsers.

Find out the Google chrome version installed on your system.

google-chrome --version 
Output
Google Chrome 94.0.4606.71

Next, visit the Chromedriver download page and download the matching version of chromedriver on your system.

In my case, Google Chrome 94 is running on my system. So download the following file. You must make sure to download the correct version of a file:

wget https://chromedriver.storage.googleapis.com/94.0.4606.61/chromedriver_linux64.zip 
unzip chromedriver_linux64.zip 

You can find the latest ChromeDriver on its official download page. Now execute below commands to configure ChromeDriver on your system.

sudo mv chromedriver /usr/bin/chromedriver 
sudo chown root:root /usr/bin/chromedriver 
sudo chmod +x /usr/bin/chromedriver 

Step 4 – Download Required Jar Files

The Selenium Server is required to run Remote Selenium WebDrivers. You need to download the Selenium standalone server jar file using the below commands or visit here to find the latest version of Jar file.

wget https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar 
mv selenium-server-standalone-3.141.59.jar selenium-server-standalone.jar 

Also, download the testng-6.8.7.jar file to your system.

wget http://www.java2s.com/Code/JarDownload/testng/testng-6.8.7.jar.zip 
unzip testng-6.8.7.jar.zip 

Step 5 – Start Chrome via Selenium Server

Your server setup is ready. Start Chrome via a standalone selenium server using the Xvfb utility.

Run Chrome via Selenium Server

xvfb-run java -Dwebdriver.chrome.driver=/usr/bin/chromedriver -jar selenium-server-standalone.jar 

Use -debug option at end of the command to start the server in debug mode.

You can also Start Headless ChromeDriver by typing the below command on the terminal.

chromedriver --url-base=/wd/hub 

Your Selenium server is now running with Chrome. Use this server to run your test cases written in Selenium using the Google Chrome web browser. The next step is an optional step and doesn’t depend on Step 5.

Step 6 – Sample Java Program (Optional)

This is an optional step. It describes running a single test case using a Selenium standalone server and ChromeDriver. Let’s create a Java program using the Selenium server and Chrome Driver. This Java program will open a specified website URL and check if a defined string is present on the webpage or not.

Create a Java program by editing a file in a text editor.

vim TecAdminSeleniumTest.java 

Add the below content to the file.

import java.io.IOException;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;

public class TecAdminSeleniumTest {

        public static void main(String[] args) throws IOException, InterruptedException {
                System.setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver");
                ChromeOptions chromeOptions = new ChromeOptions();
                chromeOptions.addArguments("--headless");
                chromeOptions.addArguments("--no-sandbox");

                WebDriver driver = new ChromeDriver(chromeOptions);

                driver.get("https://google.com");

                Thread.sleep(1000);

                if (driver.getPageSource().contains("I'm Feeling Lucky")) {
                        System.out.println("Pass");
                } else {
                        System.out.println("Fail");
                }
                driver.quit();
        }
}

You can change the URL “https://google.com” with any other URL of your choice, Then also change the search string like “I’m Feeling Lucky” used in the above Java program. Save your java program and execute it. First, you need to set the Java CLASSPATH environment variable including the selenium-server-standalone.jar and testng-6.8.7.jar. Then compile the java program and run it.

export CLASSPATH=".:selenium-server-standalone.jar:testng-6.8.7.jar" 
javac TecAdminSeleniumTest.java 
java TecAdminSeleniumTest 

You will see the results below. If the defined search string is found, You will get the message “Pass” and if the string is not found on the webpage, you will get the “Fail” message on the screen.

Selenium test case results

The post How to Setup Selenium with ChromeDriver on Ubuntu 22.04, 20.04 & 18.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/feed/ 42
How to Capture Screenshot of Webpage Using Google Chrome https://tecadmin.net/capture-screenshot-google-chrome-headless/ https://tecadmin.net/capture-screenshot-google-chrome-headless/#comments Wed, 07 Jun 2017 17:27:54 +0000 https://tecadmin.net/?p=12847 The Google Chrome 59 and newer versions have included a new feature headless which provides functionality to run Google Chrome without UI. This allows users to use Google Chrome on the command line as well as scripts. This headless Google Chrome version also included the feature to capture a screenshot of any website using the [...]

The post How to Capture Screenshot of Webpage Using Google Chrome appeared first on TecAdmin.

]]>
The Google Chrome 59 and newer versions have included a new feature headless which provides functionality to run Google Chrome without UI. This allows users to use Google Chrome on the command line as well as scripts. This headless Google Chrome version also included the feature to capture a screenshot of any website using the command line tool.

Requirements:

You must be using Google Chrome 59 or a later version. With Google Chrome version 59, it’s only available for MAC OS and Linux users. Windows users still have to wait for some time.

Capture Screenshot:

Use the following command to capture a screenshot of the given web page. The output file will be created in the current directory with the name screenshot.png.

google-chrome --headless --disable-gpu --screenshot http://www.example.com/

You can also specifiy the dimension of screenshot using --window-size option like below.

google-chrome --headless --disable-gpu --window-size=1280,768 --screenshot http://www.example.com/

You can also specify output filename with location as --screenshot=file1.png to create specific name.

google-chrome --headless --disable-gpu --print-to-pdf=file1.png http://www.example.com/

Reference:
https://developers.google.com/web/updates/2017/04/headless-chrome

The post How to Capture Screenshot of Webpage Using Google Chrome appeared first on TecAdmin.

]]>
https://tecadmin.net/capture-screenshot-google-chrome-headless/feed/ 4
How to Install Google Chrome on Ubuntu https://tecadmin.net/install-google-chrome-in-ubuntu/ https://tecadmin.net/install-google-chrome-in-ubuntu/#comments Fri, 25 Mar 2016 08:58:49 +0000 https://tecadmin.net/?p=3207 Have you ever wondered why there are not so many users of Chromium-based browsers on Linux? Most people prefer using Google Chrome rather than the other Chromium-based browsers. The good news is that you can also enjoy its benefits by installing Google Chrome on Ubuntu and Linux Mint. If you love Google Chrome, but prefer [...]

The post How to Install Google Chrome on Ubuntu appeared first on TecAdmin.

]]>
Have you ever wondered why there are not so many users of Chromium-based browsers on Linux? Most people prefer using Google Chrome rather than the other Chromium-based browsers. The good news is that you can also enjoy its benefits by installing Google Chrome on Ubuntu and Linux Mint. If you love Google Chrome, but prefer to use it from the terminal instead of having another browser as your primary app, this article should be useful for you.

In this article, we’ll show you how to install Google Chrome on Ubuntu or Linux Mint and some tips for how to use it as your primary browser. Read on!

How to Install Google Chrome with PPA

The Google Chrome developer team provides a PPA for installing it on the Debian-based systems. All the users, that have terminal access only can follow these instructions. Use the below instructions to install Google Chrome with PPA on Ubuntu, Debian, and LinuxMint systems.

  1. Configure GPG Key: First, you need to configure the GPG key on your system. The latest Linux operating systems changed the way of using GPG keys. So use one of the below commands as per the operating system version:
    • Ubuntu 22.04 and newer versions:
      curl https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/chrome.gpg > /dev/null 2>&1 
      
    • Ubuntu 20.04 and older versions:
      wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
      
  2. Setup Chrome PPA: Next, create a PPA file for Google Chrome on your system. Use one of the below commands as per your operating system version:
    • Ubuntu 22.04 and newer versions:
      sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 
      
    • Ubuntu 20.04 and older versions:
      sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/chrome.gpg ] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 
      
  3. Install Google Chrome Application: After adding the Google Chrome repository to our system use the following commands to install the latest Google Chrome stable release. If you already have installed an older version, It will upgrade the currently installed version with the recent stable version.
    sudo apt update 
    sudo apt install google-chrome-stable 
    

    If prompted for confirmation, Press ‘y’ and hit enter to complete the Google chrome installation.

    How to Install Google Chrome In Ubuntu
    Installing Google Chrome In Ubuntu

Launch Google Chrome

You have successfully installed Google Chrome on your Ubuntu or LinuxMint system. After successful installation, the GUI can search for the chrome launcher icon under applications to start the application.

How to Install Google Chrome on Ubuntu
Launch Google Chrome

During the first launch, Chrome will prompt you to set it as the default browser. Choose options of your choice and click Ok.

How to Install Google Chrome on Ubuntu & LinuxMint
Set Google Chrome as default browser

The Google Chrome web browser is successfully installed and running on the Ubuntu system.

Installing Chrome on Ubuntu
Google Chrome browser running on Ubuntu

Tips for Using Google Chrome on Linux

If you’re using Google Chrome as your primary browser, we recommend that you install the following open-source extensions to enjoy all its features in an easier way.

  • The Great Suspender: This is one of the most useful extensions for Chrome on Linux. It will automatically suspend the inactive tabs, making your browser faster.
  • Session Buddy: With Session Buddy, you can resume your tabs from where you left off. This is great if you’re using more than one computer.
  • Hover Zoom: Hover Zoom allows you to zoom images by hovering the cursor over them.
  • Download Tab: You can download the complete contents of a tab or a link.
  • Speed Dial: Google Speed Dial is an excellent alternative to the built-in New Tab.
  • Session Manager: This extension allows you to save and restore sessions.

Conclusion

Chromium-based browsers are very fast and efficient. If you’re a heavy user of the internet, Google Chrome is the best browser for you. And now that you know how to install and use it, there’s no reason for you not to try it out. We hope you find this article useful. Stay tuned for more guides on Chrome on Linux!

The post How to Install Google Chrome on Ubuntu appeared first on TecAdmin.

]]>
https://tecadmin.net/install-google-chrome-in-ubuntu/feed/ 45