Fixed Jenkinsfile
This commit is contained in:
@@ -66,12 +66,12 @@ pipeline {
|
||||
# ── playwright-stealth version check ───────────────
|
||||
pip show playwright-stealth | grep -E "^(Name|Version)"
|
||||
python3 -c "
|
||||
try:
|
||||
from playwright_stealth import stealth_sync
|
||||
print('playwright_stealth OK (v1.x - stealth_sync)')
|
||||
except ImportError:
|
||||
from playwright_stealth import Stealth
|
||||
print('playwright_stealth OK (v2.x - Stealth class)')
|
||||
try:
|
||||
from playwright_stealth import stealth_sync
|
||||
print('playwright_stealth OK (v1.x - stealth_sync)')
|
||||
except ImportError:
|
||||
from playwright_stealth import Stealth
|
||||
print('playwright_stealth OK (v2.x - Stealth class)')
|
||||
"
|
||||
|
||||
# ── Sanity checks ──────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user