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 #22

Open
allenever opened this issue Jan 13, 2018 · 16 comments
Open

怎么解决,被系统自动分配无座的BUG #22

allenever opened this issue Jan 13, 2018 · 16 comments

Comments

@allenever
Copy link

No description provided.

@lonycc
Copy link
Contributor

lonycc commented Jan 15, 2018

我提交了一个pr,可以去看看。另,今天用这个抢到了一张高铁二等座的票。

@yaojunWang
Copy link

driver_find_text???

@lonycc
Copy link
Contributor

lonycc commented Jan 16, 2018

拼写错误,以更正。见commit 2

@finissage
Copy link

我也遇到这个问题 怎么解决?

@lonycc
Copy link
Contributor

lonycc commented Jan 16, 2018

可以去我fork的分支使用tony-branch分支

@lonycc
Copy link
Contributor

lonycc commented Jan 16, 2018

@finissage @yaojunWang 我已经合并到我fork的分支master里了,欢迎测试

@finissage
Copy link

还没开始预订 8
--------->选择的车次类型 GC-高铁/城际
Message: unknown error: Element ... is not clickable at point (370, 7). Other element would receive the click: ...
(Session info: chrome=63.0.3239.132)
(Driver info: chromedriver=2.34.522940 (1a76f96f66e3ca7b8e57d503b4dd3bccfba87af1),platform=Windows NT 6.1.7601 SP1 x86_64)

@finissage
Copy link

这个错误是什么意思?

@lonycc
Copy link
Contributor

lonycc commented Jan 16, 2018

元素不可点击,这个很可能是self.driver.find_by_id导致的,因为12306的页面不规范导致的,id居然不唯一

@xiaoshun007
Copy link
Owner

xiaoshun007 commented Jan 16, 2018

已merge到master,感谢@tonyxyl
提交的时候校验是否有座,这是个思路,要是能在查询的时候能做校验就好了,这样就可以支持提交卧铺之类的了,这也是目前还没有解决的

@xiaoshun007
Copy link
Owner

xiaoshun007 commented Jan 16, 2018

@finissage 把sleep后的时间加大一些,是页面元素还没加载出来导致的,不是 @tonyxyl 所说的原因

@qxdwjsn
Copy link

qxdwjsn commented Jan 17, 2018

@tonyxyl 用最新版的master还是自动选择无座,noseat-allow =0 这个我已经设置了

@lonycc
Copy link
Contributor

lonycc commented Jan 17, 2018

@qxdwjsn hack12306.py的第257行有点问题if self.driver.find_by_text(u"硬座余票<strong>0</strong>张") != None:, 改成 if self.driver.find_by_text(u"硬座余票<strong>0</strong>张") == None:
@xiaoshun007 十分抱歉,合并的PR里面居然弄反了逻辑,我太粗心了。

@xiaoshun007
Copy link
Owner

@tonyxyl 已修正

@pikechu
Copy link

pikechu commented Jan 2, 2019

网页是不是又改了?现在程序走到提交订单之后就不好用了,首先是不能判断到选定席别的余票数量,这就导致后面流程不能再进行下去。(因为我选了禁止无座)

@eratel
Copy link

eratel commented Jan 14, 2019

选不到二等座的票?

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

8 participants