Are you afraid that you won’t be able to learn or do automation? It is the fear that most of the people have in their mind when they think of learning Automation tools and techniques. Due to a lack of guidance, they resist moving towards automation testing. I myself had this thought in mind before practically trying it. So, this article is to give you a quick start of automation testing using Selenium Webdriver.

Components of Selenium

There are four components of Selenium

  1. Selenium Integrated Development Environment (IDE)
  2. Selenium Remote Control (RC)
  3. WebDriver
  4. Selenium Grid

from which we’ll be using Selenium Web driver.

Steps to Install Selenium WebDriver

  1. Download and install Python from the following link “python”, from the “Downloads” tab, click on “Python for windows.”
  2. Download and Install PyCharm IDE for Python Developers from the link “ Pycharm link ”.

Configure PyCharm with WebDriver

  1. Open PyCharm.
  2. Go to “File” menu > New Project > Select “Pure Python” > Click “Create” > Select “This Window.”
  3. Go to the “File” menu > Click on “Settings” > Click on “Project: Your Project name” > Click on “Project Interpreter.”

  1. Click on the “+” sign on the right side of the window > Type “Selenium” in the search field > Click on the “Selenium” option > Click on “Install Package”.
  2. What will install the Package successfully?

Installing Gecko Driver

Gecko is a web browser engine used in many applications developed by Mozilla Foundation and the Mozilla Corporation. Gecko-Driver is the link between your tests in Selenium and the Firefox browser. Gecko Driver is an executable file that you need to have in one of the system paths before starting your tests. To install Gecko, follow the following steps:

  1. Go to Github Mozilla Release > Select the Gecko version according to your OS > Download it and extract it > You will get the “geckodriver.exe” file.
  2. Copy it and paste it into the folder where your python projects are being created.

First WebDriver Code

Below is an example of test case that will check that Google opens and searches anything that user types Successfully.

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()
assert “Google” in driver.title
elem = driver.find_element_by_name(“q”)
assert “No results found.” not in driver.page_source

Running the Test Case

To run the test case, Right Click on Test Case > Click on “Run ‘Your File Name’”.


automation testing

Testing and quality assurance services at Tkxel can help you improve the quality of your software and make your product more reliable. Drop us a line!

Success Stories

VIEW ALL Stories
Client image

“We have been working with Tkxel since October 2018 and we found their communication extremely effective and professional. Our goal with this project was to ensure a seamless and transparent competency review system and the application developed by Tkxel helped us achieve those desired results.”

Russell Willcocks // Ministerial Association Secretary
Client image

"Tkxel redeveloped the application on time and within the budget, meeting all of the project's milestones and pleasing the client. Their development skills and proactiveness accelerated the timeline and delivery of the project."

Sylvian Bruni // Principal Engineer
Client image

“Tkxel provided very good resources for our Broadband ISP and UX requirements. The work was completed on time and professionally. The project was carried out seamlessly and with utmost diligence. We would like to work with Tkxel again.”

Philip Macridis // Managing Director
Client image

"We are pleasantly surprised by the process that Tkxel team adopted to handle this complex integration. Their engineers became core part of our team and took the ownership of the whole project in a very professional way."

Wayne Walls // Product Manager

Contact Us

Let's get started!

    Note: We will not spam you and your contact information will not be shared.