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


Watch video Organizing Python Selenium Script by using Class and Function online, duration hours minute second in high quality that is uploaded to the channel FewSteps 29 April 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,072 times and liked it 46 visitors.