Organizing Python Selenium Script by using Class and Function

Опубликовано: 29 Апрель 2020
на канале: 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


Смотрите видео Organizing Python Selenium Script by using Class and Function онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь FewSteps 29 Апрель 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,072 раз и оно понравилось 46 людям.