-
Notifications
You must be signed in to change notification settings - Fork 171
Closed
Description
章节跳转到该章节的第一页时无法点击;
增加以下下代码,解决;
n = 2
while True:
.....
# go to next page or chapter ;266行
try:
next_btn.click()
except Exception:
self.switch_to_context(tag=n + 1)
n += 1
修改方法
def switch_to_context(self, tag=2):
"""switch to main body of the book"""
self.S('button.catalog').click()
self.S(f'li.chapterItem:nth-child({tag})').click()
Algebra-FUN
Metadata
Metadata
Assignees
Labels
No labels