您的位置: 首页 > 文章 > python3+Selenium(一)断言百度搜索位置 python3+Selenium(一)断言百度搜索位置 分类: 文章 • 2024-05-08 19:20:28 命题 断言Selenium主页是否在第一个搜索位置 思路 指定变量url 使用指定浏览器,打开百度界面 定位【输入框】元素,输入“selenium” 点击【提交】 断言网页中selenium官网是否在第一个位置 显示断言结果