Organizing Python Selenium Script by using Class and Function

Published: 29 April 2020
on channel: FewSteps
3,072
46

This video explains how to Organizing Python Selenium Script using Class and Function.

♥️ Subscribe Few Steps:
   / @fewsteps  

Code from this tutorial:
----------------------------------------
from selenium import webdriver
import time


baseUrl = 'http://www.google.com'
locationChromeDriver = '../drivers/chromedriver'


class RunTestClass:
def testMethod(self):
drive = webdriver.Chrome(executable_path=locationChromeDriver)
drive.get(baseUrl)
time.sleep(10)


obj = RunTestClass()
obj.testMethod()



#selenium #python #fewsteps


On this page of the site you can watch the video online Organizing Python Selenium Script by using Class and Function with a duration of hours minute second in good quality, which was uploaded by the user FewSteps 29 April 2020, share the link with friends and acquaintances, this video has already been watched 3,072 times on youtube and it was liked by 46 viewers. Enjoy your viewing!