1.Selenium is an open-source, automated testing tool used to test web app across multiple browsers
2.Python is object-oriented and functional use for write test cases.
3.Here we are knowing about different kind of module like webdriver, utils etc.
4.WebDriver is a remote control interface that enables introspection and control of user agents.
5.A high-level instruction set for manipulating form controls.
6.Here we are working with some example using Google form.
2. Slide
~: Agenda :~
Intro. About Selenium
Selenium is an open-source,
automated testing tool used to
test web app across multiple
browsers
Why Python for
automation
Python is object-oriented and
functional use for write test
cases.
Selenium Python
Module
Here we are knowing about
different kind of module like
webdriver, utils etc.
Web element in
Selenium
A high-level instruction set
for manipulating form
controls.
Test Case
Here we are working with
some example using Google
form.
Intro about Web driver
WebDriver is a remote
control interface that
enables introspection and
control of user agents.
Slide
2
Slide
3
Slide
4
Slide
5
Slide
6
Slide
7
3. Slide
Slide
2
Selenium
is Open
Source
Selenium is an open-source
suite of tools and libraries
that is used for browser
automation.
Supports
Cross
Browsing
Almost all the browsers are
supported by selenium like
chrome, firefox, IE etc.
Automates
Web
applications
Selenium is very powerful tools
that are provide automation in
web app, website
What is Selenium ?
Selenium is an open-source, automated testing
tool used to test web app across multiple browsers
Slide
3
Slide
4
Slide
5
Slide
6
Slide
7
4. Slide
Slide
2
Slide
3
~: Selenium Components :~
Slide
4
Slide
5
Slide
6
Slide
7
I
.
Components
If you ask a lazy programmer
about their favorite automation
tools, there is a high probability
that you will get “SELENIUM” as
an answer.
Selenium
Grid
Selenium Grid is tool which is used
together with Selenium RC. It runs
test on different machines against
different browsers in parallel
Selenium
WebDriver
Selenium WebDriver is a browser
automation framework that accepts
commands and send them to a
browser
Selenium
IDE
Selenium RC
Selenium Remote Control is a
server, written in java, that
accepts commands for the
browser via HTTP
R.W
.
G.
It is one of the simplest frameworks in
the selenium suite. It allows us to
record and playback the scripts.
5. Slide
Slide
2
Slide
3
Slide
4
Selenium with
Python
There are two way to run automation scripts
Configure Selenium
using Python
Configure PyDev
in Eclipse.
01 02
Slide
5
Slide
6
Slide
7
Configure Selenium using
Python
Download and install Python on Windows
Install Selenium libraries in python
Download and install Pycharm/python IDLE
Create a new project and write the selenium test script
Run and validate the test scripts
6. Slide
Slide
2
Slide
3
Slide
4
Slide
5
Element to be added
while writing test script
Slide
6
Slide
7
IDLE
3
DRIVER
2
PIP
1
Pip install
Selenium in
your prompt
Download
chrome
driver using
Google
Using IDLE
write from
selenium
import
webdriver
7. Slide
Slide
2
Slide
3
Slide
4
Slide
5
Slide
6
Lets Start
Slide
7
Step 1:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
Step 2:
driver = webdriver.Chrome()
Step 3:
driver.maximize_window()
Step 4:
driver.get(https://www.google.com/)
Step 5:
Now search your website and using web element
perform your task