
Once you are done with the above process, we will write a short Python script to test the workings of Selenium on a system.

$ ls -l drivers/ Write Basic Code in Python to use Selenium $ unzip ~/Downloads/chromedriver_linu圆4.zip -d ~/selenium_chrome/driversĪfter that, pass the ls command to verify whether the file was extracted as per our intention or not.

Once the file is downloaded, extract it and move it to the driver directory of a project directory. The result of the above command, as shown below: Once you are satisfied with the above explanation, you are bound to install virtualenv using the below command: $ sudo pip3 install virtualenv Read this:- How to install Python PIP on Windows, macOS, and Linux This step is not necessary, but I suggest you create a Python 3 virtual environment, which will ensure that your old Python programs do not interfere with the new project.īut how will virtualenv keep my old programs safe to run without error? Once you install and activate virtualenv, it will create a separate or isolated environment where you can install different Python libraries or modules without touching your old available libraries. Once the prerequisite is fulfilled, you can move to Create Virtual Environment. In this guide, you will use a Python program to automate tests, so to move ahead, you should make sure the following applications and dependencies are preinstalled: Write Basic Code in Python to use Selenium.How to Install Chrome Driver for Chrome Browser.However, you are free to utilize any other Selenium compatible driver you wish. Instead, Dusk uses a standalone ChromeDriver installation. By default, Dusk does not require you to install JDK or Selenium on your local computer. Laravel Dusk provides an expressive, easy-to-use browser automation and testing API.
