Skip to content

kshivakumar27/PythonSeleniumWebAutomationTesting

Repository files navigation

PythonSeleniumWebAutomationTestingUsingSeleniumForPython

Python selenium testing using python

prerequisite

python

https://www.python.org/downloads/windows/

open ur command prompt and check using python --version

webdriver

You can use which suites u like chrome,edge,firefox,internet explorer

https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/

download the file and create a folder its looks like this for me D:\selenium\chromedriver_win32\chromedriver.exe

selenium pypi

https://pypi.org/project/selenium/

pip install selenium

run this command in by opening you command prompt

code

from selenium import webdriver driver = webdriver.Chrome/Edge/Firefox(executable_path="D:\selenium\chromedriver_win32\chromedriver.exe") driver.get("https://google.com")

trail 3 website link

https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407

trail 2 webiste link

http://tutorialsninja.com/demo/

ide

to run project create .py file in any folder than file right click run as python code

https://code.visualstudio.com/

https://www.jetbrains.com/pycharm/download/#section=windows

along with this learn these things

https://www.w3schools.com/js/

https://www.w3schools.com/js/js_htmldom.asp#:~:text=The%20DOM%20defines%20a%20standard,and%20style%20of%20a%20document.%22

i will upload complete notes

basic things u have to know

  1. its a open source
  2. its a web framework which sup...multiple browser,os,
  3. versatile and adopted everywhere this also used by java,pearl........
  4. web driver-it will drive entire script(Commands)ex...login(login page.....username password enter button config)
  5. selenium rc-remote contoller(rc client and server)client test cases will be written and testing is done by server whichj contains website url and module of website) -used to test single piece of code called selenium rc
  6. selenium ide- testing environmnet
  7. selenium grid- wrirte test cases on pushses to grid it will test each and evry configua.... supports multiple os,and tools