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

我还没成功过,一直碰到这两个bug #13

Open
zkailinzhang opened this issue Jan 11, 2018 · 1 comment
Open

我还没成功过,一直碰到这两个bug #13

zkailinzhang opened this issue Jan 11, 2018 · 1 comment

Comments

@zkailinzhang
Copy link

zkailinzhang commented Jan 11, 2018

一个楼主说的,object has no attribute 'click' 这个问题要增加休息时间,楼主是这个地方吗,我都增加了15s,有的时候还是会崩溃
def confirmSeat(self): # 若提交订单异常,请适当加大sleep的时间 sleep(15) #1

第二个问题:
开始登录...
[0111/103516.261:ERROR:adm_helpers.cc(62)] Failed to query stereo recording.
等待验证码,自行输入...

第三个问:
C:\Users\Administrator\Desktop\火车票\2\12306Python>python hack12306.py
===========hack12306 begin===========
映射出发地、目的地...
加载配置文件...

DevTools listening on ws://127.0.0.1:12714/devtools/browser/de712512-6242-4387-9
bf9-4c4528c9fc09
开始登录...
[0111/103922.049:ERROR:adm_helpers.cc(62)] Failed to query stereo recording.
等待验证码,自行输入...
购票页面开始...
--------->选择的车次类型 GC-高铁/城际
Message: stale element reference: element is not attached to the page document
(Session info: chrome=63.0.3213.3)
(Driver info: chromedriver=2.34.522940 (1a76f96f66e3ca7b8e57d503b4dd3bccfba87a
f1),platform=Windows NT 6.1.7601 SP1 x86_64)

C:\Users\Administrator\Desktop\火车票\2\12306Python>

@xiaoshun007
Copy link
Owner

@zkl99999 第一个问题,在这行报错前的sleep增大时间;第二个问题,正常的,输入验证码点击登录就可以了;第三个问题:是不是在运行的时候有其他窗口弹出,建议使用最新的代码试试

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