当前位置:   article > 正文

python使用selenium模块实现可视化QQ邮箱自动登陆_python如何实现qq邮箱滑块验证登录

python如何实现qq邮箱滑块验证登录

注意点

  • 进入页面后,切换到登录frame(必须先切换!!!)
dr.switch_to_frame('login_frame')
  • 1
  • 没有调用账号包就手写
# 输入账号,没有调用账号包就手写
# user_name.send_keys(username)
user_name.send_keys('11241244143229')
# 输入内容
user_pwd = dr.find_element_by_id('p')
# 输入密码,没有调用账号包就手写
# user_pwd.send_keys(userpwd)
user_pwd.send_keys('lasfsdfsdf9')
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 调用包时,实参名字尽量不要和被调用的代码里面的实参重名,否则会报错
TypeError: object of type 'WebElement' has no len()
  • 1

在这里插入图片描述

实战代码

import time
from selenium import  webdriver
# 没有调用账号包就手写
# from user_information import user
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号