Skip to content
This repository was archived by the owner on May 24, 2025. It is now read-only.

Commit 3c96396

Browse files
committed
Minor grammar changes
1 parent 0c7222d commit 3c96396

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

.github/workflows/workflow.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ jobs:
2222
with:
2323
python-version: "3.10"
2424

25-
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install flake8 pytest
29-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30-
3125
- name: Lint with flake8
3226
run: |
3327
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

lib/lib.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ def getRandomString(self, length):
1010
letters = string.ascii_lowercase
1111
return "".join(random.choice(letters) for i in range(length))
1212

13-
def waitUntilUrl(self, page, target_url, timeout=30):
14-
start_time = time.time()
15-
while time.time() - start_time < timeout:
16-
if page.url == target_url:
13+
def waitUntilUrl(self, page, targetUrl, timeout=30):
14+
startTime = time.time()
15+
while time.time() - startTime < timeout:
16+
if page.url == targetUrl:
1717
return True
1818
time.sleep(0.5)
1919
return False

main.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,10 @@
129129
page.ele("#inputEmail").input(email)
130130
page.ele("#inputNewPassword1").input(passw)
131131
page.ele("#inputNewPassword2").input(passw)
132-
element = page.ele(".icheck-button")
133-
element.click()
134-
element = page.ele(
132+
page.ele(".icheck-button").click()
133+
page.ele(
135134
".btn btn-primary btn-line fw-500 font-18 py-2 w-100 btn-recaptcha btn-recaptcha-invisible"
136-
)
137-
element.click()
135+
).click()
138136
if lib.waitUntilUrl(
139137
page, "https://www.exitlag.com/register-success", timeout=60
140138
):

0 commit comments

Comments
 (0)