Compare commits

..

3 Commits
dev ... master

Author SHA1 Message Date
chenwj113 362d2eacbf fix: 修复无法自动确认的问题 2024-01-07 20:13:50 +08:00
chenwj113 a303c16ca1 更新 .gitea/workflows/pipeline.yaml
回滚pipeline
2023-12-05 17:46:08 +08:00
chenwj113 186146b13f Merge pull request '更新 .gitea/workflows/pipeline.yaml' (#1) from dev into master
Reviewed-on: https://git.chenwj113.cn/chenwj113/py_scripts/pulls/1
2023-12-05 10:15:23 +08:00
2 changed files with 11 additions and 4 deletions

View File

@ -9,7 +9,11 @@ jobs:
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
- name: List files in the repository - name: List files in the repository
run: | run: |
ls ${{ gitea.workspace }} ls ${{ gitea.workspace }}
- run: echo "This job's status is ${{ job.status }}." - run: echo "This job's status is ${{ job.status }}."

View File

@ -194,10 +194,13 @@ class Chrome(object):
if not second_next_step.exists: if not second_next_step.exists:
wait_until(second_next_step.exists) wait_until(second_next_step.exists)
click(second_next_step) click(second_next_step)
checkbox = S('//div[contains(@class, "checkbox")]')
if checkbox.exists:
click(checkbox)
confirm = Text("确认") confirm = Text("确认")
if not confirm.exists: if not confirm.exists:
wait_until(confirm.exists) wait_until(confirm.exists)
time.sleep(5) time.sleep(10)
click(confirm) click(confirm)
# 后退 # 后退
back_1 = S('a.backlink') back_1 = S('a.backlink')
@ -264,8 +267,8 @@ with Chrome() as chrome:
# chrome.balance() # chrome.balance()
# 组选 # 组选
# result = ['039', '048', '049', '138', '139', '147', '237', '238', '246', '247'] # result = ['039', '048', '049', '138', '139', '147', '237', '238', '246', '247']
result = ['258', '256', '156', '247', '067'] result = ['336', '156', '146', '447', '366']
chrome.pls(result = result, multiple=1, save_result=True) chrome.pls(result = result, multiple=1, save_result=False)
# 直选 # 直选
# result = ['246', '264', '291', '219', '169'] # result = ['246', '264', '291', '219', '169']
# chrome.pls(result=result, is_group=False) # chrome.pls(result=result, is_group=False)