Organizing Python Selenium Script by using Class and Function

Pubblicato il: 29 aprile 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online Organizing Python Selenium Script by using Class and Function della durata di ore minuti seconda in buona qualità , che l'utente ha caricato FewSteps 29 aprile 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,072 volte e gli è piaciuto 46 spettatori. Buona visione!