Web automation using Python and selenium
In this project i just order a product from snapdeal.com using web automation using python and selenium tool
step1 - install selenium
pip install selenium
step 2 - install the webdriver in my case i use chrome web driver link -https://chromedriver.chromium.org/downloads
step 3 - to start a browser session-:
from selenium import webdriver
browser = webdriver.chrome()
step 4 : to open a webpage
browser.get('url')
step 5 : to select an element by id
browser.find_element_by_id(/id)
if id is not given then use xpath
browser.find_element_by_xpath(/xpath)
step 6: input value in element
element.sendkeys()
step 7: click on any element
element.click()
so in this project you will order your product from snapdeal.com using python script without any single click on a website fully automated
#thank you
-
Notifications
You must be signed in to change notification settings - Fork 0
nikhil6134/Web_automation_snapdeal.com
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Web automation using Python and selenium
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published