do not skip challenged

This commit is contained in:
ThePhaseless
2024-10-27 18:32:06 +00:00
parent 58f230dce3
commit aabff0a65f
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ async def bypass_cloudflare(page: webdriver.Tab):
raise InvalidElementError
for attr in parent.attributes:
if attr == "display: none; visibility: hidden;":
if attr == "display: none; visibility: hidden;" and not loaded:
loaded = True
logger.info("Page loaded")
+5 -2
View File
@@ -17,7 +17,7 @@ test_websites = [
"https://extratorrent.st/", # github is blocking these
"https://idope.se/", # github is blocking these
"https://www.ygg.re/",
"https://speed.cd/",
"https://speed.cd/login",
]
@@ -27,7 +27,10 @@ def test_bypass(website: str):
test_request = httpx.get(
website,
)
if test_request.status_code != HTTPStatus.OK:
if (
test_request.status_code != HTTPStatus.OK
and "Just a moment..." not in test_request.text
):
logger.info(f"Skipping {website} due to {test_request.status_code}")
pytest.skip()