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

专项答题答不了 #14

Open
kaervan opened this issue May 24, 2022 · 3 comments
Open

专项答题答不了 #14

kaervan opened this issue May 24, 2022 · 3 comments

Comments

@kaervan
Copy link

kaervan commented May 24, 2022


��进入答题第1页
��进入答题第2页
��进入答题第3页
��进入答题第4页
��无题可答。即将跳过。
�+查找题目类型...查找元素失败!
当前学 xi 总积分:2487 今日得分:29
�Y阅读文章: 6 / 6 , 观看视频: 6 / 6 , 文章时长: 6 / 6 , 视频时长: 6 / 6 ,
�W每日登陆: 0 / 1 , 每日答题: 5 / 5 , 每周答题: 0 / 5 , 专项答题: 0 / 10
��!!!!!没拿到满分,请收集日志反馈错误题目!!!!!

@Yemaoxin
Copy link

我也遇到了同一个问题,具体看了一下是这样的,在回答每周答题的时候,程序打开了专项答题的页面,在专项答题的时候却打开了每周答题的页面

@Yemaoxin
Copy link

具体到代码上是由于网页源码上的Xpath路径两者的换了,应该是网页稍微改了顺序,找到对应位置修改。
即:
answer_question.py中的函数weekly中,
quiz_xpath = '//[@id="app"]/div/div[2]/div/div[3]/div[2]/div[6]/div[2]/div[2]/div' 改为
quiz_xpath = '//
[@id="app"]/div/div[2]/div/div[3]/div[2]/div[7]/div[2]/div[2]/div'

函数zhuanxiang中,
quiz_xpath = '//[@id="app"]/div/div[2]/div/div[3]/div[2]/div[7]/div[2]/div[2]/div' 改为
quiz_xpath = '//
[@id="app"]/div/div[2]/div/div[3]/div[2]/div[6]/div[2]/div[2]/div'

@Yemaoxin
Copy link

answer_question.py.zip
相信我的话,就把这个answer_question.py解压,放在SourcePackages/pdlearn/answer_question.py,覆盖即可

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