Organizing Python Selenium Script by using Class and Function

Publicado el: 29 abril 2020
en el canal de: 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


En esta página del sitio puede ver el video en línea Organizing Python Selenium Script by using Class and Function de Duración hora minuto segunda en buena calidad , que subió el usuario FewSteps 29 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,072 veces y le gustó 46 a los espectadores. Disfruta viendo!