python selenium multiple test cases

后端 未结 6 2115
孤街浪徒
孤街浪徒 2020-12-18 07:25

I have the following code in python

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Sele         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-18 07:58

    Usually you want the browser to close between tests so that you start each test with a clean cache, localStorage, history database, etc. Closing the browser between tests does slow down the tests, but it saves in debug time because a test doesn't interact with the browser cache and history of a previous test.

提交回复
热议问题