Quality Testing

Quality is delighting customers

How to Do Selenium automation testing with the help of Python?

Hello All,

Please share your thoughts about How to Do Selenium automation testing with the help of Python, Just started some new things during this lockdown...

I also got the good source of information like: Selenium Automation Testing Using Python

You have anything more for me...

Views: 12

Reply to This

Replies to This Discussion

According to software testing solutions, the best approach to follow to do automation with Selenium & Python would be going through Python basics first and then basic selenium commands and then learning as per the below mentioned plan in sequence:-

Example of basic Automation using Selenium and Python is as follows:-

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

driver = webdriver.Chrome('./chromedriver')
driver.get("https://www.python.org")
print(driver.title)
search_bar = driver.find_element_by_name("q")
search_bar.clear()
search_bar.send_keys("getting started with python")
search_bar.send_keys(Keys.RETURN)
print(driver.current_url)
driver.close()

###########################################

After this, you can go through the below mentioned topics to learn Python+Selenium(You can go through tutorials on Udemy too):-

  • Different types of locators in webdriver API.
  • Techniques to automate web elements.
  • Synchronization(Implicit & Explicit waits).
  • Handling Child windows,frames & Mouse actions.

Then for the frameworks, you can try the following:-

  • PyTest for Unit Testing.
  • Behave for BDD testing.
  • Requests for API testing.
  • NumPy for data science and electrical engineering tesing.
  • PDFMiner to extract data from PDF files.
  • Openpyxl to deal with excel data.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service