# -*- coding: utf-8 -*-
from selenium import webdriver
import pytest
from time import sleep
class TestHogwards():
def setup(self):
self.driver = webdriver.Firefox()
self.driver.maximize_window() ## 浏览器最大化
self.driver.implicitly_wait(5) ## 隐式等待
def teardown(self):
self.driver.quit() ##回收资源,不添加,不进行退出
def test_hogwards(self):
self.driver.get("https://testerhome.com/")
self.driver.find_element_by_link_text("社团").click()
self.driver.find_element_by_link_text("求职面试圈").click()
11-14