Selenium Python Tutorial #53 - Create Test Automation Framework- Part 8

preview_player
Показать описание
In this Selenium Python Tutorial, we will learn how to create test automation framework. This is Selenium Python Test Automation Framework part 8 and in this video we will refactor the page object class and make it more maintainable.

Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the latest tutorials. More tutorial playlists below:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶

#SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

For locators, I used a dictionary of tuples to be maintained at the top of the file.
locators = {
"element1": (By.XPATH, "//a[text()='element1']"),
"element2": (By.ID, "element2"),
"elementN: (By.CSS_SELECTOR, "elementN")
}

Then, upack the tuple into whichever method, such as


This way, the references to 'By' need not be maintained in the rest of the file. Any tips on how I could further make this more efficient?

gnar-ninja
Автор

Hi, can i get the code of the complete framework?

vivekgarg