Organizing Python Selenium Script by using Class and Function

Publicado em: 29 Abril 2020
no 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


Nesta página do site você pode assistir ao vídeo on-line Organizing Python Selenium Script by using Class and Function duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário FewSteps 29 Abril 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,072 vezes e gostou 46 espectadores. Boa visualização!