Skip to content

Commit

Permalink
add twice
Browse files Browse the repository at this point in the history
  • Loading branch information
xiong233 committed Apr 25, 2022
1 parent 9a8ca56 commit c779f84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: windows-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
3 changes: 0 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,13 @@ def main():
page.wait_for_timeout(5000)

try:
print(page.url)
page.locator(add_button).wait_for(timeout=10000)
page.click(add_button)
print(page.url)
try:
page.click(add_button, timeout=10001)
except Exception as e:
print("Second click error for", e)
print("Add OK ", time() - logtime)
print(page.url)
page.wait_for_timeout(1000)

page.locator(save_button).wait_for(timeout=10000)
Expand Down

0 comments on commit c779f84

Please sign in to comment.