Organizing Python Selenium Script by using Class and Function

preview_player
Показать описание
This video explains how to Organizing Python Selenium Script using Class and Function.

♥️ Subscribe Few Steps:

Code from this tutorial:
----------------------------------------
from selenium import webdriver
import time

locationChromeDriver = '../drivers/chromedriver'

class RunTestClass:
def testMethod(self):
drive = webdriver.Chrome(executable_path=locationChromeDriver)

obj = RunTestClass()

#selenium #python #fewsteps
Рекомендации по теме
Комментарии
Автор

and is there a way to keep the browser open so I can send keys and stuff? If I put the time.sleep it will keep it open but I can't run my code

andypeng
Автор

is there a way to keep the browser open until we manually close it?

andypeng
visit shbcf.ru