Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12272018百度云盘登录失败 #24

Open
hlafsnio opened this issue Dec 27, 2018 · 3 comments
Open

12272018百度云盘登录失败 #24

hlafsnio opened this issue Dec 27, 2018 · 3 comments

Comments

@hlafsnio
Copy link

您好,现在百度云盘的登陆页面为 pan.baidu.com,
查看html源代码的时候,找不到
name_field = driver.find_element_by_id('TANGRAM__PSP_4__userName')
name_field.send_keys(name)
passwd_field = driver.find_element_by_id('TANGRAM__PSP_4__password')
passwd_field.send_keys(passwd)
login_button = driver.find_element_by_id('TANGRAM__PSP_4__submit')

这几个id现在都没有了,想请教下现在应该怎么找到登陆按钮和输入账户密码的位置喃...
麻烦了

@ResolveWang
Copy link
Member

我现在没做这块的东西了,如果找不到id的话,你可以通过class等属性进行定位啊,也可能镶嵌在iframe

@hlafsnio
Copy link
Author

hlafsnio commented Dec 27, 2018

好像都没有...我在html里面就没找到与登陆相关的东西,除了一段js代码。
我感觉baidu是把所有东西写进了一段js代码,进行pan.baidu.com的时候自动执行那一段js代码
然后再加载登录的界面(passport.baidu.com),个人感觉是在倒数第三行,老哥空的时候能帮忙看下吗...或者提个思路我再去研究

@hlafsnio
Copy link
Author

老哥 我使用firebug插件的时候能找到对应按钮的xPath,但查看网站源代码的话能找出线索在哪里吗....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants