Software Testing Using Python Selenium Web Automation Tool

What is selenium?


Selenium is a framework for the automated testing of web applications. Using Selenium, you can basically automate every task in your browser as if a real person were to execute the task. The interface used to send commands to the different browsers is called Selenium WebDriver.


Installation


Here we install selenium using pip command


> pip install selenium


Import web driver class and a key class


> from selenium import webdriver

> from selenium.webdriver.common.keys import Keys


webdriver - class will connect you to a browser’s instance

Keys - class lets you emulate the stroke of keyboard keys, including special keys like “Shift” and “Return”


Take a path where the web driver is installed


Here we take the path of chrome driver, where driver .exe exists.


> driver = webdriver.Chrome('./chromedriver')


Use the get to take the web


<!-----!>

work in progress





Contact Us

Tel: (+91) 0120  4118730  

Time :   10 : 00  AM -  08 : 00 PM IST 

Registered address: G-69, Sector 63, 

 Noida - 201301, India

We Provide Services Across The different countries

USA    Australia   Canada   UK    UAE    Singapore   New Zealand    Malasia   India   Ireland   Germany

Terms and Conditions        Privacy Policy    Pricing Policy       Refund Policy         COPYRIGHT © 2021

Sofstack Technology Solutions Pvt. Ltd.

  • CodersArts | Linkedin
  • Instagram