selenium学习:获取验证信息
发表于:2024-10-25 作者:千家信息网编辑
千家信息网最后更新 2024年10月25日,获得验证信心的方式分别是:title URL textfrom selenium import webdriverfrom time import *driver = webdriver.Chrome
千家信息网最后更新 2024年10月25日selenium学习:获取验证信息
获得验证信心的方式分别是:title URL text
from selenium import webdriverfrom time import *driver = webdriver.Chrome()url = 'http://home.51cto.com/index?reback=http://9603083.blog.51cto.com/'driver.get(url)#打印当前页面title = driver.titleprint(title)#打印当前页面URLnow_url = driver.current_urlprint(now_url)#执行登陆driver.find_element_by_xpath('//*[@id="loginform-username"]').clear()driver.find_element_by_xpath('//*[@id="loginform-username"]').send_keys('91ctt')driver.find_element_by_xpath('//*[@id="loginform-password"]').clear()driver.find_element_by_xpath('//*[@id="loginform-password"]').send_keys('CTT1106648034')driver.find_element_by_xpath('//*[@id="login-form"]/div[3]/input').click()sleep(3)#再次打印当前页面title = driver.titleprint(title)#打印当前页面URLnow_url = driver.current_urlprint(now_url)#获取用户名usr = driver.find_element_by_xpath('/html/head/meta[3]').textprint(usr)sleep(3)driver.quit()
页面
验证
信心
再次
方式
用户
用户名
登陆
信息
学习
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
自己的计算机变为云服务器
java邮件服务器开发
大智慧软件不能更新数据库
公司如何构建网络安全
图解网络安全法法律责任
在大专学计算机网络技术
关系数据库有何特点
eccess数据库引擎
安徽税捷网络技术有限公司
软件开发psp
泰坦之旅数据库修改
漳州国家网络安全宣传
泗洪自动网络技术供应商家
变态传奇服务器
金桥网络技术有限公司
软件开发公司项目案例
软件开发需求分析案例分析
土规调整如何做数据库增量包
dell 哪款服务器适合家用
虚拟机还原数据库
网络安全中隐私的概念
光子云三河网络技术有限公司
服务器虚拟化是什么
服务器 租 安全
从勒索病毒看网络安全
美队tv软件服务器错误
文件服务器端口
嵌入式数据库的优缺点
上海交大国家网络安全学院
澧县县委网络安全和信息化委员会